/* ============================================
   Church Digital Library - Custom Styles
   Color Palette: White, Royal Blue, Gold, Light Gray
   ============================================ */

:root {
    --primary-blue: #1e3a8a;
    --dark-blue: #172554;
    --light-blue: #3b82f6;
    --gold: #d4af37;
    --gold-light: #f0e68c;
    --gold-dark: #b8860b;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --medium-gray: #e2e8f0;
    --dark-gray: #64748b;
    --text-dark: #1e293b;
    --text-light: #94a3b8;
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --info: #0891b2;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-lg);
    z-index: 1030;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold) !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    color: var(--gold);
    font-size: 1.75rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
    margin: 0 0.25rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold) !important;
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.search-form .search-input {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 25px 0 0 25px;
    padding: 0.375rem 1rem;
}

.search-form .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-form .search-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--gold);
    color: white;
    box-shadow: none;
}

.search-form .btn-gold {
    background: var(--gold);
    border: none;
    color: var(--dark-blue);
    border-radius: 0 25px 25px 0;
    padding: 0.375rem 1rem;
    font-weight: 600;
}

.search-form .btn-gold:hover {
    background: var(--gold-dark);
}

/* Notification Dropdown */
.notification-dropdown {
    min-width: 320px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.notification-item.unread {
    background: rgba(30, 58, 138, 0.05);
    border-left-color: var(--gold);
}

.notification-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    color: var(--dark-blue);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
    font-weight: 600;
    border-radius: 25px;
    transition: var(--transition);
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--dark-blue);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    padding-top: 76px;
    min-height: calc(100vh - 300px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 50%, #0f172a 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(212,175,55,0.1)" stroke-width="0.5"/></svg>');
    background-size: 100px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border: none;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.card-header i {
    color: var(--gold);
    margin-right: 0.5rem;
}

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

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--dark-gray);
    font-weight: 500;
}

/* Material Card */
.material-card {
    position: relative;
    overflow: hidden;
}

.material-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.material-card:hover .card-img-top {
    transform: scale(1.05);
}

.material-card .card-body {
    padding: 1.25rem;
}

.material-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.material-card .card-author {
    font-size: 0.875rem;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
}

.material-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

.material-card .file-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.material-card .favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.material-card .favorite-btn:hover,
.material-card .favorite-btn.active {
    background: var(--danger);
    color: white;
}

.material-card .favorite-btn.active i {
    color: white;
}

/* Category Card */
.category-card {
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    color: inherit;
}

.category-card .category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    color: white;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-card .category-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.category-card .category-count {
    font-size: 0.875rem;
    color: var(--dark-gray);
}

/* ============================================
   FEATURED SECTIONS
   ============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
}

/* ============================================
   ANNOUNCEMENTS
   ============================================ */
.announcement-card {
    border-left: 4px solid var(--gold);
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.announcement-card.urgent {
    border-left-color: var(--danger);
    background: rgba(220, 38, 38, 0.05);
}

.announcement-card.high {
    border-left-color: var(--warning);
    background: rgba(217, 119, 6, 0.05);
}

.announcement-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.announcement-text {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.announcement-time {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-control {
    border-radius: 10px;
    border: 1px solid var(--medium-gray);
    padding: 0.625rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-floating > .form-control {
    border-radius: 10px;
}

.input-group .form-control {
    border-radius: 10px 0 0 10px;
}

.input-group .btn {
    border-radius: 0 10px 10px 0;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 2rem 0;
}

.auth-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

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

.auth-logo i {
    font-size: 3rem;
    color: var(--gold);
}

.auth-logo h3 {
    color: var(--primary-blue);
    margin-top: 0.5rem;
    font-size: 1.5rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--dark-gray);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--medium-gray);
    margin: 0 1rem;
}

/* ============================================
   READER / PLAYER
   ============================================ */
.reader-container {
    background: #1a1a2e;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.reader-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reader-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.reader-controls {
    display: flex;
    gap: 0.5rem;
}

.reader-controls .btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    transition: var(--transition);
}

.reader-controls .btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.reader-body {
    padding: 0;
    min-height: 500px;
}

.reader-body iframe,
.reader-body video,
.reader-body audio {
    width: 100%;
    min-height: 500px;
    border: none;
}

/* Audio Player Custom */
.audio-player-custom {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    color: white;
    text-align: center;
}

.audio-player-custom .album-art {
    width: 200px;
    height: 200px;
    border-radius: var(--border-radius);
    object-fit: cover;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 3px solid var(--gold);
}

.audio-player-custom .track-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.audio-player-custom .track-author {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

/* ============================================
   PROFILE
   ============================================ */
.profile-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 3rem 0;
    color: white;
    text-align: center;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.profile-role {
    display: inline-block;
    background: var(--gold);
    color: var(--dark-blue);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ============================================
   ADMIN DASHBOARD
   ============================================ */
.admin-sidebar {
    background: linear-gradient(180deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    min-height: 100vh;
    padding: 1.5rem 0;
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    z-index: 1040;
    overflow-y: auto;
}

.admin-sidebar .sidebar-brand {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold) !important;
    border-left: 3px solid var(--gold);
}

.admin-sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.admin-main {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
    background: var(--light-gray);
}

.admin-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.admin-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-card .card-title i {
    color: var(--gold);
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* ============================================
   TABLES
   ============================================ */
.table-custom {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-custom thead {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
}

.table-custom thead th {
    font-weight: 600;
    padding: 1rem;
    border: none;
    font-size: 0.875rem;
}

.table-custom tbody td {
    padding: 1rem;
    vertical-align: middle;
    font-size: 0.9rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--medium-gray);
}

.table-custom tbody tr:hover {
    background: rgba(30, 58, 138, 0.03);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
}

.status-pending {
    background: rgba(217, 119, 6, 0.1);
    color: var(--warning);
}

.status-suspended {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-custom .page-link {
    border: none;
    color: var(--primary-blue);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin: 0 0.25rem;
    transition: var(--transition);
}

.pagination-custom .page-link:hover {
    background: var(--primary-blue);
    color: white;
}

.pagination-custom .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #0f172a 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-brand {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gold);
    color: var(--dark-blue);
}

.footer h6 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 0.5rem;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--dark-blue);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.back-to-top.show {
    display: flex;
}

/* ============================================
   LOADING & ANIMATIONS
   ============================================ */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

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

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.1);
        padding: 1rem;
        border-radius: var(--border-radius);
        margin-top: 0.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .admin-sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }

    .admin-main {
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .auth-card {
        padding: 1.5rem;
        margin: 1rem;
    }

    .stat-card {
        margin-bottom: 1rem;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}

/* ============================================
   TOOLTIP & POPOVER
   ============================================ */
.custom-tooltip {
    --bs-tooltip-bg: var(--primary-blue);
    --bs-tooltip-color: white;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
}

.alert-primary {
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary-blue);
}

.alert-success {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
}

.alert-danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.alert-warning {
    background: rgba(217, 119, 6, 0.1);
    color: var(--warning);
}

/* ============================================
   MODAL
   ============================================ */
.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    border: none;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ============================================
   BADGE
   ============================================ */
.badge-custom {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-custom {
    height: 8px;
    border-radius: 4px;
    background: var(--medium-gray);
    overflow: hidden;
}

.progress-custom .progress-bar {
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--dark-gray);
    font-size: 0.9rem;
}
