/* ==========================================================================
   Design System & Variable Definitions (Retro Soviet-Constructivist Style)
   ========================================================================== */
:root {
    --bg-beige: #EADCB9;  /* Warm retro beige */
    --bg-blue: #0B4EA2;   /* Royal blue for Hero */
    --bg-orange: #EA4A2B; /* Bright vermillion orange/red */
    --bg-dark: #141414;   /* Charcoal black */
    --bg-green: #1B8F4B;  /* Kelly green */
    --bg-yellow: #F3B727; /* Mustard yellow */
    
    --text-red: #EA4A2B;
    --text-dark: #141414;
    --text-light: #EADCB9;
    
    /* Spacing & Layout */
    --container-padding: 24px;
    --grid-columns: 2;
    --grid-gap: 0px; /* Constructivist grid is flush */
    --navbar-height: 80px;
    --transition: all 0.2s ease;
}

/* ==========================================================================
   Responsive Overrides
   ========================================================================== */
@media (min-width: 768px) {
    :root {
        --container-padding: 40px;
        --grid-columns: 3;
    }
}

@media (min-width: 1024px) {
    :root {
        --grid-columns: 4;
    }
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-beige);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

a {
    color: var(--text-red);
    text-decoration: none;
    transition: var(--transition);
}

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ==========================================================================
   Constructivist Header (Beige Background)
   ========================================================================== */
.retro-header {
    background-color: var(--bg-beige);
    padding: 20px 0;
    border-bottom: 3px solid var(--text-red);
    position: relative;
    z-index: 10;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 1.75rem;
    letter-spacing: -0.03em;
    color: var(--text-red);
}

.retro-nav {
    display: flex;
    gap: 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.retro-nav-item {
    color: var(--text-red);
    padding: 4px 8px;
}

.retro-nav-item:hover {
    background-color: var(--text-red);
    color: var(--bg-beige);
}

/* Header Triangle Pointer */
.header-pointer {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 16px solid var(--text-red);
    z-index: 15;
}

/* ==========================================================================
   Hero Section (Royal Blue Background, Centered Text Layout)
   ========================================================================== */
.retro-hero {
    background-color: var(--bg-blue);
    color: #FFFFFF;
    padding: 120px 0 100px;
    border-bottom: 4px solid var(--text-red);
    position: relative;
    text-align: center;
}

/* Grid Mesh overlay */
.retro-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

.giant-text-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

.giant-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    line-height: 0.95;
    text-transform: uppercase;
    color: #FFFFFF;
    letter-spacing: -0.04em;
    user-select: none;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .giant-title {
        font-size: 6.5rem;
    }
}

.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--bg-yellow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Circular Badge & Arrow elements */
.lime-badge {
    position: absolute;
    bottom: -50px;
    right: 8%;
    background: var(--bg-orange);
    color: #FFF;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.1;
    transform: rotate(15deg);
    z-index: 6;
    border: 3px solid var(--text-dark);
    box-shadow: 4px 4px 0px var(--text-dark);
}

.doodle-arrow-left {
    position: absolute;
    bottom: 5%;
    left: 8%;
    z-index: 4;
    color: var(--bg-orange);
    transform: rotate(-10deg);
}

.doodle-arrow-right {
    position: absolute;
    top: 25%;
    right: 8%;
    z-index: 4;
    color: var(--bg-orange);
    transform: rotate(110deg);
}

/* ==========================================================================
   Marquee Tickertape
   ========================================================================== */
.marquee-container {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-bottom: 2px solid var(--text-red);
    overflow: hidden;
    padding: 10px 0;
    display: flex;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 25s linear infinite;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.marquee-content span {
    padding: 0;
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Menu / Info Block (Green & Beige Constructivist)
   ========================================================================== */
.retro-info-section {
    background-color: var(--bg-dark);
    padding: 60px 0;
    border-bottom: 4px solid var(--text-red);
    position: relative;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 992px) {
    .info-grid {
        grid-template-columns: 0.25fr 1.75fr;
        gap: 0px;
    }
}

/* Vertical Banner Column */
.info-vertical-banner {
    background-color: var(--bg-green);
    border: 3px solid var(--text-light);
    color: var(--text-light);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.info-vertical-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 3rem;
    line-height: 1;
    color: var(--text-light);
}

@media (max-width: 991px) {
    .info-vertical-banner {
        padding: 16px;
    }
    .info-vertical-title {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 2.25rem;
    }
}

/* Retro Info Board (Beige Menu Style) */
.info-menu-board {
    background-color: var(--bg-beige);
    border: 3px dashed var(--text-red);
    border-left: none;
    padding: 40px;
    color: var(--text-dark);
}

@media (max-width: 991px) {
    .info-menu-board {
        border-left: 3px dashed var(--text-red);
    }
}

.menu-section-title {
    font-size: 1.5rem;
    color: var(--text-red);
    border-bottom: 2px solid var(--text-red);
    padding-bottom: 8px;
    margin-bottom: 24px;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
}

.menu-item-dotted {
    flex-grow: 1;
    border-bottom: 2.5px dotted var(--text-dark);
    margin: 0 12px;
    position: relative;
    top: -4px;
}

.menu-item-price {
    font-weight: 900;
    color: var(--text-red);
}

/* ==========================================================================
   Merch / Yearbook Catalog (Constructivist Blocks)
   ========================================================================== */
.catalog-section {
    background-color: var(--bg-beige);
    padding: 60px 0 80px;
}

.catalog-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    color: var(--text-red);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 2px 2px 0px var(--text-dark);
}

.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .filter-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.category-list {
    display: flex;
    gap: 0px; /* Flush layout */
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.category-list::-webkit-scrollbar {
    display: none;
}

.category-pill {
    padding: 12px 24px;
    background: var(--bg-beige);
    border: 3px solid var(--text-dark);
    border-right: none;
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 0.875rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.category-pill:last-child {
    border-right: 3px solid var(--text-dark);
}

.category-pill:hover, .category-pill.active {
    background: var(--text-red);
    color: var(--bg-beige);
    border-color: var(--text-dark);
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 360px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 3px solid var(--text-dark);
    border-radius: 0px; /* Sharp corners */
    background-color: var(--bg-beige);
    color: var(--text-dark);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.875rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    background-color: #FFFFFF;
}

.search-box svg {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dark);
    pointer-events: none;
}

/* Constructivist Yearbook Cards */
.book-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns), 1fr);
    gap: 24px; /* Separate cards */
}

.book-card {
    border: 3px solid var(--text-dark); /* Full border to prevent merging */
    border-radius: 16px; /* Rounded corners for separate box appearance */
    background-color: var(--bg-beige);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    min-height: auto;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 8px 8px 0px var(--text-dark);
    z-index: 5;
    border: 3px solid var(--text-dark);
}

/* Color blocks per card (dynamic styling in blade) */
.book-card.theme-green { background-color: var(--bg-green); color: var(--text-light); }
.book-card.theme-beige { background-color: var(--bg-beige); color: var(--text-dark); }
.book-card.theme-blue { background-color: var(--bg-blue); color: var(--text-light); }
.book-card.theme-orange { background-color: var(--bg-orange); color: var(--text-light); }
.book-card.theme-yellow { background-color: var(--bg-yellow); color: var(--text-dark); }

.book-card.theme-green h3, .book-card.theme-green .book-author { color: var(--text-light); }
.book-card.theme-blue h3, .book-card.theme-blue .book-author { color: var(--text-light); }
.book-card.theme-orange h3, .book-card.theme-orange .book-author { color: var(--text-light); }

.book-cover-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 22.5 / 29.5;
    overflow: hidden;
    border-bottom: 3px solid var(--text-dark);
}

.book-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.book-card:hover .book-cover {
    transform: scale(1.03);
}

.book-lock-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-beige);
    border: 2px solid var(--text-dark);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: var(--text-dark);
}

.book-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--bg-orange);
    color: var(--text-light);
    border: 2px solid var(--text-dark);
    padding: 4px 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    z-index: 2;
}

.book-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    justify-content: space-between;
}

.book-title {
    font-size: 1.125rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-dark);
}

.book-author {
    font-size: 0.8125rem;
    color: var(--text-dark);
    opacity: 0.8;
}

.book-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1.5px dashed var(--text-dark);
    font-size: 0.75rem;
}

.book-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 20, 20, 0.8);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

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

.modal-content {
    background: var(--bg-beige);
    border: 4px solid var(--text-dark);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    box-shadow: 12px 12px 0px var(--text-dark);
    position: relative;
    animation: modalIn 0.25s ease-out;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

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

.modal-cover-preview {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border: 3px solid var(--text-dark);
    margin: 0 auto 20px;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.modal-desc {
    font-size: 0.8125rem;
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 24px;
}

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

.form-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
}

.form-control {
    width: 100%;
    background-color: #FFFFFF;
    border: 3px solid var(--text-dark);
    border-radius: 0px;
    padding: 12px 16px;
    color: var(--text-dark);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    background-color: var(--bg-beige);
}

/* Shake Animation on Password Error */
.shake {
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 3px solid var(--text-dark);
    border-radius: 0px;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--bg-orange);
    color: var(--text-light);
    box-shadow: 4px 4px 0px var(--text-dark);
}

.btn-primary:hover {
    background-color: var(--bg-yellow);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px var(--text-dark);
}

.btn-outline {
    background: transparent;
    border: 3px solid var(--text-dark);
    color: var(--text-dark);
}

.btn-outline:hover {
    background: var(--text-dark);
    color: var(--bg-beige);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
}

/* ==========================================================================
   Constructivist Footer (Dark Charcoal Background)
   ========================================================================== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0;
    border-top: 4px solid var(--text-red);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

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

.footer-col h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.875rem;
    color: var(--text-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: rgba(234, 220, 185, 0.7);
}

.footer-bottom {
    text-align: center;
    border-top: 1.5px solid rgba(234, 74, 43, 0.2);
    padding-top: 24px;
    margin-top: 40px;
    font-size: 0.75rem;
    color: rgba(234, 220, 185, 0.4);
}

/* ==========================================================================
   Admin Overrides (Modern Light Dashboard Theme)
   ========================================================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: #F8F7F4;
    font-family: 'Inter', sans-serif;
}

.admin-sidebar {
    width: 90px;
    background: #FFFFFF;
    border-right: 1px solid #E5E4E0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.admin-logo {
    color: #FF5722;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 32px;
    cursor: pointer;
    transition: transform 0.2s;
}

.admin-logo:hover {
    transform: scale(1.08);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #8C8C88;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.admin-nav-item i {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.admin-nav-item:hover {
    background: #F1F0EC;
    color: #1A1A1A;
}

.admin-nav-item.active {
    background: #5E35B1; /* Deep Royal Purple */
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(94, 53, 177, 0.35);
    border: none;
}

.admin-main {
    margin-left: 90px;
    flex-grow: 1;
    background-color: #F8F7F4;
    min-height: 100vh;
}

/* Base Admin Container for non-dashboard subpages */
.admin-container {
    padding: 40px;
}

/* Modern Dashboard Two-Column Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.dashboard-left {
    flex: 1;
    padding: 40px;
    max-width: calc(100% - 360px);
}

.dashboard-right {
    width: 360px;
    background-color: #F1F0EC;
    border-left: 1px solid #E5E4E0;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (max-width: 1024px) {
    .dashboard-wrapper {
        flex-direction: column;
    }
    .dashboard-left {
        max-width: 100%;
        padding: 24px;
    }
    .dashboard-right {
        width: 100%;
        border-left: none;
        border-top: 1px solid #E5E4E0;
        padding: 24px;
    }
}

/* Clean Category/Subject Pill styling */
.subject-list {
    display: flex;
    gap: 12px;
    margin: 24px 0 32px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.subject-list::-webkit-scrollbar {
    display: none;
}

.subject-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #FFFFFF;
    border-radius: 12px;
    color: #1A1A1A;
    font-weight: 500;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid #EBEAE6;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: capitalize;
}

.subject-pill i {
    width: 16px;
    height: 16px;
}

.subject-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.subject-pill.active {
    background: #FFFFFF;
    border-color: #FF5722;
}

.subject-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

/* Clean Grid & Card styles */
.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.dashboard-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #EBEAE6;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.card-header-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #8C8C88;
}

.time-tag {
    background: #F1F0EC;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    color: #1A1A1A;
}

.card-image-bg {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #EADCB9;
}

.card-image-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-subject-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    align-self: flex-start;
    text-transform: uppercase;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 8px 0 0;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: normal;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    margin-left: -8px;
    object-fit: cover;
}

.avatar-circle:first-child {
    margin-left: 0;
}

.avatar-more {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #141414;
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    margin-left: -8px;
}

.pill-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid #EBEAE6;
    background: #FFFFFF;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1A1A1A;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pill-btn:hover {
    background: #1A1A1A;
    color: #FFFFFF;
    border-color: #1A1A1A;
}

/* In Progress list layout styles */
.progress-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.progress-item {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #EBEAE6;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.2s ease;
}

.progress-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.item-left-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.item-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.item-icon-wrapper i {
    width: 20px;
    height: 20px;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    align-self: flex-start;
    text-transform: uppercase;
}

.item-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1A1A1A;
}

.item-meta-group {
    display: flex;
    align-items: center;
    gap: 32px;
}

.meta-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.6875rem;
    color: #8C8C88;
    text-transform: uppercase;
    font-weight: 500;
}

.meta-value {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1A1A1A;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-value i {
    width: 14px;
    height: 14px;
}

/* Circular/Semi-circular progress indicator */
.progress-ring-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Right Stats Sidebar Styles */
.right-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.right-header-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #EBEAE6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A1A1A;
    cursor: pointer;
    transition: all 0.2s ease;
}

.right-header-btn:hover {
    background: #F1F0EC;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.profile-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1A1A1A;
    text-transform: none;
    letter-spacing: normal;
}

.stats-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-mini-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
}

.stat-mini-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.stat-mini-value {
    font-size: 0.9375rem;
    font-weight: 900;
    color: #1A1A1A;
}

.stat-mini-label {
    font-size: 0.65rem;
    color: #8C8C88;
    font-weight: 500;
}

.activity-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
}

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

.activity-title {
    font-size: 0.8125rem;
    color: #8C8C88;
    font-weight: 600;
}

.activity-hours {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #1A1A1A;
    margin-top: 4px;
}

.activity-badge {
    background: #FFF8E1;
    color: #FFB300;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
}

/* Donut chart widget panel */
.donut-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.donut-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.donut-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #8C8C88;
}

.donut-tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.donut-chart-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
}

.donut-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-center-label {
    font-size: 0.65rem;
    color: #8C8C88;
    text-transform: uppercase;
    font-weight: 600;
}

.donut-center-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #1A1A1A;
}

.bottom-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bottom-info-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
}

.bottom-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bottom-info-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-info-icon i {
    width: 16px;
    height: 16px;
}

.bottom-info-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: #1A1A1A;
}

.bottom-info-lbl {
    font-size: 0.75rem;
    color: #8C8C88;
    font-weight: 500;
}

.bottom-info-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: #FF5722;
    text-decoration: none;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bottom-info-link:hover {
    color: #1A1A1A;
}

/* Modern styling for the tables/lists on subpages */
.table-container {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #EBEAE6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.01);
    padding: 24px;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 8px;
}

.admin-table th {
    background: transparent;
    border-bottom: 1px solid #EBEAE6;
    color: #8C8C88;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 16px;
}

.admin-table td {
    background: #FFFFFF;
    border: none;
    border-top: 1px solid #F1F0EC;
    border-bottom: 1px solid #F1F0EC;
    padding: 16px;
    font-size: 0.875rem;
}

.admin-table tr td:first-child {
    border-left: 1px solid #F1F0EC;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.admin-table tr td:last-child {
    border-right: 1px solid #F1F0EC;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.admin-table tr:hover td {
    background: #FAF9F6;
}

.badge {
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: #E8F5E9;
    color: #2E7D32;
}

.badge-warning {
    background: #FFF3E0;
    color: #EF6C00;
}



/* Modern subpages scoped overrides inside .admin-layout */
.admin-layout .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid #EBEAE6;
    background: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: none;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.2s ease;
    letter-spacing: normal;
    text-decoration: none;
}

.admin-layout .btn-primary {
    background: #FF5722 !important;
    border-color: #FF5722 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.2) !important;
}

.admin-layout .btn-primary:hover {
    background: #c53d23 !important;
    border-color: #c53d23 !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(255, 87, 34, 0.3) !important;
}

.admin-layout .btn-outline {
    background: transparent !important;
    border: 1px solid #E5E4E0 !important;
    color: #1A1A1A !important;
}

.admin-layout .btn-outline:hover {
    background: #F1F0EC !important;
    color: #1A1A1A !important;
    border-color: #E5E4E0 !important;
}

.admin-layout .btn-sm {
    padding: 8px 16px;
    font-size: 0.75rem;
}

.admin-layout .form-card {
    background: #FFFFFF;
    border: 1px solid #EBEAE6;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.01);
}

.admin-layout .grid-form {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

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

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

.admin-layout .form-group label,
.admin-layout label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8C8C88;
    margin-bottom: 8px;
    display: block;
}

.admin-layout .form-control {
    width: 100%;
    background-color: #FFFFFF;
    border: 1px solid #E5E4E0;
    border-radius: 12px;
    padding: 12px 16px;
    color: #1A1A1A;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.admin-layout .form-control:focus {
    outline: none;
    border-color: #FF5722;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
    background-color: #FFFFFF;
}

.admin-layout .upload-dropzone {
    border: 2px dashed #E5E4E0;
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    background: #FAF9F6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-layout .upload-dropzone:hover {
    border-color: #FF5722;
    background: #FFF8E1;
}

.admin-layout .preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.admin-layout .preview-item {
    position: relative;
    width: 100px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #EBEAE6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.admin-layout .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-layout .admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-layout .admin-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #1A1A1A;
}


/* ==========================================================================
   Flipbook Reader Page Layout
   ========================================================================== */
.reader-body {
    background: radial-gradient(circle, #f5f3f0 0%, #d2cfc9 100%);
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.reader-nav {
    height: 56px;
    background: rgba(5, 5, 8, 0.85);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    backdrop-filter: blur(8px);
}

.reader-nav-title {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 500;
}

.flipbook-viewport {
    height: calc(100vh - 112px);
    margin-top: 56px;
}

.page-indicator {
    color: #FFFFFF;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.toolbar-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #FFFFFF;
}

.toolbar-btn:hover {
    background: rgba(255,255,255,0.15);
    color: var(--bg-orange);
}

/* ==========================================================================
   3D Book Cover System
   ========================================================================== */
.book-card-3d {
    position: relative;
    width: 160px;
    height: 230px;
    transform-style: preserve-3d;
    transform: rotateY(-12deg) translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 3px 8px 8px 3px;
    box-shadow: 
        -1px 0px 1px rgba(0,0,0,0.1),
        2px 2px 3px rgba(0,0,0,0.08),
        8px 12px 20px rgba(0,0,0,0.15),
        12px 18px 32px rgba(0,0,0,0.1);
    cursor: pointer;
    background: #F1F0EC;
}

.book-card-3d:hover {
    transform: rotateY(-4deg) translateY(-8px) translateZ(10px);
    box-shadow: 
        -1px 0px 1px rgba(0,0,0,0.1),
        3px 3px 5px rgba(0,0,0,0.06),
        12px 18px 28px rgba(0,0,0,0.2),
        18px 28px 45px rgba(0,0,0,0.15);
}

.book-cover-3d-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px 8px 8px 3px;
    display: block;
}

.book-card-3d::before {
    content: ' ';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(0,0,0,0.25) 0%, 
        rgba(255,255,255,0.1) 30%, 
        rgba(0,0,0,0.05) 50%, 
        rgba(0,0,0,0.15) 100%
    );
    z-index: 2;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.book-card-3d::after {
    content: ' ';
    position: absolute;
    top: 2px;
    right: -2px;
    width: 4px;
    height: calc(100% - 4px);
    background: linear-gradient(to right, #e0e0e0, #ffffff 60%, #d4d4d4);
    border-radius: 0 4px 4px 0;
    z-index: -1;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Small 3D Book Cover for tables and lists */
.book-card-3d-sm {
    position: relative;
    width: 50px;
    height: 72px;
    transform-style: preserve-3d;
    transform: rotateY(-12deg) translateZ(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 1px 3px 3px 1px;
    box-shadow: 
        -0.5px 0px 0.5px rgba(0,0,0,0.1),
        1px 1px 2px rgba(0,0,0,0.08),
        3px 4px 6px rgba(0,0,0,0.15);
    background: #F1F0EC;
    display: inline-block;
    vertical-align: middle;
}

.book-card-3d-sm:hover {
    transform: rotateY(-4deg) translateY(-2px) translateZ(3px);
    box-shadow: 
        -0.5px 0px 0.5px rgba(0,0,0,0.1),
        1.5px 1.5px 3px rgba(0,0,0,0.06),
        4px 6px 10px rgba(0,0,0,0.2);
}

.book-cover-3d-img-sm {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1px 3px 3px 1px;
    display: block;
}

.book-card-3d-sm::before {
    content: ' ';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(0,0,0,0.25) 0%, 
        rgba(255,255,255,0.1) 30%, 
        rgba(0,0,0,0.05) 50%, 
        rgba(0,0,0,0.15) 100%
    );
    z-index: 2;
    border-top-left-radius: 1px;
    border-bottom-left-radius: 1px;
}

.book-card-3d-sm::after {
    content: ' ';
    position: absolute;
    top: 1px;
    right: -1px;
    width: 2px;
    height: calc(100% - 2px);
    background: linear-gradient(to right, #e0e0e0, #ffffff 60%, #d4d4d4);
    border-radius: 0 2px 2px 0;
    z-index: -1;
}

/* Container and Item wrappers for 3D Books Showcase */
.books-showcase-container {
    display: flex;
    justify-content: flex-start;
    gap: 45px;
    flex-wrap: wrap;
    padding: 20px 10px;
    align-items: flex-end;
}

.book-item-3d {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 170px;
    perspective: 1000px;
}

.book-info-3d {
    margin-top: 20px;
    width: 100%;
}

.book-title-3d {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
    line-height: 1.3;
}

.book-author-3d {
    font-family: 'Outfit', sans-serif;
    font-style: italic;
    font-size: 0.82rem;
    color: #7A7975;
    margin-top: 4px;
    margin-bottom: 0;
}
