/* 3Dnatives Collaborative Brain CSS */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: #0b0f1a;
  overflow: hidden;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: #e8edf5;
}

/* Background Glowing Accents */
body::before, body::after {
  content: "";
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(160px);
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
}
body::before { background: #38bdf8; top: -150px; left: -100px; }
body::after { background: #8b5cf6; bottom: -200px; right: -100px; }

/* ── HEADER ────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: 56px;
  background: #131929e0; border-bottom: 1px solid #252f45;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; padding: 0 24px; gap: 14px;
}
.logo { font-size: 17px; font-weight: 800; color: #38bdf8; flex: none; letter-spacing: -0.01em; }
.sub  { font-size: 12px; color: #6b7a99; font-weight: 500; }
.stats { display: flex; gap: 8px; }
.stat { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.controls { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.cbtn {
  background: #1c2438; border: 1px solid #252f45; color: #8a9ab8;
  border-radius: 6px; padding: 6px 14px; font-size: 11.5px; cursor: pointer;
  font-family: inherit; font-weight: 600; transition: all 0.2s ease;
}
.cbtn:hover { color: #e8edf5; border-color: #38bdf8; background: #222d45; }

/* View switcher */
.view-switch { display: flex; background: #0f1623; border: 1px solid #252f45; border-radius: 7px; overflow: hidden; }
.view-switch button {
  background: none; border: none; color: #6b7a99; font-family: inherit;
  font-size: 11.5px; font-weight: 600; padding: 6px 15px; cursor: pointer;
  transition: all 0.2s ease;
}
.view-switch button.active { background: #1c2a44; color: #38bdf8; }
.view-switch button:not(.active):hover { color: #e8edf5; }

/* ── VIEWPORT ──────────────────────────────── */
#viewport {
  position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
  overflow: hidden; cursor: grab;
}
#viewport.grabbing { cursor: grabbing; }
#mainSvg { width: 100%; height: 100%; display: block; }

/* ── AUTHENTICATION CARD ────────────────────── */
.auth-container {
  position: fixed; inset: 0; z-index: 1000;
  background: #080c14;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-card {
  background: rgba(19, 25, 41, 0.75);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  width: 100%; max-width: 420px;
  padding: 40px; box-shadow: 0 30px 70px rgba(0,0,0,0.6);
  text-align: center;
}
.auth-title { font-size: 26px; font-weight: 800; color: #e8edf5; margin-bottom: 6px; letter-spacing: -0.02em; }
.auth-sub { font-size: 13px; color: #6b7a99; margin-bottom: 30px; }
.auth-form-group { text-align: left; margin-bottom: 20px; }
.auth-label { font-size: 11px; font-weight: 700; color: #8a9ab8; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; display: block; }
.auth-input {
  width: 100%; padding: 12px 16px; background: rgba(0,0,0,0.3);
  border: 1px solid #252f45; border-radius: 8px; color: #e8edf5;
  font-family: inherit; font-size: 14px; transition: all 0.2s ease;
}
.auth-input:focus { outline: none; border-color: #38bdf8; box-shadow: 0 0 12px rgba(56,189,248,0.25); }
.auth-btn {
  width: 100%; padding: 13px; margin-top: 10px;
  background: linear-gradient(135deg, #38bdf8 0%, #8b5cf6 100%);
  border: none; border-radius: 8px; color: white; font-family: inherit;
  font-weight: 700; font-size: 14.5px; cursor: pointer; transition: all 0.2s ease;
}
.auth-btn:hover { transform: translateY(-1.5px); box-shadow: 0 8px 24px rgba(56,189,248,0.3); }
.auth-error {
  color: #f87171; background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.25);
  border-radius: 8px; padding: 12px; font-size: 13px; margin-bottom: 20px;
  display: none; text-align: center;
}

/* ── NOTIFICATIONS BELL & DROPDOWN ──────────── */
.notif-bell {
  position: relative; cursor: pointer; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px; background: #1c2438; border: 1px solid #252f45;
  color: #8a9ab8; font-size: 16px; transition: all 0.2s ease;
}
.notif-bell:hover { color: #e8edf5; border-color: #38bdf8; background: #222d45; }
.notif-badge {
  position: absolute; top: -5px; right: -5px;
  background: #8b5cf6; color: white; font-size: 9.5px; font-weight: 800;
  width: 17px; height: 17px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 0 10px rgba(139,92,246,0.5);
}
.notif-dropdown {
  position: absolute; top: 48px; right: 0; width: 320px;
  background: rgba(19, 25, 41, 0.95); backdrop-filter: blur(20px);
  border: 1px solid #252f45; border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  padding: 16px; display: none; z-index: 100; text-align: left;
}
.notif-dropdown-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #252f45; }
.notif-dropdown-title { font-size: 13px; font-weight: 700; color: #e8edf5; }
.notif-dropdown-clear { font-size: 11px; color: #38bdf8; cursor: pointer; font-weight: 600; border: none; background: none; }
.notif-dropdown-clear:hover { text-decoration: underline; }
.notif-list { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.notif-item { font-size: 12px; color: #cdd5e0; padding: 8px 10px; border-radius: 6px; background: rgba(255,255,255,0.02); line-height: 1.4; border-left: 2.5px solid #8b5cf6; }
.notif-item.read { border-left-color: transparent; color: #8a9ab8; }
.notif-empty { font-size: 11px; color: #6b7a99; text-align: center; padding: 20px 0; font-style: italic; }

.user-tag {
  display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 8px; background: #1c2438; border: 1px solid #252f45;
}
.user-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #38bdf8, #8b5cf6); }

/* ── TOOLTIP ───────────────────────────────── */
#ttip {
  position: fixed; background: #131929; border: 1px solid #2e3d5a;
  border-radius: 9px; padding: 11px 14px; max-width: 280px;
  font-size: 12.5px; color: #e8edf5; line-height: 1.55;
  pointer-events: none; display: none; z-index: 250;
  box-shadow: 0 10px 30px rgba(0,0,0,.55);
}
#ttip .t-title { font-weight: 700; margin-bottom: 5px; color: #e8edf5; }
#ttip .t-notes { color: #8a9ab8; font-size: 11px; }
#ttip .t-meta  { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
#ttip .t-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }

/* ── LEGEND ────────────────────────────────── */
.legend {
  position: fixed; bottom: 18px; left: 24px; z-index: 20;
  display: flex; gap: 16px; align-items: center;
}
.leg-item { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #8a9ab8; }
.leg-dot  { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* ── PROJECT CARD EDIT MODAL ────────────────── */
.card-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(5,8,18,.75); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  animation: fadein .12s ease;
}
@keyframes fadein { from { opacity:0 } to { opacity:1 } }
.card-panel {
  background: #131929; border-radius: 18px; border: 1px solid #2e3d5a;
  width: 540px; max-width: 95vw; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.8);
  position: relative; animation: slidein .15s ease;
  display: flex; flex-direction: column;
}
@keyframes slidein { from { transform:translateY(14px);opacity:0 } to { transform:translateY(0);opacity:1 } }
.card-accent { height: 5px; border-radius: 18px 18px 0 0; flex: none; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.card-header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.card-title-input {
  background: none; border: none; font-size: 17px; font-weight: 700; color: #e8edf5;
  width: 100%; border-bottom: 1.5px dashed transparent; padding-bottom: 2px;
  font-family: inherit; transition: all 0.2s ease;
}
.card-title-input:focus { outline: none; border-bottom-color: #38bdf8; }
.card-close { background: none; border: 1px solid #252f45; border-radius: 8px; color: #6b7a99; cursor: pointer; font-size: 13px; padding: 4px 10px; flex: none; font-family: inherit; }
.card-close:hover { color: #e8edf5; border-color: #38bdf8; }

.modal-section-title { font-size: 11px; font-weight: 700; color: #4a5570; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }

/* Grid form editors */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-select, .form-textarea {
  background: rgba(0, 0, 0, 0.3); border: 1px solid #252f45; border-radius: 8px;
  color: #e8edf5; padding: 8px 12px; font-family: inherit; font-size: 13px;
  transition: all 0.2s ease;
}
.form-select:focus, .form-textarea:focus { outline: none; border-color: #38bdf8; }
.form-textarea { min-height: 80px; resize: vertical; }

/* Comments section */
.comments-panel { border-top: 1px solid #1e2a40; padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.comments-list { display: flex; flex-direction: column; gap: 8px; max-height: 160px; overflow-y: auto; padding-right: 4px; }
.comment-bubble { padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,0.03); font-size: 12px; line-height: 1.4; border: 1px solid rgba(255,255,255,0.02); }
.comment-meta { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 10.5px; }
.comment-author { font-weight: 700; color: #38bdf8; }
.comment-time { color: #6b7a99; }
.comment-text { color: #dbe3ef; word-break: break-word; }

.comment-input-row { display: flex; gap: 8px; margin-top: 6px; }
.comment-input {
  flex: 1; background: rgba(0,0,0,0.3); border: 1px solid #252f45;
  border-radius: 8px; color: #e8edf5; padding: 8px 12px; font-family: inherit;
  font-size: 12.5px;
}
.comment-input:focus { outline: none; border-color: #38bdf8; }
.comment-send-btn {
  background: #1c2438; border: 1px solid #252f45; color: #38bdf8;
  border-radius: 8px; padding: 0 16px; font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all 0.2s ease;
}
.comment-send-btn:hover { background: #222d45; border-color: #38bdf8; color: white; }

.save-node-btn {
  background: #1c2a44; border: 1px solid #38bdf840; color: #38bdf8;
  border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all 0.2s ease; margin-top: 10px;
}
.save-node-btn:hover { background: #38bdf8; color: #0b0f1a; border-color: #38bdf8; }

/* ── IMPACT MAP WIDGET ─────────────────────── */
.imp-widget {
  position: fixed; right: 24px; bottom: 64px; z-index: 40;
  background: #0f1623; border: 1px solid #2e3d5a; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.55); overflow: hidden;
}
.imp-header { display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; cursor: default; min-width: 190px; }
.imp-header-title { font-size: 12px; font-weight: 700; color: #e8edf5; user-select: none; }
.imp-header-btns { display: flex; gap: 5px; }
.imp-btn {
  background: none; border: 1px solid #252f45; border-radius: 5px;
  color: #6b7a99; font-size: 11px; cursor: pointer; padding: 2px 7px; line-height: 1.5;
}
.imp-btn:hover { color: #e8edf5; border-color: #38bdf8; }
.imp-body { padding: 0 13px 12px; }
.imp-legend { display: flex; gap: 10px; margin-bottom: 8px; padding-top: 4px; }
.imp-leg-item { display: flex; align-items: center; gap: 4px; font-size: 10px; color: #6b7a99; }
.imp-leg-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }

/* Fullscreen overlay */
.imp-full-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(5,8,18,.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  animation: fadein .12s ease;
}
.imp-full-panel {
  background: #0f1623; border: 1px solid #2e3d5a; border-radius: 18px;
  width: 92vw; height: 87vh; display: flex; flex-direction: column;
  padding: 20px 24px; box-shadow: 0 32px 80px rgba(0,0,0,.8);
  animation: slidein .15s ease;
}
.imp-full-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex: none; }
.imp-full-title { font-size: 14px; font-weight: 700; color: #e8edf5; }
.imp-full-legend { display: flex; gap: 14px; }
.imp-full-actions { display: flex; gap: 8px; align-items: center; }
.imp-full-close { background: none; border: 1px solid #252f45; border-radius: 8px; color: #6b7a99; cursor: pointer; padding: 5px 14px; font-size: 12px; }
.imp-full-close:hover { color: #e8edf5; border-color: #38bdf8; }
#impFullSvgWrap { flex: 1; min-height: 0; position: relative; }

/* ── TIMELINE ───────────────────────────────── */
#timelineWrap {
  position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
  display: none; flex-direction: row; background: #0b0f1a;
}
#tlLabels { flex: none; width: 176px; border-right: 1px solid #1e2a40; background: #0d1320; overflow: hidden; }
#tlScroll { flex: 1; overflow-x: auto; overflow-y: hidden; }
#tlScroll::-webkit-scrollbar { height: 10px; }
#tlScroll::-webkit-scrollbar-thumb { background: #252f45; border-radius: 5px; }
#tlScroll::-webkit-scrollbar-track { background: #0d1320; }
.tl-bar-grp { cursor: pointer; }
.tlLegend {
  position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%);
  z-index: 25; display: none; gap: 15px; align-items: center;
  background: rgba(13,19,32,.92); border: 1px solid #1e2a40; border-radius: 22px;
  padding: 7px 18px; backdrop-filter: blur(8px);
}
.tlLegend .leg-item { font-size: 10.5px; }
.tl-ship-summary {
  position: fixed; top: 68px; right: 24px; z-index: 26; display: none;
  background: #0f1623; border: 1px solid #2e3d5a; border-radius: 11px;
  padding: 9px 14px; font-size: 11px; color: #8a9ab8; line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.tl-ship-summary b { color: #38bdf8; font-size: 18px; }
.tl-ship-summary .tl-ss-sub { color: #4a5570; font-size: 10px; }

/* Status Badges colors */
.bg-not-started { background-color: #f87171; }
.bg-in-progress { background-color: #f59e0b; }
.bg-needs-review { background-color: #8b5cf6; }
.bg-done         { background-color: #22c55e; }
.bg-on-hold     { background-color: #4a5570; }

/* Assignment initials styling for SVG text */
.node-assign-text { fill: #8292ab; font-size: 10px; font-weight: 700; font-family: inherit; }

/* ── RESPONSIVE MEDIA OVERRIDES ────────────── */
@media (max-width: 960px) {
  .header .sub { display: none; }
  .header .stats { display: none; }
}

@media (max-width: 720px) {
  .header {
    height: auto;
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .controls {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 8px;
  }
  .view-switch button {
    padding: 5px 10px;
    font-size: 10.5px;
  }
  .cbtn {
    padding: 5px 10px;
    font-size: 10.5px;
  }
  .user-tag {
    padding: 5px 10px;
    font-size: 11px;
  }
  #viewport { top: 96px; }
  #timelineWrap { top: 96px; }
  .legend { display: none !important; }
}

@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; gap: 8px; }
  .card-panel { max-height: 95vh; }
  .card-body { padding: 16px; }
  .comment-input-row { flex-direction: column; }
  .comment-send-btn { padding: 8px; }
  .save-node-btn { width: 100%; }
}

/* Collaborative Board Enhancements CSS */

.modal-section {
  border-top: 1px solid #1e2a40;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blocker-warning-box {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

/* Checklist Steps styling */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}
.step-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.step-checkbox {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: #38bdf8;
}
.step-title {
  font-size: 12px;
  color: #e8edf5;
  flex: 1;
}
.step-item.completed .step-title {
  text-decoration: line-through;
  color: #6b7a99;
}
.step-delete-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 11px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.step-delete-btn:hover {
  opacity: 1;
}

/* Dependencies styling */
.dependencies-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
  padding-right: 4px;
}
.dependency-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.18);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
}
.dependency-name {
  color: #c084fc;
}
.dependency-delete-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 11px;
}

/* Resources section tabbed styling */
.resources-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}
.resource-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}
.resource-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.resource-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #e8edf5;
}
.resource-link-btn {
  font-size: 11.5px;
  color: #38bdf8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.resource-link-btn:hover {
  text-decoration: underline;
}
.resource-note-text {
  font-size: 11.5px;
  color: #b0bdd0;
  white-space: pre-wrap;
  background: rgba(0,0,0,0.2);
  padding: 6px 10px;
  border-radius: 4px;
  margin-top: 4px;
  border: 1px solid #1a2540;
}
.resource-meta-label {
  font-size: 10px;
  color: #6b7a99;
}
.resource-delete-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 11px;
  opacity: 0.6;
}
.resource-delete-btn:hover {
  opacity: 1;
}

.resource-add-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid #252f45;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.res-tab-row {
  display: flex;
  border-bottom: 1px solid #252f45;
  padding-bottom: 6px;
  gap: 6px;
}
.res-tab-btn {
  background: none;
  border: none;
  color: #6b7a99;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: inherit;
  transition: all 0.2s;
}
.res-tab-btn.active {
  background: #1c2a44;
  color: #38bdf8;
}
.res-tab-btn:not(.active):hover {
  color: #e8edf5;
}
.res-input-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadein 0.15s ease;
}

/* Comments custom styling */
.comment-bubble {
  position: relative;
}
.comment-bubble.done {
  border-left: 2.5px solid #22c55e;
  opacity: 0.7;
}
.comment-bubble.done .comment-text {
  text-decoration: line-through;
  color: #6b7a99;
}
.comment-bubble.archived {
  border-left: 2.5px solid #4a5570;
  opacity: 0.55;
  background: rgba(255, 255, 255, 0.01);
}
.comment-actions {
  position: absolute;
  top: 6px;
  right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}
.comment-bubble:hover .comment-actions {
  opacity: 1;
}
.comment-act-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 10.5px;
  padding: 2px;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.comment-act-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* History view panel */
#historyWrap {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0b0f1a;
  overflow-y: auto;
  padding: 30px 24px;
}
.history-container {
  max-width: 800px;
  margin: 0 auto;
}
.history-container h2 {
  font-size: 20px;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 20px;
}
.history-list-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 10px;
  border-left: 2px solid #252f45;
}
.history-item {
  position: relative;
  background: rgba(19, 25, 41, 0.5);
  border: 1px solid #1e2a40;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  animation: slidein 0.2s ease;
}
.history-item::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 17px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  border: 2px solid #0b0f1a;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}
.history-item-time {
  font-size: 10.5px;
  color: #6b7a99;
  margin-top: 4px;
  display: block;
}

/* ── IDEAS DASHBOARD VIEW PANEL ── */
#ideasWrap {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0b0f1a;
  overflow-y: auto;
  padding: 30px 24px;
}
.ideas-container {
  max-width: 900px;
  margin: 0 auto;
}
.ideas-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.ideas-header-row h2 {
  font-size: 20px;
  font-weight: 800;
  color: #38bdf8;
}
.ideas-list-view {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.idea-card {
  background: rgba(19, 25, 41, 0.5);
  border: 1px solid #1e2a40;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}
.idea-card:hover {
  border-color: #2e3d5a;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.idea-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.idea-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #e8edf5;
}
.idea-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}
.idea-card-desc {
  font-size: 12.5px;
  color: #8a9ab8;
  line-height: 1.5;
}
.idea-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-self: flex-start;
}
.idea-act-btn {
  background: #1c2438;
  border: 1px solid #252f45;
  color: #8a9ab8;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.idea-act-btn:hover {
  color: #e8edf5;
  border-color: #38bdf8;
  background: #222d45;
}
.idea-act-btn.validate {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}
.idea-act-btn.validate:hover {
  background: #22c55e;
  color: #0b0f1a;
  border-color: #22c55e;
}
.idea-act-btn.delete {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.3);
  color: #f43f5e;
}
.idea-act-btn.delete:hover {
  background: #f43f5e;
  color: white;
  border-color: #f43f5e;
}
.idea-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

