@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    /* --- PREMIUM LIGHT THEME DESIGN SYSTEM --- */
    --brand-primary: #1e3a8a;
    --brand-secondary: #0284c7;
    --brand-gradient: linear-gradient(135deg, #1e3a8a 0%, #0284c7 100%);
    --accent-orange: #f97316;
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --accent-purple: #6366f1;
    /* Indigo */
    --accent-blue: #3b82f6;
    /* Royal Blue */
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
    --accent-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
    --text-primary: #0f172a;
    /* Dark slate */
    --text-secondary: #475569;
    /* Slate gray */
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.08);

    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}


/* --- REMOVED OLD LANDING PAGE STYLES --- */

/* --- INNER PAGES THEME (LIGHT CONTEXT) --- */
/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* GPK Branding Header */
.brand-top-bar {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--brand-primary), var(--brand-secondary), var(--accent-orange));
    z-index: 15;
}

.gpk-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, var(--accent-glow) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 10px 4%;
    border-bottom: 1px solid var(--brand-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 20;
    box-shadow: 0 4px 30px var(--accent-glow);
}

.header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}

.header-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.logo-container {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
}

/* outer spinning dashed ring */
.logo-ring-outer {
    position: absolute;
    width: 72px;
    height: 72px;
    border: 1.5px dashed var(--brand-secondary);
    opacity: 0.7;
    border-radius: 50%;
    animation: spin 45s linear infinite;
}

/* inner static/subtle solid ring */
.logo-ring-inner {
    position: absolute;
    width: 66px;
    height: 66px;
    border: 1px solid var(--brand-primary);
    opacity: 0.15;
    border-radius: 50%;
}

.gpk-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 2px;
    box-shadow: 0 4px 15px var(--accent-glow);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.logo-container:hover .gpk-logo {
    transform: scale(1.05);
}

.opac-badge-tag {
    font-size: 11px;
    font-weight: 800;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: var(--brand-gradient, linear-gradient(135deg, #0284c7 0%, #0099ff 100%));
    padding: 2.5px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 8px var(--accent-glow);
    margin-left: 6px;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1;
}

.title-primary {
    color: var(--brand-primary, #1e3a8a);
}

/* Portal Themes variables mapping */
body.theme-green {
    --brand-primary: #1b4332;
    --brand-secondary: #52b788;
    --brand-gradient: linear-gradient(135deg, #1b4332 0%, #52b788 100%);
    --accent-glow: rgba(82, 183, 136, 0.15);
}

body.theme-red {
    --brand-primary: #7f1d1d;
    --brand-secondary: #dc2626;
    --brand-gradient: linear-gradient(135deg, #7f1d1d 0%, #dc2626 100%);
    --accent-glow: rgba(220, 38, 38, 0.15);
}

body.theme-amber {
    --brand-primary: #78350f;
    --brand-secondary: #d97706;
    --brand-gradient: linear-gradient(135deg, #78350f 0%, #d97706 100%);
    --accent-glow: rgba(217, 119, 6, 0.15);
}

body.theme-purple {
    --brand-primary: #581c87;
    --brand-secondary: #9333ea;
    --brand-gradient: linear-gradient(135deg, #581c87 0%, #9333ea 100%);
    --accent-glow: rgba(147, 51, 234, 0.15);
}

.theme-switcher-container {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.45);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 8px 32px 0 rgba(31, 38, 135, 0.04);
    transition: all 0.3s ease;
}

.theme-switcher-container:hover {
    background: rgba(255, 255, 255, 0.60);
    border-color: rgba(255, 255, 255, 0.80);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 12px 36px 0 rgba(31, 38, 135, 0.08);
}

.theme-switcher-icon {
    font-size: 13px;
    color: var(--brand-secondary, #0284c7);
    margin-right: 2px;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-switcher-container:hover .theme-switcher-icon {
    transform: rotate(45deg) scale(1.1);
}

.theme-color-btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: relative;
}

.theme-color-btn:hover {
    transform: scale(1.25);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.theme-color-btn.active {
    transform: scale(1.15);
    border-color: #ffffff;
    box-shadow: 0 0 0 2.5px var(--brand-secondary, #0284c7), 0 4px 12px rgba(0, 0, 0, 0.12);
}

.title-separator {
    color: #cbd5e1;
    /* Slate 300 */
    margin: 0 8px;
    font-weight: 300;
}

.title-secondary {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #1e293b;
    /* Slate 800 */
}

.title-secondary.text-gradient {
    color: var(--brand-primary, #1e3a8a);
}

.gpk-header h1,
.header-title-text {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.6px;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    line-height: 1.35;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.text-gradient {
    background: var(--brand-gradient, linear-gradient(135deg, #1e3a8a 0%, #0284c7 100%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--brand-primary, #1e3a8a);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .text-gradient {
        color: transparent;
    }
}

.gpk-header .subtitle {
    color: #475569;
    font-size: 12.5px;
    font-weight: 500;
    margin: 0;
    max-width: 900px;
    line-height: 1.4;
    text-align: left;
}

.gpk-header .address {
    color: var(--brand-secondary, #0369a1);
    font-size: 10.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--accent-glow, rgba(2, 132, 199, 0.05));
    padding: 2px 12px;
    border-radius: 30px;
    border: 1px solid var(--accent-glow, rgba(2, 132, 199, 0.15));
    text-align: left;
    transition: var(--transition);
}

.gpk-header .address:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: var(--brand-secondary, #0284c7);
    transform: translateY(-0.5px);
}

.location-icon {
    color: #f97316;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .auth-wrapper {
        padding: 20px 20px !important;
    }

    .gpk-header {
        padding: 15px;
    }

    .header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .theme-switcher-container {
        margin: 8px auto 0 auto;
    }

    .header-text-container {
        align-items: center;
        text-align: center;
    }

    .gpk-header h1,
    .header-title-text {
        font-size: 16px;
        text-align: center;
        flex-direction: column;
        gap: 4px;
    }

    .title-separator {
        display: none;
    }

    .gpk-header .subtitle {
        font-size: 11px;
        text-align: center;
    }

    .gpk-header .address {
        font-size: 9.5px;
        justify-content: center;
    }
}

/* Header & Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    flex-shrink: 0;
}

.nav-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.28);
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.nav-brand-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.nav-brand-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

.nav-mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-mobile-toggle:hover {
    background: var(--bg-tertiary);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--accent-purple);
}

.nav-center-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 5px;
    background: #f1f5f9;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 14px;
}

.nav-links li {
    margin: 0;
}

.nav-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

.nav-pill-link i {
    font-size: 13px;
    opacity: 0.9;
}

.nav-pill-link:hover {
    color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(99, 102, 241, 0.08);
}

.nav-pill-link.active {
    color: #fff;
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.32);
}

.nav-pill-link.active i {
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.user-badge {
    background: #fff;
    border: 1px solid rgba(99, 102, 241, 0.14);
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    color: var(--text-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    max-width: 220px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    text-decoration: none !important;
}

.user-badge:hover,
.user-badge.is-active {
    border-color: rgba(99, 102, 241, 0.28);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.12);
    transform: translateY(-1px);
}

.user-badge.is-active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(37, 99, 235, 0.06));
}

.user-badge-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-purple);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.user-badge-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    min-width: 0;
}

.user-badge-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-badge-role {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.user-badge-expired {
    font-style: normal;
    color: #dc2626;
    font-weight: 700;
}

.btn-logout {
    background: #fff;
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.18);
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    white-space: nowrap;
}

.btn-logout:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.22);
}

.btn-nav-login,
.btn-nav-signup {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-nav-login {
    background: #fff;
    color: var(--text-primary);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.btn-nav-login:hover {
    background: var(--bg-tertiary);
}

.btn-nav-signup {
    background: var(--accent-gradient);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.28);
}

.btn-nav-signup:hover {
    background: var(--accent-gradient-hover);
}

@media (max-width: 992px) {
    .nav-mobile-toggle {
        display: inline-flex;
    }

    .nav-center-wrap {
        position: absolute;
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 16px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: all 0.22s ease;
    }

    .student-top-nav .nav-container {
        position: relative;
        flex-wrap: wrap;
    }

    .nav-center-wrap.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 8px;
    }

    .nav-pill-link {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .user-badge,
    .btn-logout,
    .btn-nav-login,
    .btn-nav-signup {
        width: 100%;
        justify-content: center;
        max-width: none;
    }

    .user-badge-meta {
        align-items: center;
        text-align: center;
    }

    .user-badge-name {
        max-width: none;
    }
}

/* Authentication Page Styles */
.auth-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
    padding: 40px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.btn-primary {
    width: 100%;
    background: var(--accent-gradient);
    border: none;
    color: #ffffff;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.auth-footer a {
    color: var(--accent-purple);
    font-weight: 700;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Alert Boxes */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Dashboards Section */
.dashboard-header {
    margin: 40px 0 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

.dashboard-header p {
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.book-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.08);
}

.book-cover {
    height: 200px;
    width: 100%;
    object-fit: cover;
    background-color: var(--bg-tertiary);
}

.book-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author {
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.book-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.book-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.btn-select {
    background: var(--accent-gradient);
    border: none;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-select:hover {
    background: var(--accent-gradient-hover);
    transform: scale(1.03);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    width: 90%;
    max-width: 500px;
    padding: 30px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

/* Requests Table Page */
.section-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
    padding: 30px;
    margin-bottom: 40px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px;
}

.table th {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 700;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    vertical-align: middle;
}

.table tr:hover {
    background-color: var(--bg-primary);
}

/* Status Badges */
.badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    text-transform: capitalize;
}

.badge-pending {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-approved {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-rejected {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-role {
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

/* Admin Dashboard Counters */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
    display: flex;
    flex-direction: column;
}

.stat-title {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}

/* Form Styles for adding Books */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.btn-secondary {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

.reply-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 250px;
}

.reply-buttons {
    display: flex;
    gap: 10px;
}

.btn-sm-success {
    background: var(--success);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
}

.btn-sm-success:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-sm-danger {
    background: var(--danger);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
}

.btn-sm-danger:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-secondary);
    font-weight: 500;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 16px;
}

/* Footer styling */
.gpk-footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, var(--accent-glow) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-primary);
    padding: 10px 4%;
    border-top: 1px solid var(--brand-secondary);
    font-size: 13.5px;
    position: relative;
    z-index: 10;
    margin-top: auto;
    /* Push footer to bottom in flex column layout */
    box-shadow: 0 -4px 30px var(--accent-glow);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.footer-copyright {
    font-weight: 500;
}

.footer-support-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid var(--accent-glow, #e2e8f0);
    border-radius: 30px;
    padding: 6px 14px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
    transition: var(--transition);
}

.footer-support-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--accent-glow, rgba(2, 132, 199, 0.08));
    border-color: var(--brand-secondary, rgba(2, 132, 199, 0.3));
}

.support-badge {
    background: rgba(2, 132, 199, 0.08);
    color: #0284c7;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 11.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-support-card .support-name {
    color: var(--brand-primary, #0f172a);
    font-weight: 700;
}

.footer-support-card .support-phone {
    color: var(--brand-secondary, #0284c7);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.footer-support-card .support-phone:hover {
    color: var(--brand-primary, #0369a1);
    text-decoration: underline;
}

.footer-support-card .support-phone i {
    font-size: 14px;
    color: var(--brand-secondary, #0284c7);
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}