/* ========================================================
   SocialAutomate - Modern Glassmorphic Dark Design System
   ======================================================== */

:root {
  --bg-main: #0a0e17;
  --bg-sidebar: #0f1523;
  --bg-card: rgba(18, 24, 38, 0.7);
  --bg-card-hover: rgba(28, 36, 56, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.35);

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  
  --emerald: #10b981;
  --emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --amber: #f59e0b;
  --amber-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --rose: #ef4444;
  --violet: #8b5cf6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(99, 102, 241, 0.1);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Layout */
.app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  flex-shrink: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-left: 8px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.brand-text h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.sub-badge {
  font-size: 11px;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.nav-item.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--border-glow);
  color: var(--text-main);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.badge-alert {
  margin-left: auto;
  background: var(--rose);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.server-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
}

.status-indicator.online {
  width: 10px;
  height: 10px;
  background-color: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-details {
  display: flex;
  flex-direction: column;
}

.status-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.status-sub {
  font-size: 11px;
  color: var(--emerald);
}

.fallback-status {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
}

.status-dot-mini {
  width: 6px;
  height: 6px;
  background-color: var(--violet);
  border-radius: 50%;
}

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: radial-gradient(circle at 80% 10%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 20% 90%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
              var(--bg-main);
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(10, 14, 23, 0.6);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-left h1 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.topbar-left .subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Global Switch Card */
.global-switch-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(18, 24, 38, 0.8);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.switch-info {
  display: flex;
  flex-direction: column;
}

.switch-title {
  font-size: 13px;
  font-weight: 700;
}

.switch-sub {
  font-size: 11px;
  color: var(--emerald);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #374151;
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background: var(--emerald-gradient);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.admin-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-avatar {
  width: 38px;
  height: 38px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.admin-name {
  font-size: 14px;
  font-weight: 600;
}

/* Metrics Highlights Strip */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 24px 32px 0 32px;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}

.metric-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.metric-icon.indigo { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.metric-icon.emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.metric-icon.amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.metric-icon.rose { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.metric-icon.violet { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

/* Tab Panels */
.tab-pane {
  display: none;
  padding: 24px 32px;
  flex: 1;
}

.tab-pane.active {
  display: flex;
  flex-direction: column;
}

/* INBOX CONTAINER */
.inbox-container {
  display: flex;
  height: calc(100vh - 230px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Conversation Sidebar */
.conv-sidebar {
  width: 360px;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background: rgba(15, 21, 35, 0.6);
}

.conv-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.conv-header h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  margin-bottom: 10px;
}

.conv-filters {
  display: flex;
  gap: 6px;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover, .filter-pill.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--border-glow);
  color: var(--text-main);
}

.conv-list {
  flex: 1;
  overflow-y: auto;
}

.conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.conv-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.conv-item.active {
  background: rgba(99, 102, 241, 0.12);
  border-left: 3px solid var(--primary);
}

.conv-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.conv-details {
  flex: 1;
  min-width: 0;
}

.conv-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.conv-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-time {
  font-size: 11px;
  color: var(--text-dim);
}

.conv-snippet {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.conv-badges {
  display: flex;
  gap: 6px;
  align-items: center;
}

.badge-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.badge-tag.ai { background: rgba(16, 185, 129, 0.15); color: var(--emerald); }
.badge-tag.takeover { background: rgba(245, 158, 11, 0.2); color: var(--amber); }
.badge-tag.attention { background: rgba(239, 68, 68, 0.2); color: var(--rose); animation: pulse 1.5s infinite; }
.badge-tag.platform { background: rgba(255, 255, 255, 0.08); color: var(--text-dim); }

/* Chat Viewport */
.chat-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(11, 15, 25, 0.85);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 21, 35, 0.5);
}

.chat-user-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.platform-indicator {
  display: flex;
  gap: 8px;
  align-items: center;
}

.platform-tag {
  font-size: 11px;
  color: var(--text-dim);
}

.platform-tag.fb { color: #3b82f6; }
.platform-tag.tg { color: #38bdf8; }
.platform-tag.wa { color: #22c55e; }

.chat-id-tag {
  font-size: 11px;
  color: var(--text-dim);
  font-family: monospace;
}

.chat-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.handover-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.handover-status-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.handover-status-badge.ai {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.handover-status-badge.ai .dot { background: var(--emerald); box-shadow: 0 0 6px var(--emerald); }

.handover-status-badge.takeover {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.handover-status-badge.takeover .dot { background: var(--amber); box-shadow: 0 0 6px var(--amber); }

.btn-handover {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-handover:hover {
  background: rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

.btn-handover.release {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.btn-handover.release:hover {
  background: rgba(16, 185, 129, 0.25);
}

/* Messages Stream */
.messages-container {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg-row {
  display: flex;
  flex-direction: column;
  max-width: 70%;
}

.msg-row.customer {
  align-self: flex-start;
}

.msg-row.ai, .msg-row.admin {
  align-self: flex-end;
}

.msg-sender-tag {
  font-size: 11px;
  margin-bottom: 4px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.msg-row.customer .msg-sender-tag { color: var(--text-muted); }
.msg-row.ai .msg-sender-tag { color: var(--violet); }
.msg-row.admin .msg-sender-tag { color: var(--emerald); }

.msg-bubble {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
  word-break: break-word;
}

.msg-row.customer .msg-bubble {
  background: #1e293b;
  color: var(--text-main);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border-color);
}

.msg-row.ai .msg-bubble {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #f1f5f9;
  border-bottom-right-radius: 4px;
}

.msg-row.admin .msg-bubble {
  background: var(--emerald-gradient);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.msg-time {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 4px;
  align-self: flex-end;
}

/* Chat Input Bar */
.chat-input-bar {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: rgba(15, 21, 35, 0.7);
}

.handover-notice {
  font-size: 12px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.handover-notice.hidden {
  display: none;
}

.input-form {
  display: flex;
  gap: 12px;
}

.input-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.input-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.btn-send {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-send:hover {
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

/* Post Scheduler Tab */
.scheduler-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

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

.card-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
}

.badge-zero-worker {
  font-size: 11px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input, .form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.platform-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-group.half {
  flex: 1;
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.btn-primary.full-width {
  width: 100%;
}

.btn-refresh {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
}

.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.badge-status {
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.badge-status.published { background: rgba(16, 185, 129, 0.15); color: var(--emerald); }
.badge-status.pending { background: rgba(245, 158, 11, 0.15); color: var(--amber); }

/* Analytics */
.analytics-grid, .settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.progress-bar-container {
  height: 12px;
  background: #1f2937;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 16px 0 8px 0;
}

.progress-bar-fill {
  height: 100%;
  background: var(--emerald-gradient);
  border-radius: var(--radius-full);
}

.quota-stats {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.savings-banner {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
}

.stats-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.stats-list li {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.section-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.help-text {
  font-size: 11px;
  color: var(--text-dim);
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(18, 24, 38, 0.95);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  display: none;
  z-index: 100;
  animation: slideIn 0.3s forwards;
}

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

/* Responsive adjustments */
@media (max-width: 900px) {
  .app-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--border-color); }
  .inbox-container { flex-direction: column; height: auto; }
  .conv-sidebar { width: 100%; height: 260px; }
  .scheduler-grid { grid-template-columns: 1fr; }
}
