/* ============================
   Angular Studio Hub — Style
   Dark theme, gold accents
   Bigger UI, more color, colored sections
   ============================ */

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

html { font-size: 16px; }

body {
  font-family: var(--font-body, 'Inter', sans-serif);
  background: #0a0a0f;
  color: #e8e8f0;
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #12121a; }
::-webkit-scrollbar-thumb { background: #2a2a3e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #d4a847; }

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  left: 0; top: 0;
  width: 280px; height: 100vh;
  background: #12121a;
  border-right: 1px solid #2a2a3e;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar .logo {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #2a2a3e;
}

.sidebar .logo img {
  width: 48px; height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.sidebar .logo h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #d4a847;
  line-height: 1.2;
}

.sidebar .logo h1 span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: #9090a8;
}

.sidebar .nav-section {
  padding: 20px 20px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #606078;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  cursor: pointer;
  color: #9090a8;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar .nav-item:hover {
  background: #22223a;
  color: #e8e8f0;
}

.sidebar .nav-item.active {
  color: #d4a847;
  background: rgba(212,168,71,0.08);
  border-left-color: #d4a847;
}

.sidebar .nav-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.sidebar .nav-item .badge-count {
  margin-left: auto;
  background: #d4a847;
  color: #0a0a0f;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 10px;
}

.sidebar .user-info {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid #2a2a3e;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar .user-info .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #d4a847;
  color: #0a0a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.sidebar .user-info .details {
  flex: 1;
}

.sidebar .user-info .details .name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e8e8f0;
}

.sidebar .user-info .details .role {
  font-size: 0.7rem;
  color: #606078;
}

.sidebar .user-info .logout-btn {
  background: none;
  border: none;
  color: #606078;
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.sidebar .user-info .logout-btn:hover { color: #ef4444; }

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: 280px;
  min-height: 100vh;
  padding: 28px 36px;
}

/* ===== PAGES — Colored left borders ===== */
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.3s ease; }

#page-kanban { border-left: 4px solid #6366f1; padding-left: 16px; }
#page-clients { border-left: 4px solid #22c55e; padding-left: 16px; }
#page-finances { border-left: 4px solid #f59e0b; padding-left: 16px; }
#page-goals { border-left: 4px solid #a855f7; padding-left: 16px; }
#page-social { border-left: 4px solid #ec4899; padding-left: 16px; }
#page-notes { border-left: 4px solid #3b82f6; padding-left: 16px; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== CARDS ===== */
.card {
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  transition: all 0.2s ease;
}

.card:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(0,0,0,0.5); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #e8e8f0;
}

/* ===== STAT CARDS ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.2s ease;
}

.stat-card:hover { transform: translateY(-2px); border-color: #d4a847; }

.stat-card .icon {
  width: 50px; height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-card .icon.gold { background: rgba(212,168,71,0.15); color: #d4a847; }
.stat-card .icon.green { background: rgba(34,197,94,0.15); color: #22c55e; }
.stat-card .icon.blue { background: rgba(59,130,246,0.15); color: #3b82f6; }
.stat-card .icon.purple { background: rgba(168,85,247,0.15); color: #a855f7; }

.stat-card .info { flex: 1; }
.stat-card .info .value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #e8e8f0;
  line-height: 1.2;
}
.stat-card .info .label {
  font-size: 0.75rem;
  color: #9090a8;
  margin-top: 2px;
}
.stat-card .info .change {
  font-size: 0.7rem;
  margin-top: 4px;
}
.stat-card .info .change.up { color: #22c55e; }
.stat-card .info .change.down { color: #ef4444; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: #d4a847; color: #0a0a0f; }
.btn-primary:hover { background: #e0b85a; }

.btn-secondary { background: #2a2a3e; color: #e8e8f0; border: 1px solid #3a3a4e; }
.btn-secondary:hover { background: #3a3a4e; }

.btn-danger { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239,68,68,0.25); }

.btn-ghost { background: transparent; color: #9090a8; }
.btn-ghost:hover { background: #22223a; color: #e8e8f0; }

.btn-sm { padding: 5px 12px; font-size: 0.75rem; }

.btn-icon {
  width: 32px; height: 32px;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-alta { background: rgba(239,68,68,0.25); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.badge-media { background: rgba(245,158,11,0.25); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.badge-baja { background: rgba(34,197,94,0.25); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.badge-success { background: rgba(34,197,94,0.2); color: #22c55e; }
.badge-warning { background: rgba(245,158,11,0.2); color: #f59e0b; }
.badge-info { background: rgba(59,130,246,0.2); color: #3b82f6; }

.badge-estado {
  padding: 3px 12px;
  font-size: 0.7rem;
  font-weight: 500;
}

.badge-estado.idea { background: rgba(168,85,247,0.15); color: #a855f7; }
.badge-estado.frames { background: rgba(59,130,246,0.15); color: #3b82f6; }
.badge-estado.kling { background: rgba(236,72,153,0.15); color: #ec4899; }
.badge-estado.edicion { background: rgba(245,158,11,0.15); color: #f59e0b; }
.badge-estado.sonido { background: rgba(34,197,94,0.15); color: #22c55e; }
.badge-estado.render { background: rgba(212,168,71,0.15); color: #d4a847; }
.badge-estado.entregado { background: rgba(34,197,94,0.15); color: #22c55e; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #9090a8;
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: #12121a;
  border: 1px solid #2a2a3e;
  border-radius: 8px;
  color: #e8e8f0;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #d4a847;
  box-shadow: 0 0 0 3px rgba(212,168,71,0.1);
}

.form-textarea { min-height: 80px; resize: vertical; }
.form-select { cursor: pointer; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 16px;
  width: 90%;
  max-width: 580px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #e8e8f0;
}

.modal-header .close-btn {
  background: none; border: none;
  color: #606078; font-size: 1.3rem;
  cursor: pointer; transition: color 0.2s;
}

.modal-header .close-btn:hover { color: #ef4444; }

.modal-body { padding: 20px 24px; }
.modal-footer {
  padding: 0 24px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-success { background: rgba(34,197,94,0.2); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.toast-error { background: rgba(239,68,68,0.2); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.toast-info { background: rgba(59,130,246,0.2); color: #3b82f6; border: 1px solid rgba(59,130,246,0.3); }

/* ===== TABLE ===== */
.table-container { overflow-x: auto; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.table th {
  text-align: left;
  padding: 12px 14px;
  color: #606078;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #2a2a3e;
  cursor: pointer;
  user-select: none;
}

.table th:hover { color: #d4a847; }

.table td {
  padding: 12px 14px;
  border-bottom: 1px solid #1a1a2e;
  color: #e8e8f0;
}

.table tr:hover td { background: rgba(255,255,255,0.02); }
.table tr.clickable { cursor: pointer; }
.table .empty td { text-align: center; color: #606078; padding: 40px; }

/* ===== PROGRESS BAR ===== */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #12121a;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #d4a847;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-fill.complete { background: #22c55e; }

/* ===== KANBAN ===== */
.kanban-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  min-height: 400px;
}

.kanban-column {
  min-width: 260px;
  max-width: 280px;
  flex-shrink: 0;
  background: #12121a;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #2a2a3e;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Kanban columns color-coded top borders */
.kanban-column[data-column="idea"] { border-top: 3px solid #6366f1; }
.kanban-column[data-column="frames"] { border-top: 3px solid #8b5cf6; }
.kanban-column[data-column="kling"] { border-top: 3px solid #d4a847; }
.kanban-column[data-column="edicion"] { border-top: 3px solid #f97316; }
.kanban-column[data-column="sonido"] { border-top: 3px solid #22c55e; }
.kanban-column[data-column="render"] { border-top: 3px solid #ef4444; }
.kanban-column[data-column="entregado"] { border-top: 3px solid #10b981; }
.kanban-column[data-column="completado"] { border-top: 3px solid #06b6d4; }

.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a2a3e;
}

.kanban-column-header h3 {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e8e8f0;
}

.kanban-column-header .count {
  background: #2a2a3e;
  color: #9090a8;
  font-size: 0.7rem;
  padding: 1px 8px;
  border-radius: 10px;
}

.kanban-column.drag-over {
  border-color: #d4a847;
  background: rgba(212,168,71,0.05);
}

.kanban-card {
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 10px;
  padding: 14px;
  cursor: grab;
  transition: all 0.2s ease;
  user-select: none;
}

.kanban-card:hover { border-color: #3a3a4e; transform: translateY(-1px); }

.kanban-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}

.kanban-card .card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e8e8f0;
  margin-bottom: 6px;
}

.kanban-card .card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: #9090a8;
}

.kanban-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

/* ===== TIMELINE ===== */
.timeline-container {
  overflow-x: auto;
  padding: 40px 0 20px;
  position: relative;
}

.timeline-line-container {
  position: relative;
  min-height: 360px;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: #2a2a3e;
  transform: translateY(-50%);
}

.timeline-item {
  position: absolute;
  width: 220px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.timeline-item:hover { transform: scale(1.03); z-index: 10; }

.timeline-item.above { bottom: calc(50% + 20px); }
.timeline-item.below { top: calc(50% + 20px); }

.timeline-dot {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translateX(-50%);
  border: 3px solid #0a0a0f;
  z-index: 2;
}

.timeline-item.above .timeline-dot { bottom: -28px; }
.timeline-item.below .timeline-dot { top: -28px; }

.timeline-dot.green { background: #22c55e; }
.timeline-dot.yellow { background: #f59e0b; }
.timeline-dot.red { background: #ef4444; }

.timeline-card {
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.timeline-item.above .timeline-card::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #1a1a2e;
}

.timeline-item.below .timeline-card::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #1a1a2e;
}

.timeline-card .tl-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e8e8f0;
  margin-bottom: 4px;
}

.timeline-card .tl-client {
  font-size: 0.7rem;
  color: #606078;
  margin-bottom: 4px;
}

.timeline-card .tl-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  color: #9090a8;
}

/* ===== SOCIAL / GOALS PAGE ===== */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.goal-card {
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 12px;
  padding: 18px;
  transition: all 0.2s;
}

.goal-card:hover { border-color: #3a3a4e; }

.goal-card .goal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.goal-card .goal-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e8e8f0;
}

.goal-card .goal-desc {
  font-size: 0.8rem;
  color: #9090a8;
  margin-bottom: 12px;
}

.goal-card .goal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #606078;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.social-card {
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 12px;
  padding: 16px;
}

.social-card .sc-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e8e8f0;
  margin-bottom: 6px;
}

.social-card .sc-hashtags {
  font-size: 0.75rem;
  color: #d4a847;
  margin-bottom: 8px;
}

.social-card .sc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== NOTES ===== */
.notes-list { display: flex; flex-direction: column; gap: 10px; }

.note-item {
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.note-item .note-content {
  flex: 1;
  font-size: 0.85rem;
  color: #e8e8f0;
  line-height: 1.5;
}

.note-item .note-time {
  font-size: 0.7rem;
  color: #606078;
  white-space: nowrap;
}

.note-item .note-delete {
  background: none;
  border: none;
  color: #606078;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
  transition: color 0.2s;
}

.note-item .note-delete:hover { color: #ef4444; }

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #e8e8f0;
}

.page-header .subtitle {
  font-size: 0.8rem;
  color: #606078;
  margin-top: 2px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #606078;
}

.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 8px; color: #9090a8; }
.empty-state p { font-size: 0.85rem; }

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: #12121a;
  padding: 4px;
  border-radius: 10px;
  display: inline-flex;
}

.tab {
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: #9090a8;
  transition: all 0.2s;
  border: none;
  background: none;
  font-family: 'Inter', sans-serif;
}

.tab:hover { color: #e8e8f0; }
.tab.active {
  background: #1a1a2e;
  color: #d4a847;
}

/* ===== SEARCH ===== */
.search-bar {
  position: relative;
  max-width: 300px;
}

.search-bar i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #606078;
}

.search-bar input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  background: #12121a;
  border: 1px solid #2a2a3e;
  border-radius: 8px;
  color: #e8e8f0;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
}

.search-bar input:focus {
  outline: none;
  border-color: #d4a847;
}

/* ===== DASHBOARD GREETING ===== */
.dashboard-greeting {
  margin-bottom: 24px;
}

.dashboard-greeting h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #e8e8f0;
}

.dashboard-greeting .date {
  font-size: 0.85rem;
  color: #9090a8;
  margin-top: 2px;
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 16px;
}

.section-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #e8e8f0;
}

/* ===== DEADLINES LIST ===== */
.deadline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #1a1a2e;
}

.deadline-item:last-child { border-bottom: none; }

.deadline-item .dl-info { flex: 1; }
.deadline-item .dl-name { font-size: 0.85rem; font-weight: 500; color: #e8e8f0; }
.deadline-item .dl-client { font-size: 0.75rem; color: #606078; }
.deadline-item .dl-date { font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.deadline-item .dl-date.urgent { color: #ef4444; }
.deadline-item .dl-date.soon { color: #f59e0b; }
.deadline-item .dl-date.safe { color: #22c55e; }

/* ===== ALERT ANIMATION ===== */
@keyframes pulseAlert {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}
.deadline-item.urgent-pulse { animation: pulseAlert 2s infinite; }

/* ===== CHARTS ===== */
.chart-container {
  position: relative;
  width: 100%;
}
.chart-container canvas {
  width: 100% !important;
}

/* =====================
   INSTAGRAM WIDGET
   ===================== */
.instagram-widget {
  background: linear-gradient(135deg, #1a1a2e 0%, #1f1240 50%, #1a1a2e 100%);
  border: 1px solid rgba(225,48,108,0.2);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(225,48,108,0.08);
}
.ig-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.ig-stats {
  display: flex;
  gap: 24px;
}
.ig-stat {
  text-align: center;
  min-width: 80px;
}
.ig-num {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: #e8e8f0;
}
.ig-label {
  font-size: 0.7rem;
  color: #606078;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Instagram Analytics Card (Social page) */
.ig-analytics-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #1f1240 50%, #1a1a2e 100%);
  border: 1px solid rgba(225,48,108,0.2);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(225,48,108,0.08);
}
.ig-analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.ig-analytics-header > div:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ig-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.ig-metric:last-child { border-right: none; }
.ig-metric-num {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: #e8e8f0;
}
.ig-metric-label {
  font-size: 0.65rem;
  color: #606078;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =====================
   EVA'S NOTES
   ===================== */
.eva-disclaimer {
  background: rgba(168,85,247,0.08);
  border: 1px solid rgba(168,85,247,0.15);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.8rem;
  color: #c4b5d0;
  font-style: italic;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.5;
}
.eva-disclaimer i {
  color: #a855f7;
  opacity: 0.5;
  margin: 0 6px;
}
.eva-card {
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.eva-card:hover {
  border-color: #a855f7;
}
.eva-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(168,85,247,0.05);
  border-bottom: 1px solid #2a2a3e;
}
.eva-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.eva-name {
  font-size: 1rem;
  font-weight: 600;
  color: #e8e8f0;
  font-family: 'Poppins', sans-serif;
}
.eva-vibe {
  font-size: 0.7rem;
  color: #9090a8;
  display: block;
  margin-top: 2px;
}
.eva-grade {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  padding: 4px 14px;
  border-radius: 8px;
}
.grade-a { color: #22c55e; background: rgba(34,197,94,0.1); }
.grade-b { color: #3b82f6; background: rgba(59,130,246,0.1); }
.grade-c { color: #f59e0b; background: rgba(245,158,11,0.1); }
.grade-f { color: #ef4444; background: rgba(239,68,68,0.1); }
.grade-neutral { color: #9090a8; background: rgba(144,144,168,0.1); }
.eva-body {
  padding: 16px 20px;
}
.eva-section {
  margin-bottom: 16px;
}
.eva-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #9090a8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.eva-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.eva-list li {
  position: relative;
  padding: 5px 0 5px 18px;
  font-size: 0.85rem;
  color: #e8e8f0;
  line-height: 1.4;
}
.eva-list li::before {
  content: '›';
  position: absolute;
  left: 2px;
  color: #a855f7;
  font-weight: 700;
  font-size: 1rem;
}
.eva-says {
  background: rgba(168,85,247,0.06);
  border: 1px solid rgba(168,85,247,0.12);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.eva-quote {
  font-size: 0.85rem;
  color: #d4c4e0;
  line-height: 1.5;
  font-style: italic;
}
.eva-advice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(212,168,71,0.06);
  border: 1px solid rgba(212,168,71,0.12);
  border-radius: 10px;
  font-size: 0.8rem;
  color: #e0d4b0;
  line-height: 1.4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar { width: 60px; }
  .sidebar .logo h1,
  .sidebar .nav-item span,
  .sidebar .nav-section,
  .sidebar .user-info .details { display: none; }
  .sidebar .nav-item { justify-content: center; padding: 12px; }
  .sidebar .user-info { justify-content: center; }
  .main-content { margin-left: 60px; padding: 16px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
