/* ==================== CORE CSS & GLOBAL STYLES ==================== */

:root {
  /* Elegant Color Palette */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #e0e7ff;
  --secondary: #0891b2;
  --secondary-hover: #0e7490;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --success: #10b981;
  --success-hover: #059669;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  
  /* Neutral Palette */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-sidebar: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --border: #e2e8f0;
  --border-focus: #a5b4fc;
  
  /* Styling Tokens */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.08);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  
  /* Font Families */
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset and Basic setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #0f172a;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Utilities */
.hidden { display: none !important; }
.margin-top-md { margin-top: 1rem; }
.margin-top-lg { margin-top: 1.5rem; }
.text-center { text-align: center; }
.text-highlight { color: var(--primary); font-weight: 600; }
.disabled-block { opacity: 0.5; pointer-events: none; }

/* ==================== DATABASE MODE STATUS BAR ==================== */

.db-status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition-normal);
}

.db-status-bar.local-mode {
  background-color: #ecfdf5;
  color: #047857;
  border-bottom: 1px solid #a7f3d0;
}

.db-status-bar.external-mode {
  background-color: #eff6ff;
  color: #1d4ed8;
  border-bottom: 1px solid #bfdbfe;
}

.db-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.5; }
  100% { transform: scale(0.95); opacity: 1; }
}

/* ==================== LOGIN PORTAL ==================== */

.auth-card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 35px);
  padding: 2rem 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  transition: transform var(--transition-normal);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.school-logo {
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 6px rgba(79, 70, 229, 0.15));
}

.auth-header h1 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.025em;
}

.school-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Tabs */
.tab-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #f1f5f9;
  padding: 0.3rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
}

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

/* Forms */
.auth-form {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-form.active {
  display: flex;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  background-color: #ffffff;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.field-help {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: -0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: #f1f5f9;
  border-color: var(--border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

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

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

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
  padding: 0.85rem;
}

.error-message {
  padding: 0.6rem 0.8rem;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.admin-quick-link {
  margin-top: 2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.admin-quick-link:hover {
  background-color: #e2e8f0;
  color: var(--primary);
}

/* ==================== DASHBOARD LAYOUT ==================== */

.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 35px);
}

/* Sidebar styling */
.sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 1.5rem 1rem;
  border-right: 1px solid #1e293b;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1e293b;
}

.sidebar-title h2 {
  font-size: 1.15rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.role-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  background-color: var(--primary);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.sidebar-nav {
  flex-grow: 1;
}

.sidebar-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.sidebar-nav a:hover, 
.sidebar-nav li.active a {
  color: #ffffff;
  background-color: rgba(255,255,255,0.06);
}

.sidebar-nav li.active a {
  background-color: var(--primary);
  color: #ffffff;
}

.sidebar-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.user-profile-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-profile-summary .avatar {
  width: 38px;
  height: 38px;
  background-color: #3b82f6;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.user-profile-summary .user-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-profile-summary .user-name {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-profile-summary .user-subtext {
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-logout {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: #cbd5e1;
  width: 100%;
  justify-content: center;
  font-size: 0.9rem;
}

.btn-logout:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}

/* Main content workspace */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.top-bar {
  background-color: var(--bg-card);
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.top-bar h1 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.meeting-live-pulse {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #fee2e2;
  color: var(--danger);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.meeting-live-pulse .pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--danger);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.workspace-area {
  padding: 2rem;
  flex-grow: 1;
  overflow-y: auto;
  max-height: calc(100vh - 100px);
}

/* ==================== WORKSPACE ELEMENTS ==================== */

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Base Card styles */
.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.card-title {
  font-size: 1.1rem;
  color: #0f172a;
}

.card-body {
  flex-grow: 1;
}

/* Table Style */
.table-container {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 2rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background-color: #f8fafc;
  padding: 0.9rem 1.25rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.05em;
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-main);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background-color: #f8fafc;
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-success { background-color: #d1fae5; color: #065f46; }
.badge-warning { background-color: #fef3c7; color: #92400e; }
.badge-danger { background-color: #fee2e2; color: #991b1b; }
.badge-info { background-color: #e0f2fe; color: #0369a1; }
.badge-neutral { background-color: #f1f5f9; color: #475569; }

/* Announcement cards list */
.announcements-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.announcement-card {
  background-color: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.announcement-card.class-specific {
  border-left-color: var(--secondary);
}

.announcement-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.announcement-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.75rem;
}

.announcement-content {
  font-size: 0.95rem;
  color: #334155;
  white-space: pre-wrap;
}

/* Customizable Info blocks */
.info-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background-color: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

/* ==================== DIALOGS & OVERLAYS ==================== */

.custom-dialog {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 500px;
  width: 90%;
  margin: auto;
  padding: 2rem;
  outline: none;
  background-color: var(--bg-card);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

/* Fade and Backdrop */
.custom-dialog::backdrop {
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.dialog-header h2 {
  font-size: 1.35rem;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.btn-close:hover {
  color: var(--danger);
}

.dialog-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* Dialog Tabs */
.dialog-tab-bar {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.dialog-tab-btn {
  padding: 0.5rem 0.25rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.dialog-tab-btn.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.dialog-subtab {
  display: none;
}

.dialog-subtab.active {
  display: block;
}

/* Form Toggles */
.form-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.25rem 0;
}

.form-toggle input[type="checkbox"], 
.form-toggle input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Permissions grid card */
.permissions-card {
  padding: 1.25rem;
  background-color: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: 1rem;
  transition: all var(--transition-fast);
}

.permissions-card.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.permissions-sub-toggles {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Radio groups */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.5rem 0;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Fee details modal receipt */
.fee-receipt-card {
  padding: 1.25rem;
  background-color: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.fee-receipt-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.fee-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.fee-receipt-card hr {
  margin: 1rem 0;
  border: none;
  border-top: 1px dashed var(--border);
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.fee-price {
  font-size: 1.25rem;
  color: var(--text-main);
  font-family: var(--font-display);
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.payment-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-btn:hover {
  border-color: var(--primary);
  background-color: #fcfcff;
}

.payment-btn.active {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary);
}

.payment-details-card {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: #fffbeb;
  border-color: #fde68a;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.db-conn-status {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Mobile Sidebar & Hamburger Elements */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.hamburger-btn:hover {
  background-color: #f1f5f9;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 999;
  transition: opacity var(--transition-normal);
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {
  /* Toggle Sidebar display via body class */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0,0,0,0.15);
  }
  
  .sidebar-open .sidebar {
    transform: translateX(0);
  }
  
  .sidebar-open .sidebar-overlay {
    display: block;
  }

  .hamburger-btn {
    display: flex;
  }

  .dashboard-layout {
    flex-direction: row;
    position: relative;
    min-height: 100vh;
  }

  .main-content {
    width: 100%;
    min-width: 0;
  }
  
  .workspace-area {
    padding: 1.25rem 1rem;
    max-height: calc(100vh - 70px);
  }
  
  .top-bar {
    padding: 0.75rem 1rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    height: 70px;
  }

  .top-bar h1 {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: auto;
    margin-left: 0.25rem;
  }
  
  .top-bar-actions {
    gap: 0.5rem;
  }

  .meeting-live-pulse {
    padding: 0.3rem 0.6rem;
    font-size: 0.72rem;
  }

  .meeting-live-pulse span:last-child {
    display: none; /* Hide text, keep pulse dot */
  }

  .meeting-live-pulse::after {
    content: "Live";
  }

  /* Compact button styling on mobile */
  #admin-panel-toggle-btn,
  #admin-panel-toggle-btn a {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }

  #admin-panel-toggle-btn::after {
    content: "Admin";
  }
  
  #admin-panel-toggle-btn span,
  #admin-panel-toggle-btn {
    /* Compress text a bit */
    font-size: 0.75rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card {
    padding: 1.25rem;
  }

  .text-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .payment-methods-grid {
    grid-template-columns: 1fr;
  }

  .dialog-footer {
    flex-direction: column;
    gap: 0.5rem;
  }

  .dialog-footer .btn {
    width: 100%;
  }

  /* Support and detail cards */
  .fee-receipt-card,
  .payment-details-card {
    padding: 1rem;
  }
  
  .table-container {
    margin-bottom: 1rem;
  }

  .data-table th, 
  .data-table td {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  /* Extra mobile styles */
  .auth-card {
    padding: 1.5rem;
  }
  
  .auth-header h1 {
    font-size: 1.35rem;
  }
  
  .top-bar-actions .btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.72rem;
  }
}
