/* =====================================================
   PRINTBUDDY EXPRESS — STUDENT THEME CSS
   Dusty/Pastel Purple — Friendly & Welcoming
   ===================================================== */

/* ── Student Color Tokens ── */
:root {
    --stu-primary: #7C5CBF;
    --stu-primary-dk: #5D3FA3;
    --stu-primary-lt: #B39DDB;
    --stu-accent: #A78BFA;
    --stu-surface: #F9F6FF;
    --stu-surface2: #F3EEFF;
    --stu-card: #FFFFFF;
    --stu-border: #E8DEF8;
    --stu-text: #3D2B6B;
    --stu-text-md: #5B4780;
    --stu-text-muted: #8B7AA8;
    --stu-success: #22C55E;
    --stu-danger: #EF4444;
    --stu-warning: #F59E0B;
    --stu-radius: 14px;
    --stu-shadow: 0 4px 20px rgba(124, 92, 191, 0.10);
    --stu-shadow-lg: 0 12px 40px rgba(124, 92, 191, 0.15);
}

/* ── Student body background ── */
body.student-page {
    background: var(--stu-surface);
    color: var(--stu-text);
    font-family: 'Inter', 'Poppins', sans-serif;
    min-height: 100vh;
}

/* ==============================================
   STUDENT GUEST HEADER (Navbar)
   ============================================== */
.header-student {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(249, 246, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--stu-border);
    padding: 10px 32px;


    display: flex;
    align-items: center;
    justify-content: space-between;

    box-shadow: 0 2px 12px rgba(124, 92, 191, 0.08);
}

.header-student .logo {
    height: 100px !important;
    width: auto !important;
    margin: 0 !important;
    display: block;
}

.header-student a {
    display: flex;
    align-items: center;
}

.header-student .logo:hover {
    opacity: 0.82;
}

.nav-student {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-student a {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--stu-text-md);
    transition: all 0.2s;
}

.nav-student a:hover {
    background: var(--stu-surface2);
    color: var(--stu-primary);
}

.nav-student a.nav-active {
    background: var(--stu-primary);
    color: #fff;
}

.nav-student a.nav-login-btn {
    background: var(--stu-primary);
    color: #fff;
    font-weight: 600;
}

.nav-student a.nav-login-btn:hover {
    background: var(--stu-primary-dk);
}

/* ==============================================
   STUDENT LOGGED-IN HEADER
   ============================================== */
.header-student-auth {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #FFFFFF;
    border-bottom: 1px solid var(--stu-border);
    padding: 0 40px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(124, 92, 191, 0.08);
}

.nav-student-auth {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-student-auth a {
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--stu-text-md);
    transition: all 0.2s;
}

.nav-student-auth a:hover {
    background: var(--stu-surface2);
    color: var(--stu-primary);
}

.nav-student-auth a.nav-active {
    background: var(--stu-surface2);
    color: var(--stu-primary);
    font-weight: 600;
}

.nav-student-auth .nav-logout {
    background: #FEE2E2;
    color: #DC2626;
    margin-left: 8px;
    border-radius: 10px;
}

.nav-student-auth .nav-logout:hover {
    background: #FECACA;
}

/* ==============================================
   STUDENT FOOTER
   ============================================== */
.footer-student {
    background: #F3EEFF;
    border-top: 1px solid var(--stu-border);
    padding: 32px 40px;
    margin-top: 60px;
}

.footer-student-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-student-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-student-brand img {
    height: 38px;
}

.footer-student-brand span {
    font-size: 15px;
    font-weight: 700;
    color: var(--stu-primary);
}

.footer-student-links {
    display: flex;
    gap: 20px;
}

.footer-student-links a {
    font-size: 13px;
    color: var(--stu-text-muted);
    transition: color 0.2s;
}

.footer-student-links a:hover {
    color: var(--stu-primary);
}

.footer-student-copy {
    font-size: 12px;
    color: var(--stu-text-muted);
}

/* ==============================================
   STUDENT BUTTONS
   ============================================== */
.btn-stu {
    background: var(--stu-primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(124, 92, 191, 0.25);
}

.btn-stu:hover {
    background: var(--stu-primary-dk);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124, 92, 191, 0.30);
}

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

.btn-stu-outline:hover {
    background: var(--stu-surface2);
}

.btn-stu-ghost {
    background: var(--stu-surface2);
    color: var(--stu-primary);
    border: 1.5px solid var(--stu-border);
}

.btn-stu-ghost:hover {
    background: #EAD9FF;
    border-color: var(--stu-primary-lt);
}

.btn-danger-soft {
    background: #FEF2F2;
    color: #DC2626;
    border: 1.5px solid #FECACA;
}

.btn-danger-soft:hover {
    background: #FEE2E2;
}

/* ==============================================
   STUDENT FORMS
   ============================================== */
.stu-form-input {
    padding: 12px 15px;
    border-radius: 12px;
    border: 1.5px solid var(--stu-border);
    background: #FDFAFF;
    font-size: 14px;
    color: var(--stu-text);
    width: 100%;
    outline: none;
    transition: all 0.2s;
}

.stu-form-input:focus {
    border-color: var(--stu-primary);
    background: #fff;
    box-shadow: 0 0 0 3.5px rgba(124, 92, 191, 0.12);
}

.stu-form-input::placeholder {
    color: #B0A0C5;
}

.stu-form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--stu-text-md);
    margin-bottom: 6px;
    display: block;
}

.stu-form-section {
    background: #fff;
    border: 1.5px solid var(--stu-border);
    border-radius: 18px;
    padding: 22px 24px;
    margin-bottom: 20px;
}

.stu-form-section h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--stu-text);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--stu-border);
}

.stu-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ==============================================
   STUDENT CARDS
   ============================================== */
.stu-card {
    background: #fff;
    border: 1.5px solid var(--stu-border);
    border-radius: 20px;
    box-shadow: var(--stu-shadow);
    padding: 26px;
    transition: all 0.22s ease;
}

.stu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--stu-shadow-lg);
    border-color: var(--stu-primary-lt);
}

.stu-stat-card {
    background: #fff;
    border: 1.5px solid var(--stu-border);
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    box-shadow: var(--stu-shadow);
}

.stu-stat-card .stat-num {
    font-size: 34px;
    font-weight: 800;
    color: var(--stu-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.stu-stat-card .stat-label {
    font-size: 13px;
    color: var(--stu-text-muted);
    font-weight: 500;
}

/* ==============================================
   STUDENT PAGE HERO BANNERS
   ============================================== */
.stu-hero-banner {
    background: linear-gradient(135deg, #7C5CBF 0%, #A78BFA 100%);
    border-radius: 22px;
    padding: 36px;
    color: #fff;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(124, 92, 191, 0.22);
    position: relative;
    overflow: hidden;
}

.stu-hero-banner::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.stu-hero-banner .hero-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 10px;
}

.stu-hero-banner h1 {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 10px;
}

.stu-hero-banner p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.88);
    max-width: 600px;
    line-height: 1.65;
}

/* ==============================================
   STUDENT STATUS BADGES (overrides)
   ============================================== */
.badge-pending {
    background: #FEF3C7;
    color: #92400E;
}

.badge-printing {
    background: #EDE9FE;
    color: #5B21B6;
}

.badge-completed {
    background: #D1FAE5;
    color: #065F46;
}

.badge-paid {
    background: #D1FAE5;
    color: #065F46;
}

.badge-unpaid {
    background: #FEE2E2;
    color: #991B1B;
}

/* ==============================================
   REWARD POINTS BOX
   ============================================== */
.reward-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #EDE9FE, #F5EEFF);
    border: 1.5px solid #DDD6FE;
    border-radius: 16px;
    padding: 14px 22px;
    margin-top: 18px;
}

.reward-badge .points-val {
    font-size: 28px;
    font-weight: 800;
    color: var(--stu-primary);
    line-height: 1;
}

.reward-badge .points-label {
    font-size: 12px;
    color: var(--stu-text-muted);
    line-height: 1.5;
}

/* ==============================================
   QUICK ACTION CARDS (Dashboard)
   ============================================== */
.stu-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1.5px solid var(--stu-border);
    border-radius: 18px;
    padding: 24px 16px;
    box-shadow: var(--stu-shadow);
    transition: all 0.22s ease;
    text-decoration: none;
    color: var(--stu-text);
}

.stu-action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--stu-shadow-lg);
    border-color: var(--stu-primary-lt);
    background: var(--stu-surface);
}

.stu-action-card .card-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--stu-surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 14px;
}

.stu-action-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--stu-text);
}

.stu-action-card p {
    font-size: 12.5px;
    color: var(--stu-text-muted);
    line-height: 1.5;
}

/* ==============================================
   LOGIN / REGISTER CARD
   ============================================== */
.stu-login-wrap {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--stu-surface);
}

.stu-login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1.5px solid var(--stu-border);
    border-radius: 24px;
    box-shadow: var(--stu-shadow-lg);
    padding: 42px 36px;
    text-align: center;
}

.stu-login-card .login-brand {
    font-size: 22px;
    font-weight: 800;
    color: var(--stu-primary);
    margin-bottom: 4px;
}

.stu-login-card .login-sub {
    font-size: 14px;
    color: var(--stu-text-muted);
    margin-bottom: 30px;
}

.stu-login-card .form-group {
    text-align: left;
}

.stu-login-card .form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1.5px solid var(--stu-border);
    background: #FDFAFF;
    font-size: 14px;
    color: var(--stu-text);
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.stu-login-card .form-group input:focus {
    border-color: var(--stu-primary);
    background: #fff;
    box-shadow: 0 0 0 3.5px rgba(124, 92, 191, 0.12);
}

.stu-login-card .error-text {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

.stu-login-card .login-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stu-login-card .login-links a {
    font-size: 13px;
    color: var(--stu-text-muted);
    transition: color 0.2s;
}

.stu-login-card .login-links a:hover {
    color: var(--stu-primary);
}

.stu-login-card .register-cta {
    margin-top: 16px;
    font-size: 13px;
    color: var(--stu-text-muted);
}

.stu-login-card .register-cta a {
    color: var(--stu-primary);
    font-weight: 600;
}

/* ==============================================
   TRACK PAGE
   ============================================== */
.stu-track-search {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.stu-track-search input {
    flex: 1;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--stu-border);
    font-size: 14px;
    background: #FDFAFF;
    color: var(--stu-text);
    outline: none;
    transition: all 0.2s;
}

.stu-track-search input:focus {
    border-color: var(--stu-primary);
    box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.12);
}

.stu-result-card {
    background: #fff;
    border: 1.5px solid var(--stu-border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--stu-shadow);
}

.stu-result-card .result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #F3EFF8;
    font-size: 14px;
}

.stu-result-card .result-row:last-child {
    border-bottom: none;
}

.stu-result-card .result-label {
    color: var(--stu-text-muted);
    font-weight: 500;
}

.stu-result-card .result-val {
    color: var(--stu-text);
    font-weight: 600;
}

/* ==============================================
   RESPONSIVE — STUDENT
   ============================================== */
@media (max-width: 768px) {

    .header-student,
    .header-student-auth {
        padding: 0 18px;
    }

    .nav-student a {
        padding: 7px 11px;
        font-size: 13px;
    }

    .nav-student-auth a {
        padding: 7px 10px;
        font-size: 13px;
    }

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

    .stu-hero-banner {
        padding: 24px;
    }

    .stu-hero-banner h1 {
        font-size: 24px;
    }

    .footer-student {
        padding: 24px 18px;
    }

    .footer-student-inner {
        flex-direction: column;
        gap: 14px;
    }

    .footer-student-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .stu-login-card {
        padding: 30px 22px;
    }
}