/* ==========================================================================
   PLI - Internship Management System
   Corporate Identity Styles (based on REC Design System)
   Primary: #003855 (Dunkelblau)
   Secondary: #00d0c7 (Tuerkis)
   Tertiary: #fd4c54 (Korallrot)
   ========================================================================== */

/* ==========================================================================
   Typo3 Corporate Fonts - Untitled Sans & Tiempos Fine
   ========================================================================== */

@font-face {
    font-family: 'Untitled';
    src: url('/fonts/UntitledSans-Regular.woff2') format('woff2'),
         url('/fonts/UntitledSans-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Untitled';
    src: url('/fonts/UntitledSans-RegularItalic.woff2') format('woff2'),
         url('/fonts/UntitledSans-RegularItalic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Untitled';
    src: url('/fonts/UntitledSans-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Untitled';
    src: url('/fonts/UntitledSans-MediumItalic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Untitled';
    src: url('/fonts/UntitledSans-Bold.woff2') format('woff2'),
         url('/fonts/UntitledSans-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Untitled';
    src: url('/fonts/UntitledSans-BoldItalic.woff2') format('woff2'),
         url('/fonts/UntitledSans-BoldItalic.woff') format('woff');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Tiempos';
    src: url('/fonts/TiemposFineMedium.woff2') format('woff2'),
         url('/fonts/TiemposFineMedium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tiempos';
    src: url('/fonts/TiemposFineMediumItalic.woff2') format('woff2'),
         url('/fonts/TiemposFineMediumItalic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

/* ==========================================================================
   Google Fonts - Poppins (Bold 700)
   ========================================================================== */

@font-face {
    font-display: swap;
    font-family: Poppins;
    font-style: normal;
    font-weight: 700;
    src: url(/fonts/poppins-1.woff2) format("woff2");
    unicode-range: u+0900-097f,u+1cd0-1cf9,u+200c-200d,u+20a8,u+20b9,u+25cc,u+a830-a839,u+a8e0-a8ff
}

@font-face {
    font-display: swap;
    font-family: Poppins;
    font-style: normal;
    font-weight: 700;
    src: url(/fonts/poppins-2.woff2) format("woff2");
    unicode-range: u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff
}

@font-face {
    font-display: swap;
    font-family: Poppins;
    font-style: normal;
    font-weight: 700;
    src: url(/fonts/poppins-3.woff2) format("woff2");
    unicode-range: u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd
}

/* ==========================================================================
   Google Fonts - Source Code Pro (Regular 400)
   ========================================================================== */

@font-face {
    font-display: swap;
    font-family: Source Code Pro;
    font-style: normal;
    font-weight: 400;
    src: url(/fonts/source-code-pro-1.woff2) format("woff");
    unicode-range: u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f
}

@font-face {
    font-display: swap;
    font-family: Source Code Pro;
    font-style: normal;
    font-weight: 400;
    src: url(/fonts/source-code-pro-2.woff2) format("woff");
    unicode-range: u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116
}

@font-face {
    font-display: swap;
    font-family: Source Code Pro;
    font-style: normal;
    font-weight: 400;
    src: url(/fonts/source-code-pro-3.woff2) format("woff");
    unicode-range: u+1f??
}

@font-face {
    font-display: swap;
    font-family: Source Code Pro;
    font-style: normal;
    font-weight: 400;
    src: url(/fonts/source-code-pro-4.woff2) format("woff");
    unicode-range: u+0370-03ff
}

@font-face {
    font-display: swap;
    font-family: Source Code Pro;
    font-style: normal;
    font-weight: 400;
    src: url(/fonts/source-code-pro-5.woff2) format("woff");
    unicode-range: u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab
}

@font-face {
    font-display: swap;
    font-family: Source Code Pro;
    font-style: normal;
    font-weight: 400;
    src: url(/fonts/source-code-pro-6.woff2) format("woff");
    unicode-range: u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff
}

@font-face {
    font-display: swap;
    font-family: Source Code Pro;
    font-style: normal;
    font-weight: 400;
    src: url(/fonts/source-code-pro-7.woff2) format("woff");
    unicode-range: u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd
}

/* ==========================================================================
   Google Fonts - Playfair Display (Black 900)
   ========================================================================== */

@font-face {
    font-display: swap;
    font-family: Playfair Display;
    font-style: normal;
    font-weight: 900;
    src: url(/fonts/playfair-display-1.woff2) format("woff");
    unicode-range: u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116
}

@font-face {
    font-display: swap;
    font-family: Playfair Display;
    font-style: normal;
    font-weight: 900;
    src: url(/fonts/playfair-display-2.woff2) format("woff");
    unicode-range: u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab
}

@font-face {
    font-display: swap;
    font-family: Playfair Display;
    font-style: normal;
    font-weight: 900;
    src: url(/fonts/playfair-display-3.woff2) format("woff");
    unicode-range: u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff
}

@font-face {
    font-display: swap;
    font-family: Playfair Display;
    font-style: normal;
    font-weight: 900;
    src: url(/fonts/playfair-display-4.woff2) format("woff");
    unicode-range: u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd
}

/* ==========================================================================
   Font Awesome 6 Pro
   ========================================================================== */

@font-face {
    font-display: swap;
    font-family: Font Awesome\ 6 Pro;
    font-style: normal;
    font-weight: 400;
    src: url(/fonts/fa-regular-400.244128d7.woff2) format("woff2"),url(/fonts/fa-regular-400.cde87501.ttf) format("truetype")
}

@font-face {
    font-display: swap;
    font-family: Font Awesome\ 6 Pro;
    font-style: normal;
    font-weight: 900;
    src: url(/fonts/fa-solid-900.9f1626ec.woff2) format("woff2"),url(/fonts/fa-solid-900.42ce62dd.ttf) format("truetype")
}

@font-face {
    font-display: swap;
    font-family: Font Awesome\ 6 Pro;
    font-style: normal;
    font-weight: 100;
    src: url(/fonts/fa-thin-100.cc75bac9.woff2) format("woff2"),url(/fonts/fa-thin-100.54ac01ae.ttf) format("truetype")
}

/* FontAwesome Icon Classes */
.fa,
.fas,
.far,
.fal,
.fat,
.fab {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.fa,
.fas {
    font-family: 'Font Awesome 6 Pro';
    font-weight: 900;
}

.far {
    font-family: 'Font Awesome 6 Pro';
    font-weight: 400;
}

.fal,
.fat {
    font-family: 'Font Awesome 6 Pro';
    font-weight: 100;
}

/* Common FontAwesome Icons */
.fa-eye:before { content: "\f06e"; }
.fa-envelope:before { content: "\f0e0"; }
.fa-ellipsis-v:before { content: "\f142"; }
.fa-search:before { content: "\f002"; }
.fa-calendar-check:before { content: "\f274"; }
.fa-check-circle:before { content: "\f058"; }
.fa-times-circle:before { content: "\f057"; }
.fa-ban:before { content: "\f05e"; }
.fa-user-times:before { content: "\f235"; }
.fa-user-check:before { content: "\f4fc"; }
.fa-video:before { content: "\f03d"; }
.fa-building:before { content: "\f1ad"; }
.fa-file-alt:before { content: "\f15c"; }
.fa-file-pdf:before { content: "\f1c1"; }
.fa-download:before { content: "\f019"; }
.fa-trash:before { content: "\f1f8"; }
.fa-edit:before { content: "\f044"; }
.fa-plus:before { content: "\f067"; }
.fa-minus:before { content: "\f068"; }
.fa-save:before { content: "\f0c7"; }
.fa-times:before { content: "\f00d"; }
.fa-check:before { content: "\f00c"; }
.fa-user:before { content: "\f007"; }
.fa-users:before { content: "\f0c0"; }
.fa-cog:before { content: "\f013"; }
.fa-sign-out-alt:before { content: "\f2f5"; }
.fa-briefcase:before { content: "\f0b1"; }
.fa-home:before { content: "\f015"; }
.fa-info-circle:before { content: "\f05a"; }
.fa-exclamation-triangle:before { content: "\f071"; }
.fa-question-circle:before { content: "\f059"; }
.fa-arrow-left:before { content: "\f060"; }
.fa-arrow-right:before { content: "\f061"; }
.fa-external-link-alt:before { content: "\f35d"; }
.fa-paper-plane:before { content: "\f1d8"; }
.fa-inbox:before { content: "\f01c"; }
.fa-clock:before { content: "\f017"; }
.fa-calendar:before { content: "\f073"; }
.fa-user-edit:before { content: "\f4ff"; }
.fa-sync:before { content: "\f021"; }
.fa-refresh:before { content: "\f021"; }
.fa-spinner:before { content: "\f110"; }
.fa-circle:before { content: "\f111"; }
.fa-thumbs-up:before { content: "\f164"; }
.fa-thumbs-down:before { content: "\f165"; }
.fa-folder-open:before { content: "\f07c"; }
.fa-pencil-alt:before { content: "\f303"; }
.fa-phone:before { content: "\f095"; }
.fa-key:before { content: "\f084"; }
.fa-database:before { content: "\f1c0"; }
.fa-chart-bar:before { content: "\f080"; }
.fa-list:before { content: "\f03a"; }
.fa-copy:before { content: "\f0c5"; }
.fa-lock:before { content: "\f023"; }
.fa-unlock:before { content: "\f09c"; }
.fa-link:before { content: "\f0c1"; }
.fa-tag:before { content: "\f02b"; }
.fa-tags:before { content: "\f02c"; }
.fa-file:before { content: "\f15b"; }
.fa-file-word:before { content: "\f1c2"; }
.fa-file-image:before { content: "\f1c5"; }
.fa-graduation-cap:before { content: "\f19d"; }
.fa-certificate:before { content: "\f0a3"; }
.fa-star:before { content: "\f005"; }
.fa-book:before { content: "\f02d"; }
.fa-globe:before { content: "\f0ac"; }
.fa-chevron-down:before { content: "\f078"; }
.fa-chevron-up:before { content: "\f077"; }
.fa-chevron-left:before { content: "\f053"; }
.fa-chevron-right:before { content: "\f054"; }
.fa-bars:before { content: "\f0c9"; }
.fa-filter:before { content: "\f0b0"; }
.fa-sort:before { content: "\f0dc"; }
.fa-bell:before { content: "\f0f3"; }
.fa-clipboard:before { content: "\f328"; }
.fa-clipboard-check:before { content: "\f46c"; }
.fa-file-signature:before { content: "\f573"; }
.fa-university:before { content: "\f19c"; }
.fa-map-marker-alt:before { content: "\f3c5"; }

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    --primary: #003855;
    --primary-dark: #002a40;
    --secondary: #00d0c7;
    --secondary-dark: #00a69f;
    --tertiary: #fd4c54;
    --body-color: #003855;
    --light-bg: #f7f7f7;
    --white: #ffffff;
    --gray: #6c757d;
    --border: #e2e8f0;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #fd4c54;
    --info: #17a2b8;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Source Code Pro', monospace;
    --font-corporate: 'Untitled', sans-serif;
    --font-serif: 'Tiempos', serif;
    --font-decorative: 'Playfair Display', serif;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* ==========================================================================
   Base Reset & Typography
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Source Code Pro", monospace;
}

body {
    font-family: var(--font-body);
    color: var(--body-color);
    background: var(--light-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* Headings - Tiempos serif, Türkis (like REC public pages) */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--secondary);
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* h4 - Playfair Display decorative */
h4 {
    font-family: var(--font-decorative);
    font-weight: 900;
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

h5, h6 {
    font-family: var(--font-corporate);
    font-weight: 500;
    color: var(--secondary);
}

/* Links */
a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ==========================================================================
   Layout Classes
   ========================================================================== */

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==========================================================================
   Header (.site-header) - Full width, REC style
   ========================================================================== */

.site-header {
    background: var(--primary);
    color: var(--white);
    padding: 12px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,56,84,0.2);
}

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

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

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
}

.header-logo:hover {
    text-decoration: none;
    color: var(--white);
}

.header-logo img {
    height: 48px;
    width: auto;
}

.header-logo-text {
    margin-left: 12px;
    padding-left: 12px;
    border-left: 2px solid var(--secondary);
}

.header-logo-text .app-name {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
}

.header-logo-text .app-subtitle {
    font-size: 10px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.header-nav a {
    color: var(--white);
    text-decoration: none;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.header-nav a:hover {
    background: rgba(255,255,255,0.1);
    text-decoration: none;
    color: var(--white);
}

.header-nav a.active {
    background: var(--secondary);
    color: var(--white);
}

.header-nav a i {
    margin-right: 4px;
}

.header-logout-btn {
    color: var(--white);
    text-decoration: none;
    padding: 8px 12px;
    font-size: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.header-logout-btn:hover {
    background: rgba(255,255,255,0.2);
    text-decoration: none;
    color: var(--white);
}

/* ==========================================================================
   Footer (.site-footer)
   ========================================================================== */

.site-footer {
    text-align: center;
    padding: 20px;
    color: #9ca3af;
    font-size: 12px;
    border-top: 1px solid #e5e7eb;
    margin-top: 40px;
    background: var(--white);
}

.site-footer a {
    color: #6b7280;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Partner Footer Bar - exact REC style */
.partner-footer-bar {
    background: rgba(0,56,85,1);
    padding: 20px 40px;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
}

.partner-footer-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.partner-footer-bar .partner-section {
    display: flex;
    align-items: center;
    gap: 24px;
}

.partner-footer-bar .partner-label {
    font-family: 'Untitled', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin: 0;
    white-space: nowrap;
}

.partner-footer-bar .partner-logos {
    display: flex;
    align-items: center;
    gap: 32px;
}

.partner-footer-bar .partner-logo {
    display: block;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.partner-footer-bar .partner-logo:hover {
    opacity: 1;
}

.partner-footer-bar .partner-logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .partner-footer-bar {
        padding: 16px 20px;
    }
    .partner-footer-bar-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    .partner-footer-bar .partner-section {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .partner-footer-bar .partner-logos {
        gap: 16px;
    }
    .partner-footer-bar .partner-logo img {
        height: 24px;
    }
}

/* ==========================================================================
   Cards / Tiles (.card)
   ========================================================================== */

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
}

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

.card-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.card-title {
    font-family: var(--font-serif);
    color: var(--secondary);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
}

/* ==========================================================================
   Tables (.data-table)
   ========================================================================== */

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table th {
    background: var(--primary);
    color: var(--white);
    padding: 12px 16px;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.data-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.data-table tbody tr:hover {
    background: #e8f4f8;
    cursor: pointer;
    transition: var(--transition);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   Buttons (.btn)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover {
    text-decoration: none;
}

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

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

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

.btn-secondary:hover {
    background: var(--secondary-dark);
    color: var(--white);
}

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

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

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

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

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

/* ==========================================================================
   Forms
   ========================================================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--body-color);
}

.form-control:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,208,199,0.15);
}

.form-control::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

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

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

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

.form-check label {
    cursor: pointer;
    font-weight: 400;
    margin-bottom: 0;
}

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

.form-error {
    color: var(--tertiary);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.required-mark {
    color: var(--tertiary);
}

/* ==========================================================================
   Alerts / Notifications (.alert)
   ========================================================================== */

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success);
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--info);
}

.alert .close-alert {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.5;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: inherit;
    transition: var(--transition);
}

.alert .close-alert:hover {
    opacity: 1;
}

/* ==========================================================================
   Status Badges (.badge)
   ========================================================================== */

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.badge-in-approval {
    background: #fff3cd;
    color: #856404;
}

.badge-approved {
    background: #d4edda;
    color: #155724;
}

.badge-report-submitted {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-in-assessment {
    background: #e2d5f1;
    color: #5a3d8a;
}

.badge-assessment-submitted {
    background: #d4edda;
    color: #155724;
}

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

.badge-rejected {
    background: #f8d7da;
    color: #721c24;
}

.badge-withdrawn {
    background: #e2e8f0;
    color: var(--gray);
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

/* ==========================================================================
   Coordinator Dashboard
   ========================================================================== */

.dashboard-nav {
    display: flex;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.dashboard-nav a {
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--gray);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.dashboard-nav a:hover {
    color: var(--primary);
    background: var(--light-bg);
    text-decoration: none;
}

.dashboard-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--secondary);
    font-weight: 700;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-hover);
}

.stat-card .stat-number {
    font-family: var(--font-decorative);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    margin-top: 0.5rem;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   Login Page
   ========================================================================== */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.login-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-box .logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-box .logo img {
    height: 60px;
    width: auto;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.login-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    font-family: 'Untitled', sans-serif;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
}

.login-box .btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 0.95rem;
}

/* ==========================================================================
   Detail View / Internship Detail
   ========================================================================== */

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

.detail-item {
    margin-bottom: 1rem;
}

.detail-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gray);
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.detail-item .value {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 500;
}

.detail-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h3 {
    margin-bottom: 1rem;
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

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

.modal-header h2,
.modal-header h3 {
    margin-bottom: 0;
}

.modal-close {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--gray);
    background: none;
    border: none;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary);
}

/* ==========================================================================
   Clipboard Copy Feedback
   ========================================================================== */

.copy-hint {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius);
    z-index: 9999;
    font-size: 0.85rem;
    animation: fadeInOut 2s ease-in-out forwards;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Text alignment */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* Margin top */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Margin bottom */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Padding */
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Display */
.hidden { display: none; }

/* Flexbox */
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-gap { display: flex; gap: 1rem; }

/* Width */
.w-full { width: 100%; }

/* Truncate text */
.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

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

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* ==========================================================================
   Welcome / Landing Page
   ========================================================================== */

.welcome-section {
    max-width: 800px;
    margin: 0 auto;
}

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

.welcome-subtitle {
    font-family: 'Untitled', sans-serif;
    color: var(--gray);
    font-size: 1rem;
}

.welcome-body p {
    font-family: 'Untitled', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.info-box {
    background: var(--light-bg);
    border-left: 4px solid var(--secondary);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.info-box h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: none;
}

.steps-list {
    list-style: none;
    padding: 0;
    counter-reset: steps;
}

.steps-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    font-family: 'Untitled', sans-serif;
    font-size: 0.9rem;
}

.steps-list li::before {
    counter-increment: steps;
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Poppins", sans-serif;
}

.welcome-actions {
    text-align: center;
    margin: 2rem 0;
}

.program-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.program-card {
    background: var(--primary);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.program-card:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.program-card h4 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.program-card p {
    font-family: 'Untitled', sans-serif;
    font-size: 0.8rem;
    opacity: 0.8;
    margin: 0;
}

/* ==========================================================================
   Filter Form
   ========================================================================== */

.filter-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.filter-actions {
    display: flex;
    align-items: flex-end;
}

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

/* ==========================================================================
   Overview Grid (Dashboard)
   ========================================================================== */

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.overview-item {
    text-align: center;
    padding: 1rem;
    border-right: 1px solid var(--border);
}

.overview-item:last-child {
    border-right: none;
}

.overview-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gray);
    letter-spacing: 0.3px;
    margin-bottom: 0.5rem;
}

.overview-value {
    display: block;
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
}

.dashboard-row {
    margin-bottom: 2rem;
}

/* Stat card link styles */
.stat-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.stat-card:hover {
    text-decoration: none;
    color: inherit;
}

/* Matriculation number style */
.matr-nr {
    font-family: "Source Code Pro", monospace;
    font-weight: 600;
    cursor: pointer;
}

.matr-nr:hover {
    color: var(--secondary);
}

/* Badge program */
.badge-program {
    background: var(--primary);
    color: var(--white);
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Form control error state */
.form-control.error {
    border-color: var(--tertiary);
}

@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
    }
    .program-cards {
        grid-template-columns: 1fr;
    }
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .overview-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet landscape and below */
@media (max-width: 1024px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

/* Tablet portrait and below */
@media (max-width: 768px) {
    .site-header {
        padding: 8px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-left {
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-logo img {
        height: 36px;
    }

    .header-nav {
        flex-wrap: wrap;
        gap: 2px;
    }

    .header-nav a {
        padding: 6px 8px;
        font-size: 12px;
    }

    .main-content {
        padding: 1rem;
    }

    .dashboard-nav {
        flex-wrap: wrap;
    }

    .dashboard-nav a {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }

    .data-table {
        font-size: 0.8rem;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }
}

/* Small mobile */
@media (max-width: 600px) {
    .login-box {
        padding: 1.5rem;
        margin: 1rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .stat-card .stat-number {
        font-size: 2rem;
    }

    .card {
        padding: 1rem;
    }

    .modal {
        width: 95%;
        padding: 1.5rem;
    }
}

/* Extra small mobile */
@media (max-width: 400px) {
    .btn {
        width: 100%;
        justify-content: center;
    }

    .flex-gap {
        flex-direction: column;
    }

    h1 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Registration Form
   ========================================================================== */

.registration-container {
    max-width: 800px;
    margin: 0 auto;
}

.registration-section {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.registration-section:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.registration-section h3 {
    margin-bottom: 0.75rem;
}

/* Button group */
.btn-group {
    display: inline-flex;
    gap: 0;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}

.btn-group .btn:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Progress bar for statistics */
.progress-bar-container {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    height: 1.2rem;
    overflow: hidden;
    min-width: 120px;
}
.progress-bar-fill {
    background: var(--primary);
    height: 100%;
    border-radius: var(--radius);
    transition: width 0.3s ease;
    min-width: 2px;
}

/* Input with button inline */
.input-with-button {
    display: flex;
    gap: 0.5rem;
}

.input-with-button .form-control {
    flex: 1;
}

.input-with-button .btn {
    white-space: nowrap;
}

/* Program radio cards */
.program-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.program-radio {
    cursor: pointer;
}

.program-radio input[type="radio"] {
    display: none;
}

.program-radio-card {
    display: block;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.program-radio-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.program-radio-card small {
    color: var(--gray);
    font-family: var(--font-corporate);
    font-size: 0.8rem;
}

.program-radio input:checked + .program-radio-card {
    border-color: var(--secondary);
    background: rgba(0, 208, 199, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 208, 199, 0.15);
}

.program-radio:hover .program-radio-card {
    border-color: var(--secondary);
}

/* Course option cards */
.course-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.course-option:hover {
    border-color: var(--secondary);
}

.course-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--secondary);
    flex-shrink: 0;
}

.course-option input[type="radio"]:disabled {
    cursor: not-allowed;
}

.course-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-number {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.course-name {
    font-family: var(--font-corporate);
    color: var(--gray);
    font-size: 0.85rem;
}

.course-status {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.course-assessed {
    background: #f0fdf4;
    border-color: var(--success);
    opacity: 0.7;
    cursor: default;
}

.course-assessed .course-status {
    color: var(--success);
    font-weight: 600;
}

.course-in-progress {
    background: #fefce8;
    border-color: var(--warning);
    opacity: 0.7;
    cursor: default;
}

.course-in-progress .course-status {
    color: #856404;
    font-weight: 600;
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--secondary);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-hover);
    z-index: 50;
    max-height: 300px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: rgba(0, 208, 199, 0.08);
}

.autocomplete-item strong {
    display: block;
    color: var(--primary);
    font-size: 0.9rem;
}

.autocomplete-item small {
    color: var(--gray);
    font-size: 0.8rem;
}

.autocomplete-item .badge {
    font-size: 0.65rem;
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* Text colors for status messages */
.text-success { color: var(--success); }
.text-error { color: var(--danger); }
.text-info { color: var(--info); }

.fa-spin {
    animation: fa-spin 1s linear infinite;
}

@keyframes fa-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Registration Wizard
   ========================================================================== */

/* Progress indicator */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    gap: 0;
}

.wizard-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    position: relative;
    min-width: 80px;
}

.wizard-progress-step.completed {
    cursor: pointer;
}

.wizard-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid var(--border);
}

.wizard-progress-step.active .wizard-step-number {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 56, 85, 0.15);
}

.wizard-progress-step.completed .wizard-step-number {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.wizard-step-label {
    font-family: var(--font-corporate);
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 0.4rem;
    text-align: center;
    white-space: nowrap;
}

.wizard-progress-step.active .wizard-step-label {
    color: var(--primary);
    font-weight: 600;
}

.wizard-progress-step.completed .wizard-step-label {
    color: var(--secondary-dark);
    font-weight: 500;
}

.wizard-progress-connector {
    flex: 1;
    height: 3px;
    background: var(--border);
    margin: 0 0.5rem;
    margin-bottom: 1.2rem;
    border-radius: 2px;
    transition: var(--transition);
    max-width: 80px;
}

/* Wizard steps */
.wizard-step {
    animation: wizardFadeIn 0.3s ease;
}

.wizard-step h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.wizard-step h3 i {
    color: var(--secondary);
    margin-right: 0.5rem;
}

.wizard-step h4 {
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
    color: var(--primary);
    font-size: 1rem;
}

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

/* Wizard navigation */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.wizard-nav-spacer {
    flex: 1;
}

/* Review section */
.review-container {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.review-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.review-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.review-section h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.review-section h4 i {
    color: var(--secondary);
    margin-right: 0.4rem;
    width: 1.2em;
    text-align: center;
}

.review-grid {
    display: grid;
    gap: 0.4rem;
}

.review-row {
    display: flex;
    gap: 0.5rem;
    font-family: var(--font-corporate);
    font-size: 0.88rem;
    line-height: 1.5;
    padding: 0.25rem 0;
}

.review-label {
    font-weight: 600;
    color: var(--primary);
    min-width: 160px;
    flex-shrink: 0;
}

.review-value {
    color: var(--body-color);
    word-break: break-word;
}

/* Draft notification tweaks */
#draft-notification {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#draft-notification .btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

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

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

@media (max-width: 768px) {
    .wizard-progress {
        gap: 0;
    }
    .wizard-step-label {
        font-size: 0.65rem;
    }
    .wizard-step-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    .wizard-progress-connector {
        max-width: 40px;
    }
    .review-row {
        flex-direction: column;
        gap: 0.1rem;
    }
    .review-label {
        min-width: auto;
    }
}

@media (max-width: 600px) {
    .program-selection {
        grid-template-columns: 1fr;
    }
    .input-with-button {
        flex-direction: column;
    }
    .wizard-progress {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    .wizard-progress-connector {
        display: none;
    }
    .wizard-navigation {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* ─── Detail Pages ─── */
.detail-header {
    margin-bottom: 1.5rem;
}

.detail-header .btn {
    margin-bottom: 0.75rem;
}

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

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

.detail-row {
    display: flex;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--gray);
    min-width: 140px;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    color: var(--dark);
    word-break: break-word;
}

.project-description {
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Action Panels */
.action-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .action-panels {
        grid-template-columns: 1fr;
    }
}

.action-panel {
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 2px solid var(--border);
}

.action-panel h4 {
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
}

.action-panel-primary {
    border-color: var(--primary);
    background: rgba(0, 56, 85, 0.03);
}

.action-panel-success {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.03);
}

.action-panel-warning {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.03);
}

.action-panel-danger {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.03);
}

/* Rejection Reasons */
.rejection-reasons {
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--secondary);
}

.rejection-other-text {
    margin-left: 1.75rem;
    margin-top: 0.25rem;
}

.rejection-other-text textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.85rem;
    resize: vertical;
}

/* File List */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-icon {
    font-size: 1.5rem;
    color: var(--danger);
}

.file-name {
    font-weight: 600;
    color: var(--dark);
    display: block;
}

.file-meta {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Grade Display */
.grade-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

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

.grade-item {
    text-align: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}

.grade-item.grade-suggested {
    border-color: var(--secondary);
    background: rgba(0, 208, 199, 0.05);
}

.grade-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--gray);
    display: block;
    margin-bottom: 0.5rem;
}

.grade-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.grade-1 { color: var(--success); }
.grade-2 { color: #22c55e; }
.grade-3 { color: var(--warning); }
.grade-4 { color: #f97316; }
.grade-5 { color: var(--danger); }

/* Grade Radio Select */
.grade-select {
    display: flex;
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.grade-radio {
    cursor: pointer;
}

.grade-radio input[type="radio"] {
    display: none;
}

.grade-radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: all 0.15s ease;
}

.grade-radio input[type="radio"]:checked + .grade-radio-label {
    border-color: var(--secondary);
    background: var(--secondary);
    color: var(--white);
    box-shadow: var(--shadow-hover);
}

.grade-radio:hover .grade-radio-label {
    border-color: var(--secondary);
}

/* Button colors */
.btn-warning {
    background: var(--warning);
    color: var(--white);
    border: none;
}

.btn-warning:hover {
    background: #d97706;
}

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

.btn-danger:hover {
    background: #dc2626;
}

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

.btn-success:hover {
    background: #059669;
}

/* Badge variations */
.badge-approved {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-in-approval {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
}

.badge-approved {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-report-submitted {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.badge-in-assessment {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.badge-assessment-submitted {
    background: rgba(0, 208, 199, 0.1);
    color: var(--secondary);
}

.badge-assessed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    font-weight: 700;
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.badge-withdrawn {
    background: rgba(107, 114, 128, 0.1);
    color: var(--gray);
}

/* ─── Form Rows ─── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ─── Quick Actions ─── */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--primary);
    transition: all 0.15s ease;
    text-align: center;
}

.quick-action-card:hover {
    border-color: var(--secondary);
    background: rgba(0, 208, 199, 0.05);
}

.quick-action-card i {
    font-size: 2rem;
    color: var(--secondary);
}

.quick-action-card span {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ─── Modal ─── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 1.5rem;
}

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

/* ─── LDAP Search Results ─── */
.ldap-results-list {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: 300px;
    overflow-y: auto;
}

.ldap-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}

.ldap-result-item:last-child {
    border-bottom: none;
}

.ldap-result-item:hover {
    background: rgba(0, 208, 199, 0.08);
}

/* ─── Row States ─── */
.row-inactive {
    opacity: 0.5;
}

.row-inactive td {
    color: var(--gray);
}

/* ─── Login Page ─── */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 2rem;
}

.login-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 400px;
    width: 100%;
}

.login-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 0.25rem;
}

.login-box .text-muted {
    text-align: center;
    display: block;
}

.btn-block {
    display: block;
    width: 100%;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.login-footer a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.85rem;
}

.login-footer a:hover {
    color: var(--secondary);
}

/* Status tracking steps */
.status-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 2rem 0;
    padding: 0;
}
.status-steps::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: var(--border);
    z-index: 0;
}
.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
}
.status-step-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 3px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}
.status-step.completed .status-step-icon {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}
.status-step.active .status-step-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 56, 85, 0.15);
}
.status-step.rejected .status-step-icon {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}
.status-step-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    max-width: 90px;
}
.status-step.completed .status-step-label,
.status-step.active .status-step-label {
    color: var(--text);
    font-weight: 600;
}
@media (max-width: 768px) {
    .status-steps {
        flex-direction: column;
        gap: 0.5rem;
    }
    .status-steps::before {
        top: 0;
        bottom: 0;
        left: 1.25rem;
        right: auto;
        width: 3px;
        height: auto;
    }
    .status-step {
        flex-direction: row;
        text-align: left;
        gap: 0.75rem;
    }
    .status-step-label {
        max-width: none;
    }
}

/* Timeline for audit log */
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light, #f0f0f0);
}
.timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.65rem;
    top: 0.35rem;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
}
.timeline-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.timeline-action {
    font-weight: 600;
}
.timeline-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   CSS Bar Charts
   ========================================================================== */

.chart-container {
    margin: 1rem 0;
}

.chart-container .chart-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.chart-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
}

.chart-label {
    min-width: 140px;
    font-size: 0.85rem;
    color: var(--dark);
    text-align: right;
    flex-shrink: 0;
    font-family: var(--font-body);
}

.chart-bar {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    height: 1.5rem;
    overflow: hidden;
    position: relative;
    min-width: 60px;
}

.chart-bar-fill {
    height: 100%;
    border-radius: var(--radius);
    transition: width 0.4s ease;
    min-width: 2px;
    display: flex;
    align-items: center;
    padding-left: 0.5rem;
}

.chart-bar-fill-text {
    font-size: 0.7rem;
    color: var(--white);
    font-weight: 600;
    white-space: nowrap;
}

.chart-value {
    min-width: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    text-align: left;
    flex-shrink: 0;
}

/* Chart color palette */
.chart-bar-fill.color-primary { background: var(--primary); }
.chart-bar-fill.color-secondary { background: var(--secondary); }
.chart-bar-fill.color-success { background: var(--success); }
.chart-bar-fill.color-warning { background: var(--warning); }
.chart-bar-fill.color-danger { background: var(--danger); }
.chart-bar-fill.color-info { background: var(--info); }
.chart-bar-fill.color-purple { background: #7c3aed; }
.chart-bar-fill.color-teal { background: #0d9488; }

/* Status-specific chart colors */
.chart-bar-fill.status-in-approval { background: #f59e0b; }
.chart-bar-fill.status-approved { background: #10b981; }
.chart-bar-fill.status-report-submitted { background: #3b82f6; }
.chart-bar-fill.status-in-assessment { background: #7c3aed; }
.chart-bar-fill.status-assessment-submitted { background: #00d0c7; }
.chart-bar-fill.status-assessed { background: #059669; }
.chart-bar-fill.status-rejected { background: #ef4444; }
.chart-bar-fill.status-withdrawn { background: #6b7280; }

/* Grade chart colors */
.chart-bar-fill.grade-1 { background: var(--success); }
.chart-bar-fill.grade-2 { background: #22c55e; }
.chart-bar-fill.grade-3 { background: var(--warning); }
.chart-bar-fill.grade-4 { background: #f97316; }
.chart-bar-fill.grade-5 { background: var(--danger); }

/* Monthly trend bars (vertical-style displayed horizontally) */
.chart-bar-fill.color-month { background: var(--primary); }

/* ==========================================================================
   Mini Status Bar (Dashboard)
   ========================================================================== */

.stat-bar {
    display: flex;
    height: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-secondary);
    margin: 0.75rem 0;
}

.stat-bar-segment {
    height: 100%;
    transition: width 0.4s ease;
    position: relative;
    min-width: 2px;
}

.stat-bar-segment:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}

.stat-bar-segment:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.stat-bar-segment.seg-in-approval { background: #f59e0b; }
.stat-bar-segment.seg-approved { background: #10b981; }
.stat-bar-segment.seg-report-submitted { background: #3b82f6; }
.stat-bar-segment.seg-in-assessment { background: #7c3aed; }
.stat-bar-segment.seg-assessment-submitted { background: #00d0c7; }
.stat-bar-segment.seg-assessed { background: #059669; }
.stat-bar-segment.seg-rejected { background: #ef4444; }
.stat-bar-segment.seg-withdrawn { background: #6b7280; }

.stat-bar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.stat-bar-legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--gray);
}

.stat-bar-legend-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Quick stats row for dashboard */
.quick-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quick-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.quick-stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.quick-stat-label {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* ==========================================================================
   Date Filter Form
   ========================================================================== */

.filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    font-family: var(--font-heading);
}

/* Semester comparison */
.semester-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.semester-comparison .semester-col {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
}

.semester-col h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.semester-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.9rem;
}

.semester-stat-label {
    color: var(--gray);
}

.semester-stat-value {
    font-weight: 600;
    color: var(--dark);
}

@media (max-width: 768px) {
    .semester-comparison {
        grid-template-columns: 1fr;
    }
    .chart-label {
        min-width: 100px;
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    /* Hide non-printable elements */
    .sidebar,
    .mobile-header,
    .btn,
    .filter-form,
    form,
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 10pt;
        line-height: 1.4;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .content-wrapper {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
        margin-bottom: 1rem !important;
    }

    .card-header {
        background: #f5f5f5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .chart-bar-fill,
    .stat-bar-segment,
    .stat-bar-legend-dot {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .badge {
        border: 1px solid #ccc;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    h1, h2, h3, h4 {
        color: #000;
        break-after: avoid;
    }

    .data-table {
        font-size: 9pt;
    }

    .dashboard-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .print-header {
        text-align: center;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid #000;
    }

    .print-header h1 {
        font-size: 18pt;
        margin-bottom: 0.25rem;
    }

    .print-header .print-date {
        font-size: 10pt;
        color: #666;
    }

    .print-footer {
        text-align: center;
        font-size: 8pt;
        color: #999;
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid #ccc;
    }

    a {
        text-decoration: none;
        color: #000;
    }

    .page-break {
        break-before: page;
    }
}

/* ─── Misc ─── */
hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

/* ==========================================================================
   Mobile Navigation Toggle (Hamburger Menu)
   ========================================================================== */

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.mobile-nav-toggle:hover {
    background: rgba(255,255,255,0.15);
}

/* ==========================================================================
   Enhanced Responsive Design
   ========================================================================== */

/* --- Tablet: max-width 1024px --- */
@media (max-width: 1024px) {
    .site-header {
        padding: 10px 20px;
    }

    .header-nav a {
        padding: 6px 10px;
        font-size: 12px;
    }

    .quick-actions {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .grade-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Mobile: max-width 768px --- */
@media (max-width: 768px) {
    /* Show hamburger toggle */
    .mobile-nav-toggle {
        display: block;
    }

    /* Mobile nav - hidden by default, shown when toggled */
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 0.5rem 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        z-index: 200;
        gap: 0;
    }

    .header-nav.mobile-nav-open {
        display: flex;
    }

    .header-nav a {
        padding: 12px 24px;
        font-size: 14px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .header-nav a:last-child {
        border-bottom: none;
    }

    .header-nav a:hover,
    .header-nav a.active {
        background: rgba(255,255,255,0.1);
    }

    .header-logout-btn {
        border-top: 1px solid rgba(255,255,255,0.15);
        margin-top: 0.25rem;
    }

    .site-header {
        position: relative;
    }

    /* Tables: horizontal scroll */
    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    /* Detail row: stack label/value vertically */
    .detail-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .detail-label {
        min-width: auto;
    }

    /* Dashboard nav: horizontal scroll */
    .dashboard-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-nav a {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Login box on mobile */
    .login-box {
        padding: 2rem 1.5rem;
        margin: 1rem;
        max-width: none;
    }

    .login-container {
        padding: 1rem;
    }

    /* Alerts: wrap text */
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    /* Modal: full-width-ish on mobile */
    .modal,
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .modal {
        padding: 1.5rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-footer {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }

    /* Filter forms: stack vertically */
    .filter-row {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        width: 100%;
    }

    .filter-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Action panels: single column */
    .action-panels {
        grid-template-columns: 1fr;
    }

    /* Grade select: wrap */
    .grade-select {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .grade-radio-label {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    /* Program selection: single column */
    .program-selection {
        grid-template-columns: 1fr;
    }

    /* Quick actions: 2 columns on tablet/mobile */
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    /* File items: stack on mobile */
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Chart rows: stack */
    .chart-row {
        flex-direction: column;
    }

    /* Button groups: full width */
    .btn-group {
        display: flex;
        width: 100%;
    }

    .btn-group .btn {
        flex: 1;
        justify-content: center;
    }

    /* Timeline adjustments */
    .timeline {
        padding-left: 1.5rem;
    }

    /* Welcome section */
    .welcome-section {
        padding: 0 0.5rem;
    }

    /* Headings smaller */
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }
}

/* --- Small mobile: max-width 480px --- */
@media (max-width: 480px) {
    .main-content {
        padding: 0.75rem;
    }

    .card {
        padding: 1rem;
        border-radius: 6px;
    }

    .card-header {
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
    }

    /* Stat cards: single column, compact */
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card .stat-number {
        font-size: 1.8rem;
    }

    .stat-card .stat-label {
        font-size: 0.75rem;
    }

    /* Buttons: full width */
    .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-sm {
        width: auto;
    }

    /* Flex gap: stack */
    .flex-gap {
        flex-direction: column;
    }

    .flex-between {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    /* Forms: full width */
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-control {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Login: even more compact */
    .login-box {
        padding: 1.5rem 1rem;
    }

    .login-box .logo img {
        height: 44px;
    }

    .login-box h1 {
        font-size: 1.1rem;
    }

    /* Headings: smaller */
    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* Tables: smaller text */
    .data-table th,
    .data-table td {
        padding: 6px 8px;
        font-size: 0.75rem;
    }

    /* Overview grid: single column */
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .overview-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0.75rem;
    }

    .overview-value {
        font-size: 1.4rem;
    }

    /* Detail grid: single column */
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Alerts: more compact */
    .alert {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    /* Modal: near full screen */
    .modal,
    .modal-content {
        width: 98%;
        border-radius: 6px;
    }

    .modal-footer {
        flex-direction: column;
    }

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

    /* Quick actions: single column */
    .quick-actions {
        grid-template-columns: 1fr;
    }

    .quick-action-card {
        flex-direction: row;
        padding: 1rem;
        text-align: left;
    }

    .quick-action-card i {
        font-size: 1.5rem;
    }

    /* Header logo: smaller */
    .header-logo img {
        height: 32px;
    }

    .header-logo-text .app-name {
        font-size: 13px;
    }

    .header-logo-text .app-subtitle {
        font-size: 9px;
    }

    .header-logo-text {
        margin-left: 8px;
        padding-left: 8px;
    }

    /* Program cards compact */
    .program-card {
        padding: 1rem;
    }

    .program-card h4 {
        font-size: 1.2rem;
    }

    /* Info box compact */
    .info-box {
        padding: 1rem;
        margin: 1rem 0;
    }

    /* Input with button: stack */
    .input-with-button {
        flex-direction: column;
    }

    /* Course options: compact */
    .course-option {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    /* Badge: slightly smaller */
    .badge {
        padding: 3px 8px;
        font-size: 0.7rem;
    }

    /* Site footer */
    .site-footer {
        padding: 16px;
        font-size: 11px;
    }

    /* Action panel compact */
    .action-panel {
        padding: 1rem;
    }

    /* Registration */
    .registration-container {
        padding: 0;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3.5rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(0, 208, 199, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(0, 208, 199, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.hero-subtitle {
    font-family: var(--font-corporate);
    font-size: 1.15rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-description {
    font-family: var(--font-corporate);
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

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

@media (max-width: 600px) {
    .hero {
        padding: 2.5rem 1.25rem;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ==========================================================================
   Program Highlight (Landing Page)
   ========================================================================== */

.program-highlight {
    margin-bottom: 2rem;
}

/* ==========================================================================
   Section Headings
   ========================================================================== */

.section-heading {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-heading i {
    color: var(--secondary);
    margin-right: 0.5rem;
}

/* ==========================================================================
   Process Timeline
   ========================================================================== */

.process-timeline-section {
    margin-bottom: 2.5rem;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 2.25rem;
    left: 7%;
    right: 7%;
    height: 3px;
    background: var(--border);
    z-index: 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-step-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 208, 199, 0.15);
}

.process-step:hover .process-step-icon {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 208, 199, 0.3);
}

.process-step-number {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.process-step-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.process-step-desc {
    font-family: var(--font-corporate);
    font-size: 0.72rem;
    color: var(--gray);
    line-height: 1.4;
    max-width: 130px;
}

@media (max-width: 900px) {
    .process-timeline {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem 1rem;
    }
    .process-timeline::before {
        display: none;
    }
}

@media (max-width: 600px) {
    .process-timeline {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .process-step-desc {
        max-width: none;
    }
}

@media (max-width: 400px) {
    .process-timeline {
        grid-template-columns: 1fr;
    }
    .process-step {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }
    .process-step-icon {
        flex-shrink: 0;
        margin-bottom: 0;
    }
}

/* ==========================================================================
   Quick Links
   ========================================================================== */

.quick-links-section {
    margin-bottom: 2rem;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.75rem 1rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
    text-align: center;
}

.quick-link-card:hover {
    border-color: var(--secondary);
    background: rgba(0, 208, 199, 0.04);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.quick-link-card i {
    font-size: 2rem;
    color: var(--secondary);
}

.quick-link-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

.quick-link-desc {
    font-family: var(--font-corporate);
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .quick-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 400px) {
    .quick-links {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   FAQ Page
   ========================================================================== */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-header h1 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.faq-header h1 i {
    color: var(--secondary);
}

.faq-header p {
    font-family: var(--font-corporate);
    color: var(--gray);
    font-size: 0.95rem;
}

.faq-section {
    margin-bottom: 2rem;
}

.faq-section-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
    margin-bottom: 0.75rem;
}

.faq-section-title i {
    color: var(--secondary);
    margin-right: 0.5rem;
    font-size: 1rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item-open {
    border-color: var(--secondary);
    box-shadow: 0 2px 8px rgba(0, 208, 199, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: none;
    cursor: pointer;
    font-family: var(--font-corporate);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--primary);
    text-align: left;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(0, 208, 199, 0.04);
}

.faq-icon {
    font-size: 0.8rem;
    color: var(--gray);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item-open .faq-icon {
    transform: rotate(180deg);
    color: var(--secondary);
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    font-family: var(--font-corporate);
    font-size: 0.88rem;
    color: var(--body-color);
    line-height: 1.7;
    background: rgba(0, 208, 199, 0.02);
    border-top: 1px solid var(--border);
}

.faq-answer p {
    margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 0.5rem 0 0.75rem 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.3rem;
}

.faq-answer a {
    color: var(--secondary-dark);
    text-decoration: underline;
}

.faq-answer a:hover {
    color: var(--secondary);
}

.faq-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.faq-footer p {
    font-family: var(--font-corporate);
    color: var(--gray);
    margin-bottom: 1rem;
}

/* Status Lookup Results */
.status-result-card {
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: var(--white);
    transition: box-shadow 0.15s;
}
.status-result-card:hover {
    box-shadow: var(--shadow);
}
.status-result-card:last-child {
    margin-bottom: 0;
}
.status-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.status-result-details {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--gray);
}
.status-result-details i {
    margin-right: 0.25rem;
}
@media (max-width: 600px) {
    .status-result-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    .status-result-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
