:root {
  color-scheme: light dark;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Modern Theme with #0f172a as primary accent */
  --primary: #0f172a;
  --primary-light: #1e293b;
  --primary-dark: #020617;
  
  --bg: linear-gradient(145deg, #0a0f1e 0%, #0f172a 40%, #1e293b 100%);
  --card-bg: rgba(30, 41, 59, 0.6);
  --card-border: rgba(148, 163, 184, 0.12);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  
  /* Accent colors */
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --success: #10b981;
  --success-hover: #059669;
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.4);
  
  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  background-attachment: fixed;
  display: flex;
  align-items: stretch;
  line-height: 1.6;
}

.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.app-shell.is-authenticated {
  grid-template-columns: 280px minmax(0, 1fr);
}

.app-shell:not(.is-authenticated) .app-sidebar {
  display: none;
}

/* Ensure dashboard is completely hidden before authentication */
.app-shell:not(.is-authenticated) #dashboard {
  display: none !important;
}

/* show admin panel only in admin mode */
.app-shell:not(.is-admin) #adminPanel {
  display: none !important;
}

/* Ensure admin panel is completely hidden before authentication */
.app-shell:not(.is-authenticated) #adminPanel {
  display: none !important;
}

/* Only show admin panel for admin sessions */
.app-shell:not(.is-admin) #adminPanel {
  display: none !important;
}

.app-sidebar {
  padding: 32px 24px;
  backdrop-filter: blur(20px);
  background: rgba(15, 23, 42, 0.8);
  border-right: 2px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 16px;
}


.brand-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.brand-subtitle {
  margin: 2px 0 0 0;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-link {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  border: 2px solid transparent;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: var(--transition);
  cursor: pointer;
}

.nav-link:hover {
  background: var(--card-bg);
  color: var(--text);
  transform: translateX(4px);
}

.nav-link.is-active {
  background: var(--primary);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: var(--shadow-md);
}

/* Special Admin Button */
.nav-link[data-target="admin"] {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.15));
  border: 2px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.nav-link[data-target="admin"]:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.25));
  border-color: rgba(251, 191, 36, 0.6);
  color: #fcd34d;
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
  transform: translateX(6px) scale(1.02);
}

.nav-link[data-target="admin"].is-active {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.3));
  border-color: #fbbf24;
  color: #fcd34d;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.5);
}

.nav-link[data-target="admin"]::before {
  content: '👑 ';
  margin-right: 4px;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.4);
  display: grid;
  place-items: center;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.user-name {
  margin: 0;
  font-weight: 600;
}

.user-meta {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.logout-button {
  border: 2px solid var(--card-border);
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--danger);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
}

.logout-button:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
  box-shadow: var(--shadow-md);
}

.app-main {
  padding: 48px clamp(32px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.session-bar {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(720px, 90%);
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.session-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(13, 109, 115, 0.7), rgba(128, 251, 255, 0.7));
  width: 100%;
  transition: width 0.25s linear;
}

.session-bar__label {
  position: fixed;
  top: 16px;
  right: 5%;
  font-size: 11px;
  opacity: 0.7;
  color: var(--text-muted);
}

.error-text { color: var(--danger); margin-top: 6px; }

.app-shell.is-authenticated .app-main {
  align-items: stretch;
  justify-content: flex-start;
}
.admin-panel {
  width: min(1100px, 100%);
  display: grid;
  gap: 24px;
}

.admin-card h2 {
  margin: 0 0 8px 0;
}

.admin-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-table {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: var(--shadow-sm);
}

.admin-row__meta {
  display: grid;
}

.admin-row__actions {
  display: flex;
  gap: 8px;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 960px) {
  .admin-content {
    grid-template-columns: 1fr;
  }
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  padding: 12px;
}

.cookie-banner__content {
  margin: 0 auto;
  width: min(1100px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.cookie-link {
  color: var(--accent);
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
}

.login-panel {
  width: min(420px, 100%);
}

.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 36px);
  box-shadow: var(--shadow);
  position: relative;
}
/* subtle inner highlight for card edges */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.login-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(24px, 4vw, 32px);
}


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

.tiny-text {
  font-size: 13px;
}

/* utility */
.hidden { display: none !important; }

.form-grid {
  display: grid;
  gap: 18px;
  margin: 24px 0 12px;
}

.input-group {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.input-group input,
.input-group textarea,
.select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: var(--transition);
  outline: none;
}

.input-group input:focus,
.input-group textarea:focus,
.select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group input:disabled,
.input-group textarea:disabled,
.select:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Modern Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  white-space: nowrap;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.primary-button,
.btn-primary {
  background: var(--primary);
  color: var(--text);
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(148, 163, 184, 0.2);
}

.primary-button:hover:not(:disabled),
.btn-primary:hover:not(:disabled) {
  background: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.3);
}

.secondary-button,
.btn-secondary {
  background: rgba(30, 41, 59, 0.5);
  color: var(--text);
  border: 2px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.secondary-button:hover:not(:disabled),
.btn-secondary:hover:not(:disabled) {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-accent {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 2px solid rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 2px solid rgba(16, 185, 129, 0.3);
  box-shadow: var(--shadow-sm);
}

.btn-success:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 2px solid rgba(239, 68, 68, 0.3);
  box-shadow: var(--shadow-sm);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
}

/* Form Submit Buttons - Extra Höhe */
form button[type="submit"] {
  padding: 16px 24px;
  min-height: 52px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-lg);
}

/* Workflow Checkbox List */
.workflow-checkbox-list {
  max-height: 280px;
  overflow-y: auto;
  border: 2px solid var(--card-border);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.4);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.workflow-checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  user-select: none;
}

.workflow-checkbox-item:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--accent);
  transform: translateX(4px);
}

.workflow-checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--accent);
  border-radius: 4px;
}

.workflow-checkbox-item label {
  flex: 1;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.workflow-checkbox-item input[type="checkbox"]:checked + label {
  color: var(--accent);
  font-weight: 600;
}

.workflow-checkbox-list::-webkit-scrollbar {
  width: 8px;
}

.workflow-checkbox-list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
  border-radius: 4px;
}

.workflow-checkbox-list::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.workflow-checkbox-list::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

.dashboard {
  width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Modern Cards */
.card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.card:hover {
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:active {
  transform: translateY(0);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge.ok { background: rgba(74, 222, 128, 0.12); color: var(--success); }
.badge.warn { background: rgba(249, 115, 22, 0.12); color: var(--warning); }
.badge.error { background: rgba(248, 113, 113, 0.12); color: var(--danger); }

/* subtle elevation on cards and interactive elements */
.glass-card {
  box-shadow: var(--shadow);
}

.glass-card:hover {
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.2s ease;
}

.dashboard-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.35);
}

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

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.grid {
  display: grid;
  gap: 20px;
}

.two-cols {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.one-col {
  grid-template-columns: 1fr;
}

.metric-card {
  display: grid;
  gap: 16px;
}

.metric-card h3 {
  margin: 0;
  font-size: 18px;
}

.metric-card__value {
  font-size: 32px;
  font-weight: 600;
}

.metric-trend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.metric-trend.positive {
  color: var(--success);
}

.metric-trend.negative {
  color: var(--danger);
}

.workflow-card {
  display: grid;
  gap: 18px;
}

.workflow-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.workflow-card__title {
  margin: 0;
}

.status-badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-sm);
}

.status-running {
  background: rgba(74, 222, 128, 0.12);
  color: var(--success);
}

.status-warning {
  background: rgba(249, 115, 22, 0.12);
  color: var(--warning);
}

.status-error {
  background: rgba(248, 113, 113, 0.12);
  color: var(--danger);
}

.workflow-meta {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 0;
}

.workflow-meta dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.workflow-meta dd {
  margin: 2px 0 0;
  font-weight: 600;
}

.workflow-progress {
  display: grid;
  gap: 12px;
}

.progress-bar {
  height: 8px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

/* glossy top light for progress track */
.progress-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  width: 0%;
  transition: width 0.6s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 6px 16px rgba(13, 109, 115, 0.28);
}

.workflow-insights {
  display: grid;
  gap: 8px;
}

.insight-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.ticket-card {
  display: grid;
  gap: 18px;
}

.ticket-list {
  display: grid;
  gap: 12px;
}

.ticket-item {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.1);
  display: grid;
  gap: 6px;
}

.ticket-item__meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.ticket-item__status {
  font-weight: 600;
}

.ticket-form {
  display: grid;
  gap: 16px;
}

/* Support modern layout */
/* Support layout refinement */
.ticket-form {
  display: grid;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  width: min(720px, 100%);
}
.ticket-form label {
  display: grid;
  gap: 8px;
}
.ticket-form input,
.ticket-form textarea,
.ticket-form select {
  width: 100%;
}

/* Jira Integration Styles */
.jira-options {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.05);
  border: 2px solid rgba(59, 130, 246, 0.15);
}

.jira-advanced {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.jira-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jira-status-badge.pending {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
}

.jira-status-badge.created {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.jira-status-badge.in_progress {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent);
}

.jira-status-badge.done {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.jira-status-badge.error {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.jira-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: var(--transition);
}

.jira-link:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateX(2px);
}

/* Align content max width */
.app-main .panel {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.ticket-form textarea {
  min-height: 120px;
  resize: vertical;
}

.reports-card {
  display: grid;
  gap: 20px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.report-item {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.1);
  display: grid;
  gap: 8px;
}

.report-item__label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.report-item__value {
  font-size: 24px;
  font-weight: 600;
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
  }

  .sidebar-header,
  .sidebar-footer {
    display: none;
  }

  .sidebar-nav {
    flex-direction: row;
    gap: 8px;
  }

  .nav-link {
    padding: 10px 14px;
    font-size: 14px;
  }

  .app-main {
    padding: 24px;
  }

  .dashboard {
    width: 100%;
  }
}

@media (max-width: 640px) {
  body {
    background: #0f172a;
  }

  .app-main {
    padding: 18px;
  }

  .glass-card {
    border-radius: 22px;
  }

  .grid {
    gap: 16px;
  }
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: var(--text);
}

.empty-state p {
  margin: 0 0 24px 0;
  font-size: 15px;
}

/* Toast Notifications */
#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--text);
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
  font-weight: 500;
  border: 2px solid var(--card-border);
}

#toast.show {
  opacity: 1;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

.shake {
  animation: shake 0.36s ease;
}

/* Password Toggle */
.password-toggle {
  position: relative;
}

.password-toggle input {
  padding-right: 48px;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.password-toggle-btn:hover {
  color: var(--text);
}