/* --- 1. CORE VARIABLES & FOUNDATION --- */
:root {
    --primary: #2D5CFE;
    --primary-hover: #1e45cc;
    --success: #00D084;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg-body: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}
header {
    background: white;
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
}

* { box-sizing: border-box; }
/* --- BRANDING & LOGO --- */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--success));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* White arrow/spark inside logo */
.logo-icon::after {
    content: '';
    width: 10px;
    height: 10px;
    background: white;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
}

.logo-text .part-1 { color: var(--text-main); }
.logo-text .part-2 { color: var(--primary); }


body {
  background-color: transparent; /* Changed from #0b0f19 */
  color: #f1f5f9;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto; /* Changed from 100vh */
  padding: 10px;
  margin: 0;
}

.main-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}
/* This ensures your content is never wider than your header */
.main-wrapper, 
#loginBox, 
#registerBox, 
#studentDashboard, 
#teacherDashboard {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Add a smooth entry animation for sections */
section {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 2. LAYOUT COMPONENTS (BOXES & CARDS) --- */
.box, .card, .user-bar, #resetSection {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid #edf2f7;
    margin-bottom: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

/* --- 3. FORMS & INPUTS --- */
input, select {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin: 10px 0;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
}

input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 92, 254, 0.1);
}

/* --- 4. BUTTON SYSTEM --- */
button {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-size: 14px;
}

button:hover { opacity: 0.9; transform: translateY(-1px); }

/* Global helper classes for buttons */
.btn-primary { background: var(--primary); color: white; width: 100%; }
.btn-danger { background: var(--danger); color: white; }
.btn-approve { background: #2ecc71; color: white; }
.btn-reject { background: #e74c3c; color: white; }

/* Keep specific buttons small */
.btn-group button, 
.small-btn, 
.tab-btn, 
#paymentModal button {
    width: auto !important;
}

/* --- 5. TABLES & DATA --- */
.table-container, .table-wrapper {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f8fafc;
    color: var(--text-muted);
    padding: 15px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

/* --- 6. TEACHER SPECIFIC UI --- */
.teacher-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.modern-slot-card {
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
}

.is-available { border-top: 4px solid var(--success); }
.is-booked { border-top: 4px solid var(--warning); background: #fffcf0; }

/* Slot chips for status display */
.slot-chip {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 12px;
    border-radius: 8px;
    border-left: 5px solid var(--primary);
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}

/* The 'X' delete button fix */
button.slot-delete-btn {
    all: unset;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 28px !important;
    height: 28px !important;
    background: #fee2e2 !important;
    color: var(--danger) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
}

/* --- 7. STATUS BADGES --- */
.status-badge, .badge, .status-indicator {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-approved { background: #dcfce7; color: #166534; }
.status-pending { background: #fef9c3; color: #854d0e; }
.status-rejected { background: #fee2e2; color: #991b1b; }

/* --- 8. ADMIN & NAVIGATION --- */
#god-mode-nav, #universalAdminExit {
    position: fixed !important;
    top: 0; left: 0; width: 100%;
    height: 60px;
    background: #1a252f;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 3px solid #f1c40f;
}

.admin-tabs {
    display: flex; gap: 10px; margin: 20px 0;
}

.tab-btn.active, .active-tab {
    background: var(--primary) !important;
    color: white !important;
}

/* --- 9. UTILITIES --- */
.hidden { display: none !important; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-content, .teacher-tab { animation: fadeIn 0.3s ease; }

@media print {
    body * { visibility: hidden; }
    #monthlyReportDisplay, #monthlyReportDisplay * { visibility: visible; }
    #monthlyReportDisplay { position: absolute; left: 0; top: 0; width: 100%; }
    .no-print { display: none !important; }
}
/* Layout to keep nav in the middle */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Ensure the container is vertically centered with the logo */
.main-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Base styles for the "Solve Now" link to match the logo */
.highlight-btn {
    /* Exact match to .logo-text */
    font-size: 1.4rem; 
    font-weight: 800;
    color: var(--primary); /* This matches the blue 'Academy' part */
    
    /* Remove default link styling */
    text-decoration: none;
    
    /* Perfect Centering */
    display: inline-flex;
    align-items: center;
    line-height: 1; /* Match logo line-height to prevent jumping */
}

/* Optional: Add a hover state so it feels like an interactive element */
.highlight-btn:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Mobile check: Hide nav on very small screens if it overlaps */
@media (max-width: 768px) {
    .main-nav {
        display: none; /* You can move these into your toggleSidebar() menu later */
    }
}
/* StrideAcademy Dashboard Theme */
:root {
    --stride-teal: #006d6d;
    --stride-orange: #ff7a45;
    --stride-bg: #f4f7f7;
    --text-dark: #333;
    --text-light: #666;
}

.dashboard-section {
    padding: 20px;
    background-color: var(--stride-bg);
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.dashboard-header {
    background-color: var(--stride-teal);
    color: white;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info h2 { margin: 0; font-size: 24px; }
.user-meta { margin: 5px 0 0; opacity: 0.9; font-size: 14px; }

.balance-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    text-align: right;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wallet-balance { font-size: 28px; margin: 5px 0; color: white; }

.recharge-btn {
    background-color: var(--stride-orange);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.recharge-btn:hover { transform: scale(1.05); }

/* History & Table Styles */
.history-section { padding: 30px; }

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.download-btn {
    background: transparent;
    border: 1px solid var(--stride-teal);
    color: var(--stride-teal);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
}

.transaction-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #eee;
    color: var(--text-light);
    font-size: 14px;
}

.transaction-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-dark);
}

.empty-state {
    text-align: center;
    padding: 40px !important;
    color: var(--text-light);
    font-style: italic;
}