@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ==================== DARK MODE (Default) ==================== */
:root {
  --bg-base: #0c1220;
  --bg-surface: #111827;
  --bg-card: #162032;
  --bg-elevated: #1e2d44;
  --bg-hover: rgba(59, 130, 246, 0.06);
  --bg-active: rgba(59, 130, 246, 0.1);

  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-active: rgba(59, 130, 246, 0.4);

  --text-primary: #e8ecf4;
  --text-secondary: #94a3b8;
  --text-muted: #536178;

  /* Blue-Black + Red Accent Palette */
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.2);
  --red: #f43f5e;
  --red-light: #fb7185;
  --red-glow: rgba(244, 63, 94, 0.15);
  --green: #22c55e;
  --green-light: #4ade80;
  --green-glow: rgba(34, 197, 94, 0.15);
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.15);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.15);

  --gradient-main: linear-gradient(135deg, #1e3a5f 0%, #3b82f6 50%, #60a5fa 100%);
  --gradient-accent-red: linear-gradient(135deg, #3b82f6 0%, #e11d48 100%);
  --gradient-green: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
  --gradient-card: linear-gradient(180deg, #162032 0%, #111d2e 100%);

  --radius: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 4px 20px rgba(59, 130, 246, 0.15);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==================== LIGHT MODE ==================== */
[data-theme="light"] {
  --bg-base: #f0f4f8;
  --bg-surface: #ffffff;
  --bg-card: #f8fafc;
  --bg-elevated: #e2e8f0;
  --bg-hover: rgba(59, 130, 246, 0.06);
  --bg-active: rgba(59, 130, 246, 0.08);

  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --border-active: rgba(59, 130, 246, 0.4);

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

  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --red: #e11d48;
  --red-light: #f43f5e;
  --red-glow: rgba(225, 29, 72, 0.1);
  --green: #16a34a;
  --green-light: #22c55e;
  --green-glow: rgba(22, 163, 74, 0.1);

  --gradient-main: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  --gradient-accent-red: linear-gradient(135deg, #2563eb 0%, #e11d48 100%);
  --gradient-card: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-accent: 0 4px 20px rgba(37, 99, 235, 0.12);
}

/* Light mode specific overrides */
[data-theme="light"] .loading-spinner {
  border-color: rgba(0, 0, 0, 0.15);
  border-top-color: var(--accent);
}

[data-theme="light"] .toggle-slider {
  background: var(--bg-elevated);
}

[data-theme="light"] .mini-slider {
  background: var(--bg-elevated);
}

[data-theme="light"] .auth-overlay {
  background: var(--bg-base);
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
  position: relative;
}

#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}

/* ==================== HEADER ==================== */
.header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s ease;
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 0;
}

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

.logo {
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-main);
  border-radius: var(--radius);
  filter: none;
}

.header-title h1 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.header-title p {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

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

.header-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent-light);
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.prayer-label {
  color: var(--green-light);
  font-size: 11px;
  font-weight: 600;
}

/* ==================== BURGER BUTTON ==================== */
.burger-btn {
  font-size: 18px;
  padding: 6px 10px;
  line-height: 1;
}

.burger-icon {
  font-size: 18px;
}

/* ==================== THEME TOGGLE ==================== */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--bg-hover);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: 0;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  border: none;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.3);
}

.btn-success {
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
}

.btn-success:hover {
  background: var(--green);
  color: white;
  box-shadow: 0 0 15px var(--green-glow);
}

.btn-danger {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
}

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

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--bg-hover);
}

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

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

/* ==================== MAIN LAYOUT ==================== */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 32px;
}

/* ==================== PRAYER STATUS BAR ==================== */
.status-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
  animation: fadeInDown 0.4s ease;
  transition: background 0.3s ease;
}

.prayer-status-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.prayer-status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  flex: 1;
  min-width: 130px;
  justify-content: center;
  background: var(--bg-card);
}

.prayer-status-item.active {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--bg-active);
  box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.05);
}

.prayer-status-item.done {
  color: var(--text-muted);
  opacity: 0.5;
}

.prayer-status-item .time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  opacity: 0.7;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}

.prayer-status-item.active .dot {
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
  animation: dotBlink 1.5s ease-in-out infinite;
}

.prayer-status-item.done .dot {
  background: var(--text-muted);
}

@keyframes dotBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* ==================== ACCOUNT CARDS ==================== */
.accounts-section h2 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.account-count {
  background: var(--gradient-accent-red);
  color: white;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 700;
}

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

.account-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  animation: fadeInUp 0.35s ease;
  overflow: hidden;
}

.account-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.account-card.inactive {
  opacity: 0.5;
}

.account-card.inactive:hover {
  opacity: 0.65;
}

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

.card-body {
  padding: 20px;
}

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

.card-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.account-avatar {
  width: 38px;
  height: 38px;
  background: var(--gradient-accent-red);
  color: white;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.account-info {
  min-width: 0;
}

.account-info h3 {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-info p {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.login-badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 4px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: var(--transition);
  font-weight: 500;
}

.login-badge.verified {
  background: var(--green-glow);
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.3);
}

.login-badge.failed {
  background: var(--red-glow);
  color: var(--red);
  border-color: rgba(244, 63, 94, 0.3);
}

/* Schedule Toggles */
.schedule-toggles {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.schedule-toggle {
  padding: 8px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  flex: 1;
  min-width: 70px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  transition: var(--transition);
  background: var(--bg-card);
}

.schedule-toggle:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.schedule-toggle.active {
  border-color: var(--accent);
  background: var(--bg-active);
}

.schedule-toggle .prayer-name {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.schedule-toggle.active .prayer-name {
  color: var(--accent-light);
}

/* Toggle */
.toggle-switch {
  position: relative;
  width: 40px;
  height: 20px;
  cursor: pointer;
}

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

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 2px;
  bottom: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}

input:checked+.toggle-slider {
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.1);
}

input:checked+.toggle-slider::before {
  transform: translateX(20px);
  background: var(--green);
  box-shadow: 0 0 6px var(--green-glow);
}

.mini-toggle {
  position: relative;
  width: 30px;
  height: 14px;
  cursor: pointer;
}

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

.mini-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: var(--transition);
}

.mini-slider::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  left: 2px;
  bottom: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}

input:checked+.mini-slider {
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.1);
}

input:checked+.mini-slider::before {
  transform: translateX(16px);
  background: var(--green);
}

/* Code Tags */
.codes-section {
  margin-bottom: 14px;
}

.codes-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.code-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.code-tag {
  background: var(--bg-base);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: var(--radius);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.code-tag:hover {
  border-color: var(--accent);
}

.code-label {
  color: var(--text-muted);
  font-size: 10px;
  font-family: 'Inter', sans-serif;
}

.delete-code {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 14px;
  opacity: 0.4;
  transition: var(--transition);
  line-height: 1;
}

.delete-code:hover {
  opacity: 1;
}

.add-code-inline {
  background: none;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius);
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.add-code-inline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

/* Card Actions */
.card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* Last Status */
.last-status {
  font-size: 11px;
  padding: 10px 14px;
  background: var(--bg-base);
  border-radius: var(--radius);
  color: var(--text-muted);
  border-left: 3px solid var(--border);
}

.last-status.success {
  border-left-color: var(--green);
}

.last-status.failed,
.last-status.error {
  border-left-color: var(--red);
}

/* ==================== SIDEBAR DRAWER ==================== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-drawer {
  position: fixed;
  top: 0;
  right: -380px;
  width: 380px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
}

.sidebar-drawer.active {
  right: 0;
}

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

.sidebar-drawer-header h2 {
  font-size: 15px;
  font-weight: 700;
}

/* Sidebar Tabs */
.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 8px;
  flex-shrink: 0;
}

.sidebar-tab {
  flex: 1;
  padding: 10px 8px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.sidebar-tab:hover {
  color: var(--text-secondary);
  background: var(--bg-hover);
}

.sidebar-tab.active {
  color: var(--accent-light);
  border-bottom-color: var(--accent);
}

/* Sidebar Tab Content */
.sidebar-tab-content {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.sidebar-tab-content.active {
  display: flex;
}

.sidebar-tab-toolbar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-tab-body {
  flex: 1;
  overflow-y: auto;
}

/* ==================== LOG ITEMS ==================== */
.log-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  animation: fadeIn 0.25s ease;
}

.log-item:hover {
  background: var(--bg-hover);
}

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

.log-user {
  font-weight: 600;
  font-size: 12px;
  color: var(--accent-light);
}

.log-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
}

.log-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.log-prayer {
  padding: 2px 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 9px;
  letter-spacing: 0.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.log-status {
  font-size: 11px;
}

.log-status.success {
  color: var(--green);
}

.log-status.failed,
.log-status.error {
  color: var(--red);
}

.log-response {
  font-size: 10px;
  color: var(--text-muted);
  padding: 6px 8px;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-top: 4px;
  word-break: break-word;
}

/* ==================== PRAYER SETTINGS ==================== */
.prayer-settings-list {
  padding: 12px 16px;
}

.prayer-setting-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: var(--transition);
}

.prayer-setting-item:hover {
  border-color: var(--border-hover);
}

.prayer-setting-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prayer-time-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.prayer-time-inputs .separator {
  color: var(--red-light);
  font-weight: 700;
  font-size: 14px;
}

.time-input-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.time-input-group label {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  min-width: 32px;
}

.time-input-group input {
  width: 46px;
  padding: 5px 4px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
}

.time-input-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.time-input-group .time-colon {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
}

.prayer-settings-actions {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

/* ==================== MODALS ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s ease;
}

.modal h2 {
  font-size: 16px;
  font-weight: 700;
  padding: 20px 24px 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px 20px;
}

/* ==================== FORMS ==================== */
.form-group {
  padding: 8px 24px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.form-hint {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

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

.toast {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  color: white;
  animation: slideInRight 0.3s ease;
  box-shadow: var(--shadow-md);
  max-width: 360px;
}

.toast.success {
  background: var(--green);
}

.toast.error {
  background: var(--red);
}

.toast.info {
  background: var(--accent);
}

/* ==================== AUTH ==================== */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  padding: 20px;
  transition: background 0.3s ease;
}

body:not(.auth-hidden) .auth-overlay {
  display: none;
}

.auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  font-size: 48px;
  text-align: center;
  margin-bottom: 12px;
}

.auth-title {
  text-align: center;
  margin-bottom: 28px;
}

.auth-title h2 {
  font-size: 20px;
  font-weight: 800;
  padding: 0;
}

.auth-title p {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 4px;
}

.auth-form .form-group {
  padding: 8px 0;
}

.w-100 {
  width: 100%;
  margin-top: 8px;
}

.auth-switch {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}

.auth-switch a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-note {
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Auth theme toggle */
.auth-theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
}

/* ==================== SKELETON ==================== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-lg);
}

.skeleton-card {
  height: 250px;
}

.skeleton-sidebar {
  height: 200px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* ==================== LOADING SPINNER ==================== */
.loading-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

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

/* ==================== KILL SWITCH ==================== */
.kill-switch {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
}

.kill-switch:hover {
  background: var(--red);
  color: white;
}

.kill-switch.active-all {
  border-color: var(--green);
  color: var(--green);
}

.kill-switch.active-all:hover {
  background: var(--green);
  color: white;
}

/* ==================== PROGRESS ==================== */
.progress-container {
  padding: 20px 24px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
}

.progress-bar-track {
  height: 6px;
  background: var(--bg-base);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-accent-red);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 11px;
  background: var(--bg-card);
  border-left: 3px solid var(--border);
}

.progress-item.success {
  border-left-color: var(--green);
}

.progress-item.failed {
  border-left-color: var(--red);
}

/* ==================== LOGIN STATUS BOX ==================== */
.login-status-box {
  margin: 12px 24px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 12px;
}

.login-status-box.login-ok {
  background: var(--green-glow);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--green);
}

.login-status-box.login-fail {
  background: var(--red-glow);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--red);
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state .emoji {
  font-size: 36px;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 12px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .header {
    padding: 0 16px;
  }

  .header-inner {
    height: auto;
    padding: 12px 0;
  }

  .header-right {
    gap: 6px;
  }

  .container {
    padding: 16px;
  }

  .accounts-grid {
    grid-template-columns: 1fr;
  }

  .prayer-status-grid {
    flex-direction: column;
  }

  .prayer-status-item {
    min-width: unset;
  }

  .schedule-toggles {
    flex-wrap: wrap;
  }

  .schedule-toggle {
    min-width: 60px;
  }

  .sidebar-drawer {
    width: 100%;
    right: -100%;
  }
}