/* app.css — Dashboard app styles */

/* === LAYOUT === */
.app-body {
  display: flex;
  min-height: 100vh;
  background: var(--bg-primary);
}

/* === SIDEBAR === */
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 16px;
}

.sidebar-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--gradient-hero);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s;
}
.nav-item:hover { background: rgba(255,255,255,0.04); color: var(--fg-secondary); }
.nav-item.active { background: rgba(77,107,254,0.12); color: var(--accent); }
.nav-item.active svg { stroke: var(--accent); }

.sidebar-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--accent-glow);
  border: 1px solid rgba(77,107,254,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  flex-shrink: 0;
}

.user-info { display: flex; flex-direction: column; min-width: 0; }
.user-name { font-size: 0.82rem; font-weight: 600; color: var(--fg-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-email { font-size: 0.72rem; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-logout {
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.sidebar-logout:hover { color: #ef4444; background: rgba(239,68,68,0.1); }

/* === MAIN CONTENT === */
.app-main {
  margin-left: 240px;
  flex: 1;
  padding: 40px 48px;
  max-width: 1100px;
}

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

.page-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
}

.page-sub {
  color: var(--fg-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}

.back-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 6px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--fg-secondary); }

/* === BUTTONS === */
.app-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.app-btn-primary:hover { background: #3d5bf0; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(77,107,254,0.35); }
.app-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.app-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--bg-card);
  color: var(--fg-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.app-btn-secondary:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.15); color: var(--fg-primary); }

/* === STATS GRID === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: rgba(255,255,255,0.1); }

.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.stat-card-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card-label {
  font-size: 0.82rem;
  color: var(--fg-muted);
  font-weight: 500;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* === ACTIVITY === */
.activity-list {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: rgba(255,255,255,0.02); }

.activity-icon { font-size: 1.1rem; flex-shrink: 0; }
.activity-content { flex: 1; min-width: 0; }
.activity-title { display: block; font-size: 0.9rem; color: var(--fg-primary); }
.activity-title strong { color: var(--fg-primary); font-weight: 600; }
.activity-meta { display: block; font-size: 0.8rem; color: var(--fg-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-time { font-size: 0.78rem; color: var(--fg-muted); flex-shrink: 0; }
.activity-empty { padding: 32px 20px; text-align: center; color: var(--fg-muted); font-size: 0.9rem; }

/* === EMPTY/LOADING/ERROR STATES === */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  max-width: 480px;
  margin: 0 auto;
}
.empty-state.compact { padding: 48px 32px; }
.empty-icon { font-size: 3rem; margin-bottom: 20px; }
.empty-state h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.empty-state p { color: var(--fg-secondary); font-size: 0.95rem; line-height: 1.6; }

.loading-state { padding: 48px; text-align: center; color: var(--fg-muted); font-size: 0.9rem; }
.loading-state.small { padding: 24px; }
.error-state { padding: 24px; color: #f87171; font-size: 0.9rem; background: rgba(239,68,68,0.08); border-radius: var(--radius); }

/* === SEQUENCES GRID === */
.seq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.seq-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--fg-primary);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.seq-card:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.12); transform: translateY(-2px); }

.seq-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.seq-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 8px;
  line-height: 1.3;
}

.seq-card-stats {
  display: flex;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.seq-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.seq-type-welcome { background: rgba(77,107,254,0.15); color: #7b9fff; }
.seq-type-followup { background: rgba(245,166,35,0.15); color: #f5a623; }
.seq-type-reengagement { background: rgba(16,185,129,0.15); color: #10b981; }

.seq-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.seq-status-badge.active { background: rgba(16,185,129,0.15); color: #10b981; }
.seq-status-badge.paused { background: rgba(245,166,35,0.15); color: #f5a623; }
.seq-status-badge.draft { background: rgba(144,144,168,0.1); color: var(--fg-muted); }
.seq-status-badge.lg { padding: 6px 14px; font-size: 0.82rem; }

/* === WIZARD / NEW SEQUENCE === */
.wizard-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 720px;
}

.wizard-section { margin-bottom: 32px; }
.wizard-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-secondary);
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}
.optional { color: var(--fg-muted); font-weight: 400; }

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.type-card { cursor: pointer; }
.type-card input { display: none; }
.type-card-inner {
  padding: 20px 16px;
  background: var(--bg-secondary);
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.type-card:hover .type-card-inner { border-color: rgba(77,107,254,0.3); background: rgba(77,107,254,0.05); }
.type-card.selected .type-card-inner { border-color: var(--accent); background: rgba(77,107,254,0.1); }

.type-icon { font-size: 1.8rem; margin-bottom: 10px; }
.type-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.type-desc { font-size: 0.8rem; color: var(--fg-secondary); line-height: 1.5; }

.wizard-input, .wizard-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: var(--fg-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.wizard-input::placeholder, .wizard-textarea::placeholder { color: var(--fg-muted); }
.wizard-input:focus, .wizard-textarea:focus {
  border-color: rgba(77,107,254,0.5);
  box-shadow: 0 0 0 3px rgba(77,107,254,0.1);
}

/* === SEQUENCE DETAIL === */
.seq-header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.seq-meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
}
.seq-desc-text { font-size: 0.88rem; color: var(--fg-muted); font-style: italic; }

.steps-section { margin-bottom: 48px; }
.steps-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }

.step-card {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}

.step-number-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: 4px;
  flex-shrink: 0;
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--accent-glow);
  border: 2px solid rgba(77,107,254,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  flex-shrink: 0;
  z-index: 1;
}

.step-connector {
  width: 2px;
  flex: 1;
  min-height: 40px;
  background: rgba(77,107,254,0.15);
  margin-top: 4px;
  margin-bottom: 4px;
}

.step-body {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}
.step-body:hover { border-color: rgba(255,255,255,0.1); }

.step-delay-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.delay-control {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 6px 12px;
}

.delay-btn {
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 6px;
  color: var(--fg-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}
.delay-btn:hover { background: rgba(255,255,255,0.15); color: var(--fg-primary); }

.delay-display { font-size: 0.85rem; font-weight: 600; color: var(--fg-primary); min-width: 90px; text-align: center; }

.step-field { margin-bottom: 16px; }
.step-field-label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }

.step-subject-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: var(--fg-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}
.step-subject-input:focus { border-color: rgba(77,107,254,0.4); }
.step-subject-input::placeholder { color: var(--fg-muted); font-weight: 400; }

.step-body-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: var(--fg-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}
.step-body-input:focus { border-color: rgba(77,107,254,0.4); }
.step-body-input::placeholder { color: var(--fg-muted); }

.step-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
  flex-wrap: wrap;
}

.ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(77,107,254,0.2), rgba(139,92,246,0.2));
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: var(--radius);
  color: #b4a7ff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.ai-btn:hover { background: linear-gradient(135deg, rgba(77,107,254,0.35), rgba(139,92,246,0.3)); border-color: rgba(139,92,246,0.5); transform: translateY(-1px); }
.ai-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.ai-btn.loading svg { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.step-save-btn {
  padding: 8px 16px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: var(--radius);
  color: #34d399;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.step-save-btn:hover { background: rgba(16,185,129,0.2); }

.step-delete-btn {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
}
.step-delete-btn:hover { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #f87171; }

/* === ENROLLED SECTION === */
.enrolled-section { margin-bottom: 40px; }
.enrolled-empty { padding: 24px; color: var(--fg-muted); font-size: 0.9rem; }
.inline-link { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 0.9rem; padding: 0; text-decoration: underline; }

.enrolled-table { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); overflow: hidden; margin-top: 16px; }
.enrolled-header, .enrolled-row {
  display: grid;
  grid-template-columns: 1fr 1fr 100px;
  padding: 12px 20px;
  gap: 16px;
  align-items: center;
}
.enrolled-header { background: rgba(255,255,255,0.03); font-size: 0.75rem; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.enrolled-row { border-top: 1px solid rgba(255,255,255,0.04); font-size: 0.88rem; }
.enrolled-status { font-size: 0.75rem; font-weight: 600; }
.enrolled-status.active { color: #10b981; }
.enrolled-status.completed { color: var(--fg-muted); }

/* === CONTACTS PAGE === */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.search-bar svg { color: var(--fg-muted); flex-shrink: 0; }
.search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--fg-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}
.search-bar input::placeholder { color: var(--fg-muted); }

.contacts-table {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

.contacts-header, .contacts-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 0.8fr 40px;
  padding: 12px 20px;
  gap: 16px;
  align-items: center;
}
.contacts-header { background: rgba(255,255,255,0.03); font-size: 0.75rem; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.contacts-row { border-top: 1px solid rgba(255,255,255,0.04); font-size: 0.88rem; transition: background 0.15s; }
.contacts-row:hover { background: rgba(255,255,255,0.02); }
.contact-email { color: var(--fg-primary); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-date { color: var(--fg-muted); font-size: 0.8rem; }

.delete-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--fg-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.delete-btn:hover { background: rgba(239,68,68,0.1); color: #f87171; }

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay[style*="display:none"] { display: none !important; }

.modal-box {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.modal-header h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }

.modal-form { padding: 20px 28px; display: flex; flex-direction: column; gap: 16px; }
.modal-form .form-group { display: flex; flex-direction: column; gap: 6px; }
.modal-form label { font-size: 0.82rem; font-weight: 600; color: var(--fg-secondary); }
.modal-form input, .modal-form textarea {
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: var(--fg-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  resize: vertical;
}
.modal-form input:focus, .modal-form textarea:focus { border-color: rgba(77,107,254,0.4); }
.modal-form input::placeholder, .modal-form textarea::placeholder { color: var(--fg-muted); }

.modal-footer {
  padding: 16px 28px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.enroll-list { padding: 12px 28px 4px; max-height: 320px; overflow-y: auto; }
.enroll-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.enroll-item:hover { background: rgba(255,255,255,0.04); }
.enroll-item input { width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.enroll-info { display: flex; flex-direction: column; gap: 2px; }
.enroll-email { font-size: 0.9rem; font-weight: 500; color: var(--fg-primary); }
.enroll-name { font-size: 0.78rem; color: var(--fg-muted); }

/* === TOAST === */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 9999;
  animation: fadeInUp 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast-success { background: #10b981; color: #fff; }
.toast-error { background: #ef4444; color: #fff; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar { width: 64px; padding: 16px 8px; }
  .sidebar-logo-text, .nav-item span, .user-info { display: none; }
  .sidebar-logo { justify-content: center; padding-bottom: 20px; }
  .sidebar-logo-mark { margin: 0; }
  .nav-item { justify-content: center; padding: 12px; }
  .sidebar-user { justify-content: center; }

  .app-main { margin-left: 64px; padding: 24px 20px; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .seq-header-actions { width: 100%; flex-wrap: wrap; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .type-grid { grid-template-columns: 1fr; }
  .contacts-header, .contacts-row { grid-template-columns: 1fr 1fr 40px; }
  .contacts-header span:nth-child(3), .contacts-row span:nth-child(3),
  .contacts-header span:nth-child(4), .contacts-row span:nth-child(4) { display: none; }
  .wizard-card { padding: 24px 20px; }
}
