/* 
   S73 - Apple Style (Cupertino Minimal)
   Theme: Clean, Glassmorphism, and Spacious
   Ref: apple.com/th
*/

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&display=swap');

:root {
    /* Palette */
    --primary-color: #0071e3;
    /* Apple Blue */
    --primary-dark: #005bb5;
    --accent-color: #0071e3;
    --bg-color: #F0F0F5;
    /* Slightly darker Cool Gray for contrast */
    --surface-color: rgba(255, 255, 255, 0.9);
    /* More opaque surface */
    --surface-solid: #FFFFFF;
    --text-primary: #1d1d1f;
    /* Rich Black */
    --text-secondary: #86868b;
    /* Cool Gray */
    --text-light: #FFFFFF;

    /* Vibrant Palette */
    --color-blue: #007AFF;
    --color-purple: #5856D6;
    --color-pink: #FF2D55;
    --color-orange: #FF9500;
    --color-teal: #5AC8FA;
    --color-green: #34C759;
    --color-yellow: #FFCC00;

    /* Status Colors */
    --success-color: #34c759;
    /* Apple Green */
    --warning-color: #ff9f0a;
    /* Apple Orange */
    --danger-color: #ff3b30;
    /* Apple Red */
    --info-color: #5ac8fa;
    /* Apple Light Blue */

    /* Shadows - Increased opacity for better pop */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.16);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 18px;
    /* Apple-like curvature */
    --radius-lg: 24px;
    --radius-pill: 980px;
}

/* --- Global Reset & Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Sukhumvit Set', 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 17px;
    /* Apple uses slightly larger text */
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

/* --- Layout Structure --- */
.admin-container {
    min-height: 100vh;
    display: flex;
}

.container {
    width: 100%;
    max-width: 1024px;
    /* Apple constrained width */
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Public Header & Nav (iPhone Style - Dark) --- */
header {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: rgba(29, 29, 31, 0.85);
    /* Dark Apple Nav */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
    /* Compact Apple Nav */
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #f5f5f7;
    /* White Text */
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
}

.logo img {
    height: 36px !important;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 12px;
    color: #f5f5f7;
    /* White Text */
    opacity: 0.8;
    font-weight: 400;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    opacity: 1;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #f5f5f7;
}

/* --- Public Footer --- */
footer {
    background-color: #f5f5f7;
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 60px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

/* --- Sidebar (Admin) --- */
.sidebar {
    width: 260px;
    background: #1d1d1f;
    /* Dark sidebar for contrast */
    color: #f5f5f7;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.sidebar-menu {
    padding: 10px 0;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #a1a1a6;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.sidebar-menu a.active {
    color: #fff;
    background: rgba(0, 113, 227, 0.2);
    /* Blue tint */
    border-left-color: var(--primary-color);
}

.sidebar-menu i {
    width: 24px;
    margin-right: 10px;
    text-align: center;
}

/* --- Main Content --- */
.main-content {
    flex-grow: 1;
    margin-left: 260px;
    padding: 40px;
    width: calc(100% - 260px);
    background: var(--bg-color);
}

.top-bar {
    display: none;
    /* Hide top bar in desktop admin */
}

/* --- Cards --- */
.card {
    background: var(--surface-solid);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-md);
}

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

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* --- Metrics --- */
.metric-card {
    text-align: center;
    padding: 30px;
}

/* --- Stat Cards --- */
.stat-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* --- Tables --- */
/* --- Tables --- */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    background: var(--surface-solid);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
}

.data-table th {
    text-align: left;
    padding: 18px 20px;
    background: #fafafa;
    border-bottom: 1px solid #e5e5e5;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f5f5f5;
    color: var(--text-primary);
    vertical-align: top;
}

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

.data-table tbody tr:hover {
    background-color: rgba(0, 113, 227, 0.02);
}

/* --- Buttons & Forms --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background: #e5e5e5;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #d5d5d5;
}

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

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

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

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

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    /* Slightly rounded inputs */
    font-family: inherit;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
    background-color: #fff;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* --- Hero Section (Premium Apple Style) --- */
.hero {
    text-align: center;
    padding: 160px 20px 120px;
    background: radial-gradient(circle at 50% 0%, #f2f2f7 0%, #ffffff 70%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.05) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: #1d1d1f;
    line-height: 1.05;
    background: linear-gradient(135deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.8rem;
    color: #86868b;
    margin-bottom: 60px;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.hero .btn {
    padding: 18px 40px;
    font-size: 1.2rem;
    border-radius: 980px;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.3);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* --- Medal Summary --- */
.medal-summary-container {
    max-width: 100%;
}

.medal-header-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.medal-list-header {
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.medal-list-header>div:first-child {
    flex: 2;
}

.medal-list-header>div:not(:first-child) {
    min-width: 80px;
    text-align: center;
}

.medal-item {
    background: var(--surface-solid);
    border-radius: var(--radius-md);
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease;
    border: none;
}

.medal-item:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-md);
}

.medal-category-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 2;
}

.medal-icon-circle {
    width: 48px;
    height: 48px;
    background: #f5f5f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.medal-text h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.medal-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.medal-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    font-size: 1rem;
    min-width: 80px;
    color: var(--text-primary);
}

.medal-footer {
    display: flex;
    justify-content: space-between;
    padding: 25px 30px;
    background: #f5f5f7;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 20px;
}

.medal-footer>div:first-child {
    flex: 2;
    font-size: 1.1rem;
}

.medal-footer>div:not(:first-child) {
    min-width: 80px;
    text-align: center;
}

/* --- Competition Criteria Grid (5 Columns) --- */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    /* Reduces gap slightly to fit 5 columns */
    padding: 40px 0;
}

/* Responsive grid handled by flexbox wrap */

@media (max-width: 1200px) {
    .criteria-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .criteria-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .criteria-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .criteria-grid {
        grid-template-columns: 1fr;
    }
}

.criteria-card {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.criteria-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.criteria-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    /* Rounded square icons */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.criteria-card span {
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.2;
}

/* --- Vibrant Color Cycling --- */
/* Blue */
.criteria-card:nth-child(7n+1) .icon-wrapper,
.medal-item:nth-child(7n+1) .medal-icon-circle {
    color: var(--color-blue);
    background: rgba(0, 122, 255, 0.1);
}

.criteria-card:nth-child(7n+1):hover {
    background: linear-gradient(135deg, #fff 0%, #e6f2ff 100%);
}

.medal-item:nth-child(7n+1):hover {
    border-left: 4px solid var(--color-blue);
    background: linear-gradient(to right, #fff, #f0f8ff);
}

/* Purple */
.criteria-card:nth-child(7n+2) .icon-wrapper,
.medal-item:nth-child(7n+2) .medal-icon-circle {
    color: var(--color-purple);
    background: rgba(88, 86, 214, 0.1);
}

.criteria-card:nth-child(7n+2):hover {
    background: linear-gradient(135deg, #fff 0%, #f0efff 100%);
}

.medal-item:nth-child(7n+2):hover {
    border-left: 4px solid var(--color-purple);
    background: linear-gradient(to right, #fff, #f5f5ff);
}

/* Pink */
.criteria-card:nth-child(7n+3) .icon-wrapper,
.medal-item:nth-child(7n+3) .medal-icon-circle {
    color: var(--color-pink);
    background: rgba(255, 45, 85, 0.1);
}

.criteria-card:nth-child(7n+3):hover {
    background: linear-gradient(135deg, #fff 0%, #ffe6eb 100%);
}

.medal-item:nth-child(7n+3):hover {
    border-left: 4px solid var(--color-pink);
    background: linear-gradient(to right, #fff, #fff0f5);
}

/* Orange */
.criteria-card:nth-child(7n+4) .icon-wrapper,
.medal-item:nth-child(7n+4) .medal-icon-circle {
    color: var(--color-orange);
    background: rgba(255, 149, 0, 0.1);
}

.criteria-card:nth-child(7n+4):hover {
    background: linear-gradient(135deg, #fff 0%, #fff5e6 100%);
}

.medal-item:nth-child(7n+4):hover {
    border-left: 4px solid var(--color-orange);
    background: linear-gradient(to right, #fff, #fff8e0);
}

/* Teal */
.criteria-card:nth-child(7n+5) .icon-wrapper,
.medal-item:nth-child(7n+5) .medal-icon-circle {
    color: var(--color-teal);
    background: rgba(90, 200, 250, 0.1);
}

.criteria-card:nth-child(7n+5):hover {
    background: linear-gradient(135deg, #fff 0%, #e6f8ff 100%);
}

.medal-item:nth-child(7n+5):hover {
    border-left: 4px solid var(--color-teal);
    background: linear-gradient(to right, #fff, #e0f7fa);
}

/* Green */
.criteria-card:nth-child(7n+6) .icon-wrapper,
.medal-item:nth-child(7n+6) .medal-icon-circle {
    color: var(--color-green);
    background: rgba(52, 199, 89, 0.1);
}

.criteria-card:nth-child(7n+6):hover {
    background: linear-gradient(135deg, #fff 0%, #e6ffeb 100%);
}

.medal-item:nth-child(7n+6):hover {
    border-left: 4px solid var(--color-green);
    background: linear-gradient(to right, #fff, #e8f5e9);
}

/* Yellow */
.criteria-card:nth-child(7n+7) .icon-wrapper,
.medal-item:nth-child(7n+7) .medal-icon-circle {
    color: var(--color-yellow);
    background: rgba(255, 204, 0, 0.1);
}

.criteria-card:nth-child(7n+7):hover {
    background: linear-gradient(135deg, #fff 0%, #fffbe6 100%);
}

.medal-item:nth-child(7n+7):hover {
    border-left: 4px solid var(--color-yellow);
    background: linear-gradient(to right, #fff, #fffde7);
}

/* --- Tab Content Visibility --- */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* --- Responsive --- */
@media (max-width: 992px) {
    .sidebar {
        left: -260px;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }

    .top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .mobile-menu-toggle {
        display: block;
        border: none;
        background: none;
        font-size: 1.5rem;
    }

    .close-sidebar-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        color: white;
        cursor: pointer;
    }



    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 900;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(29, 29, 31, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        color: #f5f5f7;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

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

    .menu-toggle {
        display: block;
        z-index: 1002;
        position: relative;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* --- Charts Section --- */
.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Force 2 equal columns */
    gap: 40px;
    align-items: start;
}

.chart-card {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chart-card h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Responsive for charts */
@media (max-width: 992px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Modern Form Styles --- */
.form-card {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: none !important;
    /* Override inline borders */
    position: relative;
}

.form-control {
    background: #F5F5F7;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    width: 100%;
}

.form-control:focus {
    background: #FFFFFF;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
    outline: none;
}

.form-control:disabled,
.form-control[readonly] {
    background: #E5E5EA;
    color: var(--text-secondary);
    cursor: not-allowed;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    position: relative;
    margin-bottom: 30px;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-purple));
    margin-top: 10px;
}

/* Specific overrides for dynamic content */
.teacher-entry,
.student-entry {
    background: #FFFFFF !important;
    border: none !important;
    border-radius: 28px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    padding: 30px !important;
    margin-bottom: 20px !important;
}

.teacher-entry h3,
.student-entry h3 {
    color: var(--color-blue) !important;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-container {
    margin-top: 40px;
}