/* Dr Kotha Personal Dashboard - Executive Design System */

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Dark Theme Palette (Default) */
  --bg-app: #090d16;
  --bg-card: #131b2e;
  --bg-card-hover: #18223a;
  --bg-surface: #1e293b;
  --bg-input: #0f172a;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #3b82f6;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --color-accent-glow: rgba(59, 130, 246, 0.25);
  
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #06b6d4;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme overrides */
body.light-theme {
  --bg-app: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-surface: #e2e8f0;
  --bg-input: #f8fafc;
  --border-color: #e2e8f0;
  --border-focus: #2563eb;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Layout */
.dashboard-container {
  max-width: 1720px;
  margin: 0 auto;
  padding: 16px 24px 32px;
}

/* Top Navbar */
.top-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 12px var(--color-accent-glow);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text h1 span {
  color: var(--color-accent);
  font-weight: 500;
}

.status-subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}

.live-clock {
  text-align: center;
  background: var(--bg-surface);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

.live-clock .time {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-right: 8px;
}

.live-clock .date {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Grid System */
.dashboard-grid {
  display: grid;
  grid-template-columns: 360px 1fr 420px;
  gap: 20px;
  align-items: start;
}

.grid-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: var(--shadow-md);
}

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

.header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-title h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.text-accent {
  color: var(--color-accent);
}

/* Buttons & Inputs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-main);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 4px 12px var(--color-accent-glow);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
}

.btn-accent {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
}
.btn-accent:hover {
  opacity: 0.95;
}

.btn-danger {
  background: var(--color-danger);
  color: white;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-xs {
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.icon-btn:hover {
  background: var(--color-accent);
  color: white;
}
.icon-btn.small {
  width: 30px;
  height: 30px;
  font-size: 0.8rem;
}

input, select, textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.select-sm {
  width: auto;
  padding: 6px 10px;
  font-size: 0.8rem;
}

/* Badges */
.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.badge-pill {
  background: rgba(59, 130, 246, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Weather Widget Styles */
.weather-current {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.weather-main-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.weather-icon-large {
  font-size: 2.5rem;
  color: #fbbf24;
}

.current-temp {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-mono);
}
.current-temp .unit {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-muted);
}

.weather-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

.weather-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.metric-item i {
  color: var(--color-accent);
  width: 14px;
}

.weather-forecast-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.weather-forecast {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.forecast-day {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.forecast-day .day-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.forecast-day .day-icon {
  font-size: 1rem;
  margin: 6px 0;
  color: #fbbf24;
}

.forecast-day .day-temps {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}
.forecast-day .day-temps .temp-max {
  color: var(--text-primary);
}
.forecast-day .day-temps .temp-min {
  color: var(--text-muted);
  margin-left: 2px;
}

/* Quick Links Styles */
.link-categories {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
}

.pill-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.pill-tab.active, .pill-tab:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  position: relative;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.link-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-icon img {
  width: 18px;
  height: 18px;
  border-radius: 2px;
}

.link-title {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tasks Styles */
.quick-add-task {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}

.filter-tabs {
  display: flex;
  background: var(--bg-input);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.search-mini {
  position: relative;
  width: 160px;
}

.search-mini i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.search-mini input {
  padding: 6px 10px 6px 30px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.task-item:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.task-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.task-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.task-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.task-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-item.completed .task-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.priority-tag {
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.7rem;
}
.priority-tag.high {
  background: rgba(239, 68, 68, 0.2);
  color: var(--color-danger);
}
.priority-tag.medium {
  background: rgba(245, 158, 11, 0.2);
  color: var(--color-warning);
}
.priority-tag.low {
  background: rgba(16, 185, 129, 0.2);
  color: var(--color-success);
}

.task-actions {
  display: flex;
  gap: 6px;
}

.btn-task-del {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}
.btn-task-del:hover {
  color: var(--color-danger);
}

/* Calendar Styles */
.calendar-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-current-month {
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 120px;
  text-align: center;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.cal-day:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-accent);
}

.cal-day.today {
  border-color: var(--color-accent);
  font-weight: 700;
  color: var(--color-accent);
}

.cal-day.selected {
  background: var(--color-accent);
  color: white;
  font-weight: 700;
}

.cal-day.other-month {
  opacity: 0.3;
}

.cal-day .event-indicator {
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-warning);
}

.cal-day.selected .event-indicator {
  background: white;
}

.day-agenda {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid var(--border-color);
}

.agenda-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.agenda-events {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
}

.agenda-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--bg-surface);
  border-left: 3px solid var(--color-accent);
  border-radius: 4px;
  font-size: 0.85rem;
}

.agenda-item.clinical {
  border-left-color: var(--color-info);
}
.agenda-item.meeting {
  border-left-color: var(--color-warning);
}
.agenda-item.personal {
  border-left-color: var(--color-success);
}

/* Notes & Dictation Styles */
.notes-actions {
  display: flex;
  gap: 8px;
}

.mic-pulse-btn.recording {
  background: var(--color-danger);
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.dictation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: #fca5a5;
}

.pulse-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.pulse-wave span {
  width: 3px;
  height: 100%;
  background: var(--color-danger);
  border-radius: 3px;
  animation: sound-bars 1s ease-in-out infinite alternate;
}

.pulse-wave span:nth-child(2) { animation-delay: 0.2s; height: 60%; }
.pulse-wave span:nth-child(3) { animation-delay: 0.4s; height: 100%; }
.pulse-wave span:nth-child(4) { animation-delay: 0.1s; height: 40%; }
.pulse-wave span:nth-child(5) { animation-delay: 0.3s; height: 80%; }

@keyframes sound-bars {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

.note-editor-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-input);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 14px;
}

.note-editor-wrap input {
  font-weight: 600;
}

.note-editor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notes-search-wrap {
  position: relative;
  margin-bottom: 10px;
}

.notes-search-wrap i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.notes-search-wrap input {
  padding-left: 32px;
  font-size: 0.8rem;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.note-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  transition: var(--transition);
  cursor: pointer;
}

.note-card:hover {
  border-color: var(--color-accent);
}

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

.note-card-title {
  font-weight: 700;
  font-size: 0.85rem;
}

.note-preview-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Media & Document Uploader Styles */
.file-filter-chips {
  display: flex;
  gap: 6px;
}

.chip {
  font-size: 0.75rem;
  padding: 3px 8px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
}
.chip.active {
  background: var(--color-accent);
  color: white;
}

.upload-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  background: var(--bg-input);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 12px;
}

.upload-dropzone.dragover {
  border-color: var(--color-accent);
  background: rgba(59, 130, 246, 0.08);
}

.drop-icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.drop-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.file-browse-label {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.drop-hint {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hidden-input {
  display: none;
}

.files-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
}

.file-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.file-item-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
}

.file-thumb {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 6px;
}

.file-icon-wrap {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-accent);
  background: var(--bg-input);
  border-radius: 4px;
  margin-bottom: 6px;
}

.file-name {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(6px);
  padding: 16px;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modal-slide-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-modal-box {
  max-width: 800px;
  height: 80vh;
  display: flex;
  flex-direction: column;
}

.preview-modal-body {
  flex: 1;
  overflow: hidden;
  padding: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-modal-body iframe, .preview-modal-body img {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
}

@keyframes modal-slide-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.settings-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}

.settings-section h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.settings-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hidden {
  display: none !important;
}

/* Responsive Media Queries */
@media (max-width: 1280px) {
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .col-right {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .dashboard-container {
    padding: 12px;
  }
  .top-navbar {
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .col-right {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .header-center {
    width: 100%;
  }
}
