/**
 * Unified Stylesheet
 * FictionPortal - Complete Site Styles
 * Color Theme: Olive Green, Deep Purple, Light Sage, Charcoal, Cream, Gold
 */

/* ============================================
   GOOGLE FONTS & RESET
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

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

/* ============================================
   COLOR VARIABLES
   ============================================ */

:root {
    /* Main Color Palette */
    --olive-green: #4a5d28;
    --deep-purple: #23193f;
    --light-sage: #e4edd6;
    --charcoal: #212121;
    --cream: #fffbf0;
    --gold: #e0ca90;
    
    /* Semantic Colors */
    --primary-color: #4a5d28;
    --primary-dark: #23193f;
    --primary-light: #e4edd6;
    --secondary-color: #e0ca90;
    --error-color: #8b2635;
    --success-color: #4a5d28;
    --warning-color: #d4a574;
    --info-color: #4a5d28;
    --background: #e0ca90;
    --surface: #e4edd6;
    --text-primary: #212121;
    --text-secondary: #4a5d28;
    --border-color: #e0ca90;
    --shadow: 0 2px 8px rgba(35, 25, 63, 0.1);
    --shadow-lg: 0 4px 16px rgba(35, 25, 63, 0.15);
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
	font-family: "Trebuchet MS", "Helvetica Neue", Helvetica, Arial, 'Roboto', sans-serif ;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-primary);
	background-color: var(--background);
}

/* Material Symbols Settings */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    vertical-align: middle;
    user-select: none;
    color: inherit;
}

/* ============================================
   CONTAINERS
   ============================================ */

.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
    /*background-color: var(--surface);*/
}

.containerh {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

.container-small {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav a:hover {
    background-color: var(--primary-dark);
}

/* ============================================
   MENU SYSTEM
   ============================================ */

/* Desktop Menu */
.desktop-menu {
    background: var(--deep-purple);
    box-shadow: 0 2px 10px rgba(35, 25, 63, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menu-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

/* Main Menu */
.menu-main {
    display: flex;
    list-style: none;
    align-items: center;
    flex: 1;
}

.menu-main > .menu-item {
    position: relative;
}

.menu-main > .menu-item > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    color: var(--cream);
    font-weight: 600;
    position: relative;
    text-decoration: none;
}

.menu-main > .menu-item > a:hover {
    color: var(--gold);
    background: rgba(224, 202, 144, 0.1);
}

.menu-main > .menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gold);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.menu-main > .menu-item:hover > a::after {
    width: 100%;
}

.menu-icon {
    font-size: 20px;
}

.submenu-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* Submenu Styles */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--cream);
    box-shadow: 0 4px 20px rgba(35, 25, 63, 0.2);
    border-radius: 8px;
    border: 2px solid var(--gold);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.menu-item:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu .menu-item {
    position: relative;
}

.submenu .menu-item > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--charcoal);
    font-weight: 500;
    border-bottom: 1px solid var(--light-sage);
    text-decoration: none;
}

.submenu .menu-item:last-child > a {
    border-bottom: none;
}

.submenu .menu-item > a:hover {
    background: var(--light-sage);
    color: var(--olive-green);
}

/* Nested Submenu */
.submenu .submenu {
    left: 100%;
    top: 0;
    margin-left: 5px;
}

.submenu .has-submenu > a .submenu-arrow {
    margin-left: auto;
    transform: rotate(-90deg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--olive-green);
    color: var(--cream);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(74, 93, 40, 0.3);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #5c7433;
    transform: scale(1.05);
}

.mobile-menu-toggle .material-symbols-outlined {
    font-size: 28px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--cream);
    box-shadow: 2px 0 20px rgba(35, 25, 63, 0.3);
    z-index: 2000;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--deep-purple);
    color: var(--cream);
}

.mobile-menu-header .menu-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    border: none;
    margin: 0;
    padding: 0;
    color: var(--gold);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.mobile-menu-close:hover {
    color: var(--cream);
}

.mobile-menu-close .material-symbols-outlined {
    font-size: 28px;
}

/* Accordion Menu */
.mobile-menu-content {
    padding: 10px 0;
}

.accordion-item {
    border-bottom: 1px solid var(--light-sage);
}

.accordion-header,
.accordion-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--charcoal);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.accordion-header:hover,
.accordion-link:hover {
    background: var(--light-sage);
    color: var(--olive-green);
}

.accordion-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: var(--olive-green);
}

.accordion-header.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--light-sage);
}

.accordion-content.active {
    max-height: 1000px;
}

.accordion-content .accordion-item {
    border-bottom: 1px solid var(--gold);
}

.accordion-content .accordion-header,
.accordion-content .accordion-link {
    padding-left: 40px;
}

.level-2 .accordion-header,
.level-2 .accordion-link {
    padding-left: 60px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main {
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background-color: var(--cream);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 10px;
}

.card-header {
    border-bottom: 2px solid var(--border-color);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.card-body {
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-label.required::after {
    content: ' *';
    color: var(--error-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--cream);
    color: var(--charcoal);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 93, 40, 0.1);
}

.form-control.error {
    border-color: var(--error-color);
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-error {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--error-color);
}

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

.form-check-input {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--olive-green);
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--olive-green);
    color: var(--cream);
}

.btn-primary:hover:not(:disabled) {
    background-color: #5c7433;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 93, 40, 0.3);
}

.btn-secondary {
    background-color: var(--gold);
    color: var(--deep-purple);
}

.btn-secondary:hover:not(:disabled) {
    background-color: #d4be84;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 202, 144, 0.3);
}

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

.btn-success:hover:not(:disabled) {
    background-color: #5c7433;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 93, 40, 0.3);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

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

.btn-link {
    background: none;
    color: var(--primary-color);
    padding: 0;
    text-decoration: underline;
    text-transform: none;
    letter-spacing: normal;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.813rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-small .material-symbols-outlined {
    font-size: 16px;
}

.btn-edit {
    background: var(--olive-green);
    color: var(--cream);
}

.btn-edit:hover {
    background: #5c7433;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(74, 93, 40, 0.3);
}

.btn-delete {
    background: var(--deep-purple);
    color: var(--cream);
}

.btn-delete:hover {
    background: #2f2350;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(35, 25, 63, 0.3);
}

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    border: 2px solid;
}

.alert.show {
    display: flex;
}

.alert-success {
    background-color: var(--light-sage);
    color: var(--olive-green);
    border-color: var(--olive-green);
}

.alert-error {
    background-color: #f5e6e8;
    color: var(--deep-purple);
    border-color: var(--deep-purple);
}

.alert-warning {
    background-color: #fff3e0;
    color: #e65100;
    border-color: var(--warning-color);
}

.alert-info {
    background-color: var(--light-sage);
    color: var(--olive-green);
    border-color: var(--olive-green);
}

.alert .material-symbols-outlined {
    font-size: 24px;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(35, 25, 63, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--olive-green);
    font-size: 1.25rem;
    font-weight: 600;
}

/* ============================================
   DASHBOARD
   ============================================ */

.dashboard-header {
    background-color: var(--cream);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.dashboard-title {
    color: var(--deep-purple);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: var(--olive-green);
    font-size: 1rem;
    font-weight: 500;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 100%;
}

@media (min-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.dashboard-card {
    background-color: var(--background);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.dashboard-card-title {
    font-size: 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-card-content {
    color: var(--text-secondary);
}

/* ============================================
   MENU MANAGER
   ============================================ */

.menu-manager {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--light-sage);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(35, 25, 63, 0.1);
    text-align: center;
    border: 2px solid var(--gold);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 25, 63, 0.15);
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--olive-green);
    line-height: 1;
}

.stat-card .stat-label {
    color: var(--deep-purple);
    margin-top: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Menu Table */
.menu-table {
    background: var(--cream);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(35, 25, 63, 0.1);
    overflow: hidden;
    border: 2px solid var(--light-sage);
}

.menu-table table {
    width: 100%;
    border-collapse: collapse;
}

.menu-table th,
.menu-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--light-sage);
}

.menu-table th {
    background: var(--deep-purple);
    color: var(--cream);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-table tbody tr {
    background: var(--cream);
    transition: background 0.2s ease;
}

.menu-table tbody tr:hover {
    background: var(--light-sage);
}

.menu-table td {
    color: var(--charcoal);
    font-weight: 500;
}

.menu-actions {
    display: flex;
    gap: 8px;
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status-active {
    background: var(--olive-green);
    color: var(--cream);
}

.status-inactive {
    background: var(--gold);
    color: var(--deep-purple);
}

.indent-level-1 { padding-left: 30px; }
.indent-level-2 { padding-left: 60px; }
.indent-level-3 { padding-left: 90px; }

/* ============================================
   MODAL
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 25, 63, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--cream);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(35, 25, 63, 0.3);
    border: 3px solid var(--gold);
}

.modal-header {
    padding: 24px;
    border-bottom: 2px solid var(--light-sage);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--deep-purple);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--cream);
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gold);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(224, 202, 144, 0.2);
    color: var(--cream);
}

.modal-body {
    padding: 24px;
    background: var(--cream);
}

.modal-footer {
    padding: 20px 24px;
    border-top: 2px solid var(--light-sage);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: var(--light-sage);
}

/* ============================================
   MEMBERS DIRECTORY
   ============================================ */

/* Alphabet Navigation */
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.5rem;
    background-color: var(--light-sage);
    border-radius: 12px;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(35, 25, 63, 0.1);
    border: 2px solid var(--gold);
}

.alphabet-nav a {
    display: inline-block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--charcoal);
    border: 2px solid var(--gold);
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
    font-weight: 600;
    background-color: var(--cream);
}

.alphabet-nav a:hover {
    background-color: var(--olive-green);
    color: var(--cream);
    border-color: var(--olive-green);
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(74, 93, 40, 0.3);
}

.alphabet-nav a.active {
    background-color: var(--deep-purple);
    color: var(--cream);
    border-color: var(--deep-purple);
    box-shadow: 0 2px 6px rgba(35, 25, 63, 0.3);
}

.alphabet-nav a.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    background-color: var(--light-sage);
}

/* Search Box */
.search-box {
    display: flex;
    gap: 0.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--cream);
    color: var(--charcoal);
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--olive-green);
    box-shadow: 0 0 0 3px rgba(74, 93, 40, 0.1);
}

.search-box button {
    padding: 12px 24px;
    background-color: var(--olive-green);
    color: var(--cream);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background-color: #5c7433;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 93, 40, 0.3);
}

/* Member Grid */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.5rem;
}

.member-card {
    background-color: var(--cream);
    padding: 0.5rem;
    border-radius: 12px;
    border: 2px solid var(--gold);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(35, 25, 63, 0.1);
}

.member-card:hover {
    box-shadow: 0 4px 16px rgba(35, 25, 63, 0.15);
    transform: translateY(-4px);
    border-color: var(--olive-green);
}

/* Member Avatar */
.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--olive-green), var(--deep-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    border: 3px solid var(--gold);
    box-shadow: 0 2px 8px rgba(35, 25, 63, 0.2);
}

/* Member Info */
.member-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--deep-purple);
    text-align: center;
}

.member-info {
    font-size: 0.875rem;
    color: var(--olive-green);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-align: center;
}

.member-info strong {
    color: var(--charcoal);
}

/* Member Badges */
.member-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    justify-content: center;
}

.member-badges .badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-badges .badge-admin {
    background-color: var(--deep-purple);
    color: var(--cream);
}

.member-badges .badge-moderator {
    background-color: var(--olive-green);
    color: var(--cream);
}

.member-badges .badge-user {
    background-color: var(--gold);
    color: var(--deep-purple);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--gold);
    border-radius: 8px;
    text-decoration: none;
    color: var(--charcoal);
    background-color: var(--cream);
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.pagination a:hover {
    background-color: var(--olive-green);
    color: var(--cream);
    border-color: var(--olive-green);
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(74, 93, 40, 0.3);
}

.pagination .current {
    background-color: var(--deep-purple);
    color: var(--cream);
    border-color: var(--deep-purple);
    box-shadow: 0 2px 6px rgba(35, 25, 63, 0.3);
}

.pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Stats Bar */
.stats-bar {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--light-sage), var(--cream));
    border-radius: 12px;
    border: 2px solid var(--gold);
    box-shadow: 0 2px 8px rgba(35, 25, 63, 0.1);
}

.stats-bar h2 {
    margin: 0;
    color: var(--deep-purple);
    font-size: 2rem;
    font-weight: 700;
}

.stats-bar p {
    margin: 0.5rem 0 0;
    color: var(--olive-green);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Member Count Badge */
.member-count {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--olive-green);
    color: var(--cream);
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 0.5rem;
}

/* Empty State */
.no-members {
    text-align: center;
    padding: 3rem;
    background-color: var(--light-sage);
    border-radius: 12px;
    border: 2px solid var(--gold);
}

.no-members h3 {
    color: var(--deep-purple);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-members p {
    color: var(--olive-green);
    font-weight: 500;
}

/* ============================================
   USER INFO
   ============================================ */

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--surface);
    border-radius: 8px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.user-details h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.user-details p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ============================================
   TABLE
   ============================================ */

.table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--background);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-weight: 500;
    color: var(--text-secondary);
    background-color: var(--surface);
}

.table tr:hover {
    background-color: var(--surface);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 12px;
}

.badge-admin {
    background-color: var(--deep-purple);
    color: var(--cream);
}

.badge-moderator {
    background-color: var(--olive-green);
    color: var(--cream);
}

.badge-user {
    background-color: var(--gold);
    color: var(--deep-purple);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--background);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
    color: var(--text-secondary);
}

/* Footer Banner Zone (Above Footer Menu) */
.footer-banner-zone {
    background: var(--gold);
    padding: 1rem 0;
    margin-top: 4rem;
}

.footer-banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-banner-container #ad-zone-core_archive_footer {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Site Footer with Menu */
.site-footer {
    background: var(--deep-purple);
    color: var(--gold);
    padding: 2rem 0;
    border-top: 3px solid var(--gold);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-menu {
    margin-bottom: 1.5rem;
}

.footer-menu-list {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.footer-menu-item {
    margin: 0;
}

.footer-menu-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.footer-menu-link:hover {
    color: var(--cream);
    transform: translateY(-2px);
}

.footer-menu-icon {
    font-size: 18px;
}

.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(224, 202, 144, 0.3);
    color: var(--gold);
    font-size: 0.9rem;
}

.footer-copyright p {
    margin: 0;
}

@media (max-width: 768px) {
    .footer-menu-list {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-menu-link {
        justify-content: center;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.text-right {
    text-align: right;
}

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

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

.hidden {
    display: none !important;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    accent-color: var(--olive-green);
}

.checkbox-group label {
    margin: 0 !important;
    text-transform: none !important;
    font-weight: 600 !important;
    color: var(--charcoal) !important;
}

/* ============================================
   NEWS ARTICLE STYLES (Homepage)
   ============================================ */

.news-article {
    background: var(--cream);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(35, 25, 63, 0.1);
    transition: all 0.3s ease;
}

.news-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(35, 25, 63, 0.15);
    border-color: var(--olive-green);
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-purple);
    margin: 0 0 0.5rem 0;
}

.news-title a {
    color: var(--deep-purple);
    text-decoration: none;
}

.news-title a:hover {
    color: var(--olive-green);
    text-decoration: underline;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--olive-green);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-date .material-symbols-outlined {
    font-size: 18px;
}

.news-summary {
    color: var(--charcoal);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--olive-green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: var(--deep-purple);
    gap: 0.75rem;
}

.news-link .material-symbols-outlined {
    font-size: 20px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-direction: column;
        width: 100%;
    }
    
    .nav a {
        width: 100%;
        text-align: center;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 1rem;
    }
    
    .menu-manager {
        padding: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-table {
        overflow-x: auto;
    }
    
    .menu-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .alphabet-nav {
        padding: 1rem;
        gap: 0.25rem;
    }
    
    .alphabet-nav a {
        padding: 0.5rem 0.75rem;
        min-width: 38px;
        font-size: 0.875rem;
    }
    
    .member-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box button {
        width: 100%;
    }
    
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
        left: -100%;
    }
    
    .mobile-menu.active {
        left: 0;
    }
    
    .member-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .member-name {
        font-size: 1.1rem;
    }
    
    .stats-bar h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   PROFILE PAGE STYLES
   ============================================ */

.profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.profile-main-column {
    min-width: 0;
}

.profile-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid var(--gold);
    flex-wrap: wrap;
}

.profile-tab {
    padding: 0.75rem 1rem;
    background: var(--light-sage);
    border: 2px solid var(--gold);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-weight: 600;
    color: var(--deep-purple);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
}

.profile-tab .material-symbols-outlined {
    font-size: 20px;
}

.profile-tab:hover {
    background: var(--olive-green);
    color: var(--cream);
}

.profile-tab.active {
    background: var(--cream);
    color: var(--deep-purple);
    border-bottom: 2px solid var(--cream);
    margin-bottom: -2px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.reca-list {
    display: grid;
    gap: 1rem;
}

.reca-item {
    background: var(--light-sage);
    border: 2px solid var(--gold);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.reca-item:hover {
    box-shadow: 0 4px 12px rgba(35, 25, 63, 0.15);
    transform: translateY(-2px);
}

.reca-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: var(--olive-green);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.reca-content {
    flex: 1;
}

.reca-name {
    font-weight: 700;
    color: var(--deep-purple);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.reca-name a {
    color: var(--deep-purple);
    text-decoration: none;
}

.reca-name a:hover {
    color: var(--olive-green);
}

.reca-notes {
    color: var(--charcoal);
    line-height: 1.6;
    font-style: italic;
}

.add-reca-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--olive-green);
    color: var(--cream);
    border: none;
    box-shadow: 0 4px 12px rgba(74, 93, 40, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

.add-reca-btn:hover {
    background: var(--deep-purple);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(35, 25, 63, 0.4);
}

.add-reca-btn .material-symbols-outlined {
    font-size: 32px;
}

.social-link-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--light-sage);
    border: 2px solid var(--gold);
    border-radius: 8px;
    text-decoration: none;
    color: var(--deep-purple);
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link-card:hover {
    background: var(--cream);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 25, 63, 0.15);
    border-color: var(--olive-green);
}

.social-link-card .material-symbols-outlined {
    font-size: 24px;
}

.im-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--light-sage);
    border: 2px solid var(--gold);
    border-radius: 8px;
    font-size: 0.95rem;
}

.im-contact .material-symbols-outlined {
    font-size: 22px;
    flex-shrink: 0;
}

.im-contact strong {
    color: var(--deep-purple);
    min-width: 80px;
}

.im-contact span:last-child {
    color: var(--charcoal);
    word-break: break-all;
}

.recommendations-container,
.current-reading-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommendation-zone,
.reading-zone {
    background: var(--light-sage);
    border: 2px solid var(--gold);
    border-radius: 8px;
    overflow: hidden;
}

.zone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--cream);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.zone-header:hover {
    background: var(--light-sage);
}

.zone-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--deep-purple);
    font-size: 1.1rem;
}

.zone-title .material-symbols-outlined {
    color: var(--olive-green);
    font-size: 24px;
}

.zone-count {
    background: var(--gold);
    color: var(--deep-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.zone-arrow {
    color: var(--olive-green);
    transition: transform 0.3s ease;
    font-size: 24px;
}

.zone-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.zone-content.active {
    overflow: visible;
}

.recommendation-item,
.reading-item {
    padding: 1.5rem;
    border-top: 1px solid var(--gold);
    background: var(--cream);
}

.recommendation-item:first-child,
.reading-item:first-child {
    border-top: none;
}

.recommendation-content,
.reading-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recommendation-title,
.reading-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.recommendation-title a,
.reading-title a {
    color: var(--deep-purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recommendation-title a:hover,
.reading-title a:hover {
    color: var(--olive-green);
    text-decoration: underline;
}

.recommendation-author,
.reading-author {
    color: var(--olive-green);
    font-weight: 600;
    font-size: 0.95rem;
}

.recommendation-summary,
.reading-summary {
    color: var(--charcoal);
    line-height: 1.6;
    font-size: 0.95rem;
}

.recommendation-notes {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fff9e6, #fffbf0);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--gold);
    font-style: italic;
    color: var(--charcoal);
}

.recommendation-notes .material-symbols-outlined {
    color: var(--olive-green);
    font-size: 20px;
    flex-shrink: 0;
}

.profile-header {
    background: linear-gradient(135deg, var(--olive-green), var(--olive-green));
    color: white;
    padding: 3rem 0;
}

.profile-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.profile-info h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.profile-info p {
    margin: 0.25rem 0;
    opacity: 0.95;
}

.profile-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.profile-badges .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.profile-section {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
}

.profile-section h2 {
    margin-top: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: var(--background);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background-color: var(--primary-light);
    color: white;
    transform: translateX(5px);
}

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

.stat-box {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--background);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .profile-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-info h1 {
        font-size: 1.5rem;
    }
}

/* ============================================
   AMCP (ADMIN) SPECIFIC STYLES
   ============================================ */

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1rem;
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
}

.filter-tab:hover {
    background-color: var(--primary-light);
    color: white;
}

.filter-tab.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* User Actions */
.user-actions {
    display: flex;
    gap: 0.5rem;
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-active {
    background-color: var(--success-color);
}

.status-inactive {
    background-color: var(--error-color);
}

.status-flagged {
    background-color: var(--warning-color);
}

/* Info Grid (for user-view) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.info-item {
    padding: 1rem;
    background-color: var(--surface);
    border-radius: 4px;
}

.info-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.info-value {
    color: var(--text-primary);
    font-size: 1rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Ban Actions */
.ban-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   ARCHIVE SYSTEM STYLES
   ============================================ */

/* Breadcrumb Navigation */
.breadcrumb {
    background: var(--light-sage);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--olive-green);
}

.breadcrumb a {
    color: var(--olive-green);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--deep-purple);
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--text-secondary);
}

.breadcrumb-inline {
    color: var(--light-sage);
}

.breadcrumb-inline a {
    color: var(--cream);
    text-decoration: none;
}

.breadcrumb-inline a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.35rem;
}

.category-card {
    background: var(--light-sage);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 2px solid var(--gold);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 25, 63, 0.15);
    border-color: var(--olive-green);
}

.category-card a {
    text-decoration: none;
    color: var(--deep-purple);
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
}

.category-card a:hover {
    color: var(--olive-green);
}

.category-count {
    color: var(--olive-green);
    font-weight: 500;
    font-size: 0.95rem;
    margin-left: 0.25rem;
}

.category-desc {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Story Entry */
.story-entry {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--gold);
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(35, 25, 63, 0.1);
}

.story-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.story-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--deep-purple);
    text-decoration: none;
}

.story-title:hover {
    color: var(--olive-green);
    text-decoration: underline;
}

.story-separator {
    color: var(--gold);
    font-weight: 600;
}

.story-author {
    color: var(--olive-green);
    font-weight: 600;
    text-decoration: none;
}

.story-author:hover {
    text-decoration: underline;
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.story-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.story-meta-item .material-symbols-outlined {
    font-size: 18px;
    vertical-align: middle;
}

.story-location {
    background: var(--light-sage);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.story-location strong {
    color: var(--deep-purple);
}

.story-description {
    color: var(--charcoal);
}

.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.story-tag {
    background: var(--olive-green);
    color: var(--cream);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.pagination-ellipsis {
    border: none;
    padding: 0.5rem;
}

.no-stories {
    text-align: center;
    padding: 3rem;
    background: var(--light-sage);
    border-radius: 12px;
    border: 2px solid var(--gold);
}

.no-stories .material-symbols-outlined {
    font-size: 64px;
    color: var(--olive-green);
}

/* Story Page Styles */
.story-header-card {
    background: linear-gradient(135deg, var(--olive-green), var(--deep-purple));
    color: var(--cream);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(35, 25, 63, 0.2);
}

.story-title-main {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--cream);
}

.story-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.story-meta-row strong {
    color: var(--gold);
}

.story-meta-row a {
    color: var(--cream);
    text-decoration: underline;
}

.story-meta-row a:hover {
    color: var(--gold);
}

.disclaimer-box {
    background: var(--light-sage);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

.disclaimer-box strong {
    color: var(--deep-purple);
    display: block;
    margin-bottom: 0.5rem;
}

/* Chapter Navigation */
.chapter-navigation {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--gold);
}

.chapter-nav-title {
    color: var(--deep-purple);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chapter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.chapter-select {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem;
    border: 2px solid var(--gold);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--cream);
    color: var(--charcoal);
}

.chapter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--olive-green);
    color: var(--cream);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.chapter-btn:hover {
    background: var(--deep-purple);
    transform: translateY(-2px);
}

.chapter-btn:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

/* Chapter Content */
.chapter-content-card {
    background: var(--cream);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--gold);
}

.chapter-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-purple);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--gold);
}

.chapter-body {
    color: var(--charcoal);
}

.chapter-body p {
    margin-bottom: 1rem;
}

.chapter-info {
    background: var(--light-sage);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.no-chapters {
    text-align: center;
    padding: 3rem;
    background: var(--light-sage);
    border-radius: 12px;
    border: 2px solid var(--gold);
}

.no-chapters .material-symbols-outlined {
    font-size: 64px;
    color: var(--olive-green);
}

/* Tag Filter Grid */
.tag-filter-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    column-gap: 1.5rem;
}

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

.tag-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: var(--cream);
    border: 1px solid var(--gold);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    min-height: 36px;
    position: relative;
}

.tag-filter-checkbox:hover {
    background: var(--light-sage);
    border-color: var(--olive-green);
    transform: translateX(2px);
}

.tag-filter-checkbox[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 8px 12px;
    background: var(--deep-purple);
    color: var(--cream);
    font-size: 0.85rem;
    line-height: 1.4;
    border-radius: 6px;
    white-space: normal;
    max-width: 250px;
    width: max-content;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(35, 25, 63, 0.3);
    pointer-events: none;
    animation: tooltipFadeIn 0.2s ease;
}

.tag-filter-checkbox[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--deep-purple);
    z-index: 1000;
    pointer-events: none;
    animation: tooltipFadeIn 0.2s ease;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.tag-filter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--olive-green);
    flex-shrink: 0;
}

.tag-filter-checkbox input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: var(--olive-green);
}

.tag-filter-checkbox span {
    flex: 1;
    color: var(--charcoal);
    font-size: 0.95rem;
    line-height: 1.3;
}

/* Tag Mode Selector */
.tag-mode-selector {
    display: flex;
    gap: 0.25rem;
    padding-left: 1.5rem;
}

.tag-mode-option {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    background: var(--light-sage);
    border: 1px solid var(--gold);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    font-size: 0.85rem;
}

.tag-mode-option:hover {
    background: var(--cream);
    border-color: var(--olive-green);
}

.tag-mode-option input[type="radio"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    margin: 0;
}

.tag-mode-option input[type="radio"]:checked + .mode-label {
    font-weight: 700;
}

.mode-label {
    font-size: 0.8rem;
    font-weight: 500;
}

.mode-label.include {
    color: var(--olive-green);
}

.mode-label.exclude {
    color: var(--deep-purple);
}

.tag-mode-option input[type="radio"]:checked + .mode-label.include {
    color: var(--olive-green);
}

.tag-mode-option input[type="radio"]:checked + .mode-label.exclude {
    color: var(--deep-purple);
}

/* Story Header - Two Column Layout */
.story-header-two-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.story-header-left {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gold);
}

.story-header-left h1 {
    color: var(--deep-purple);
    margin: 0 0 0.75rem 0;
    font-size: 2rem;
    line-height: 1.3;
}

.story-header-author {
    color: var(--text-secondary);
    font-size: 1rem;
}

.story-header-author strong {
    color: var(--charcoal);
}

.story-header-author a {
    color: var(--olive-green);
    text-decoration: none;
    font-weight: 600;
}

.story-header-author a:hover {
    text-decoration: underline;
}

.story-header-right {
    display: none;
    padding: 1.5rem;
}

.story-header-category {
    margin-bottom: 0.05rem;
}

.story-header-category .material-symbols-outlined {
    color: var(--deep-purple);
    font-size: 18px;
    vertical-align: middle;
}

.story-header-category span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.story-header-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.story-header-stats > div strong {
    color: var(--deep-purple);
}

.story-header-stats > div span {
    color: var(--text-secondary);
}

.story-info-mobile {
    padding: 1.5rem;
    border-top: 1px solid var(--gold);
}

.story-info-mobile-category {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.story-info-mobile-category strong {
    color: var(--deep-purple);
}

.story-info-mobile-category span {
    color: var(--text-secondary);
}

.story-info-mobile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    font-size: 0.9rem;
}

.story-info-mobile-stats > div strong {
    color: var(--deep-purple);
}

.story-info-mobile-stats > div span {
    color: var(--text-secondary);
}

/* Archive Responsive */
@media (min-width: 768px) {
    .story-header-two-column {
        grid-template-columns: 1fr 1fr;
    }
    
    .story-header-left {
        border-bottom: none;
    }
    
    .story-header-right {
        display: block;
    }
    
    .story-info-mobile {
        display: none;
    }
}

@media (max-width: 768px) {
    .story-title-main {
        font-size: 1.8rem;
    }
    
    .story-meta-row {
        font-size: 1rem;
        gap: 1rem;
    }
    
    .chapter-controls {
        flex-direction: column;
    }
    
    .chapter-select {
        width: 100%;
    }
    
    .chapter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .tag-filter-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   REVIEW ENTRY STYLES
   ============================================ */

.review-entry {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--gold);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(35, 25, 63, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-sage);
    flex-wrap: wrap;
    gap: 1rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.review-author a {
    color: var(--olive-green);
    text-decoration: none;
    font-weight: 600;
}

.review-author a:hover {
    text-decoration: underline;
}

.review-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.review-date .material-symbols-outlined {
    color: var(--olive-green);
}

.review-chapter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-sage);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--deep-purple);
}

.review-chapter .material-symbols-outlined {
    color: var(--olive-green);
}

.review-content {
    color: var(--charcoal);
    line-height: 1.8;
    font-size: 1rem;
}

.review-content p {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   STORY MANAGER STYLES
   ============================================ */

.story-manager-entry {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--gold);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(35, 25, 63, 0.1);
}

.story-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.story-manager-title {
    flex: 1;
    margin: 0;
    font-size: 1.3rem;
    color: var(--deep-purple);
}

.story-manager-title a {
    color: var(--deep-purple);
    text-decoration: none;
}

.story-manager-title a:hover {
    color: var(--olive-green);
    text-decoration: underline;
}

.story-manager-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.story-manager-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.story-manager-meta strong {
    color: var(--deep-purple);
}

/* Chapter Manager Styles */
.chapter-manager-entry {
    background: var(--light-sage);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--gold);
    margin-bottom: 1rem;
}

.chapter-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.chapter-manager-title {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
    color: var(--deep-purple);
}

.chapter-manager-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.chapter-manager-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.chapter-manager-meta strong {
    color: var(--deep-purple);
}

@media (max-width: 768px) {
    .story-manager-header,
    .chapter-manager-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .story-manager-actions,
    .chapter-manager-actions {
        width: 100%;
    }
    
    .story-manager-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ============================================
   REVIEW MANAGER STYLES
   ============================================ */

.review-manager-entry {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--gold);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(35, 25, 63, 0.1);
    transition: all 0.3s ease;
}

.review-manager-entry.review-hidden {
    background: #fff9e6;
    border-color: var(--warning-color);
}

.review-manager-entry.review-reported {
    background: #fff0f0;
    border-color: var(--error-color);
}

.review-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.review-manager-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.review-manager-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--deep-purple);
}

.review-manager-author a {
    color: var(--olive-green);
    text-decoration: none;
}

.review-manager-author a:hover {
    text-decoration: underline;
}

.review-manager-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.review-manager-date .material-symbols-outlined {
    font-size: 18px;
    color: var(--olive-green);
}

.review-manager-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.review-manager-content {
    color: var(--charcoal);
    line-height: 1.8;
    font-size: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--light-sage);
}

.review-manager-content p {
    margin-bottom: 1rem;
}

.review-status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.review-status-badge .material-symbols-outlined {
    font-size: 20px;
}

@media (max-width: 768px) {
    .review-manager-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .review-manager-actions {
        width: 100%;
    }
    
    .review-manager-actions form,
    .review-manager-actions button {
        flex: 1;
    }
}

/* ============================================
   HEADER LOGO & BANNER ZONES
   ============================================ */

/* Header Logo Zone (Above Menu) */
.header-logo-zone {
    background: var(--gold);
    padding: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(35, 25, 63, 0.2);
}

.header-logo-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.header-logo-image {
    max-height: 120px;
    max-width: 100%;
    height: auto;
    display: block;
}

.header-logo-text {
    color: var(--deep-purple);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-align: left;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
}

/* Header Banner Zone (Below Menu) */
.header-banner-zone {
    background: var(--gold);
    padding: 1rem 0;
}

.header-banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.header-banner-container #ad-zone-core_archive_header {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-banner-image {
    width: 468px;
    height: 60px;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(35, 25, 63, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-logo-zone {
        padding: 1rem 0;
    }
    
    .header-logo-image {
        max-height: 80px;
    }
    
    .header-logo-text {
        font-size: 1.8rem;
    }
    
    .header-banner-zone {
        padding: 0.75rem 0;
    }
    
    .header-banner-image {
        max-width: 100%;
        width: auto;
        height: auto;
    }
}

@media (max-width: 480px) {
    .header-logo-text {
        font-size: 1.5rem;
    }
}

/* ============================================
   ADDITIONAL UTILITY CLASSES FOR INLINE STYLES
   ============================================ */

/* Positioning Utilities */
.pos-relative { position: relative; }
.pos-absolute { position: absolute; }
.pos-fixed { position: fixed; }
.pos-sticky { position: sticky; }

/* Display Utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }

/* Flex Utilities */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.align-center { align-items: center; }
.align-baseline { align-items: baseline; }
.align-stretch { align-items: stretch; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* Gap Utilities */
.gap-0 { gap: 0; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Margin Utilities */
.m-0 { margin: 0 !important; }
.m-auto { margin: auto !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }

.mt-0 { margin-top: 0 !important; }
.mr-0 { margin-right: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.ml-0 { margin-left: 0 !important; }

.mt-05 { margin-top: 0.25rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }
.mt-6 { margin-top: 3rem; }

.mb-05 { margin-bottom: 0.25rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }
.mb-6 { margin-bottom: 3rem; }

.ml-1 { margin-left: 0.5rem; }
.ml-2 { margin-left: 1rem; }
.ml-3 { margin-left: 1.5rem; }
.ml-4 { margin-left: 2rem; }

.mr-1 { margin-right: 0.5rem; }
.mr-2 { margin-right: 1rem; }
.mr-3 { margin-right: 1.5rem; }
.mr-4 { margin-right: 2rem; }

/* Padding Utilities */
.p-0 { padding: 0 !important; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 2.5rem; }
.p-6 { padding: 3rem; }

.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-4 { padding-left: 2rem; padding-right: 2rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }

.pl-1 { padding-left: 0.5rem; }
.pl-2 { padding-left: 1rem; }
.pl-3 { padding-left: 1.5rem; }
.pl-4 { padding-left: 2rem; }

.pr-1 { padding-right: 0.5rem; }
.pr-2 { padding-right: 1rem; }
.pr-3 { padding-right: 1.5rem; }
.pr-4 { padding-right: 2rem; }

/* Width & Height Utilities */
.w-100 { width: 100%; }
.w-auto { width: auto; }
.h-100 { height: 100%; }
.h-auto { height: auto; }
.max-w-full { max-width: 100%; }
.max-h-full { max-height: 100%; }
.min-w-0 { min-width: 0; }

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

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }

.text-italic { font-style: italic; }
.text-normal { font-style: normal; }

.text-decoration-none { text-decoration: none; }
.text-underline { text-decoration: underline; }

.line-height-1 { line-height: 1; }
.line-height-tight { line-height: 1.25; }
.line-height-normal { line-height: 1.5; }
.line-height-relaxed { line-height: 1.75; }
.line-height-loose { line-height: 2; }

/* Color Utilities */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-olive { color: var(--olive-green) !important; }
.text-purple { color: var(--deep-purple) !important; }
.text-cream { color: var(--cream) !important; }
.text-gold { color: var(--gold) !important; }
.text-charcoal { color: var(--charcoal) !important; }
.text-error { color: var(--error-color) !important; }
.text-success { color: var(--success-color) !important; }

.bg-cream { background-color: var(--cream) !important; }
.bg-sage { background-color: var(--light-sage) !important; }
.bg-olive { background-color: var(--olive-green) !important; }
.bg-purple { background-color: var(--deep-purple) !important; }
.bg-gold { background-color: var(--gold) !important; }
.bg-transparent { background-color: transparent !important; }

/* Border Utilities */
.border-0 { border: none !important; }
.border-1 { border: 1px solid var(--border-color); }
.border-2 { border: 2px solid var(--border-color); }
.border-gold { border-color: var(--gold) !important; }
.border-olive { border-color: var(--olive-green) !important; }
.border-purple { border-color: var(--deep-purple) !important; }

.border-t { border-top: 1px solid var(--border-color); }
.border-b { border-bottom: 1px solid var(--border-color); }
.border-l { border-left: 1px solid var(--border-color); }
.border-r { border-right: 1px solid var(--border-color); }

.border-t-2 { border-top: 2px solid var(--border-color); }
.border-b-2 { border-bottom: 2px solid var(--border-color); }
.border-l-2 { border-left: 2px solid var(--border-color); }
.border-r-2 { border-right: 2px solid var(--border-color); }

.border-t-3 { border-top: 3px solid var(--border-color); }
.border-b-3 { border-bottom: 3px solid var(--border-color); }
.border-l-3 { border-left: 3px solid var(--border-color); }
.border-r-3 { border-right: 3px solid var(--border-color); }

.border-t-4 { border-top: 4px solid var(--border-color); }
.border-b-4 { border-bottom: 4px solid var(--border-color); }
.border-l-4 { border-left: 4px solid var(--border-color); }
.border-r-4 { border-right: 4px solid var(--border-color); }

/* Border Radius Utilities */
.rounded-0 { border-radius: 0; }
.rounded-sm { border-radius: 4px; }
.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 16px; }
.rounded-full { border-radius: 50%; }
.rounded-pill { border-radius: 9999px; }

/* Shadow Utilities */
.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: 0 1px 2px rgba(35, 25, 63, 0.05); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: 0 4px 6px rgba(35, 25, 63, 0.1); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: 0 8px 32px rgba(35, 25, 63, 0.2); }

/* Overflow Utilities */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }
.overflow-visible { overflow: visible; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Z-Index Utilities */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }
.z-1000 { z-index: 1000; }
.z-9999 { z-index: 9999; }

/* Cursor Utilities */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

/* User Select Utilities */
.select-none { user-select: none; }
.select-text { user-select: text; }
.select-all { user-select: all; }

/* Opacity Utilities */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-90 { opacity: 0.9; }
.opacity-95 { opacity: 0.95; }
.opacity-100 { opacity: 1; }

/* Transition Utilities */
.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
.transition-transform { transition: transform 0.3s ease; }
.transition-opacity { transition: opacity 0.3s ease; }

/* Transform Utilities */
.transform-none { transform: none; }
.scale-95 { transform: scale(0.95); }
.scale-100 { transform: scale(1); }
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }

/* Vertical Align Utilities */
.align-baseline { vertical-align: baseline; }
.align-top { vertical-align: top; }
.align-middle { vertical-align: middle; }
.align-bottom { vertical-align: bottom; }
.align-text-top { vertical-align: text-top; }
.align-text-bottom { vertical-align: text-bottom; }

/* Visibility Utilities */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Pointer Events Utilities */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* Word Break Utilities */
.break-normal { word-break: normal; overflow-wrap: normal; }
.break-words { overflow-wrap: break-word; }
.break-all { word-break: break-all; }

/* White Space Utilities */
.whitespace-normal { white-space: normal; }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre { white-space: pre; }
.whitespace-pre-line { white-space: pre-line; }
.whitespace-pre-wrap { white-space: pre-wrap; }

/* Object Fit Utilities */
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }
.object-fill { object-fit: fill; }
.object-none { object-fit: none; }
.object-scale-down { object-fit: scale-down; }

/* Additional Utility Classes for Admin Panel */
.ban-header-gradient {
    background: linear-gradient(135deg, var(--error-color), var(--deep-purple));
}

.fw-600 {
    font-weight: 600 !important;
}

.border-error {
    border-color: var(--error-color) !important;
}

.pl-4 {
    padding-left: 2rem;
}

.bg-warning {
    background-color: #fff3cd;
}

.border-warning {
    border-color: #ffc107;
}

/* Icon Size Utilities */
.icon-xs { font-size: 18px !important; }
.icon-sm { font-size: 20px !important; }
.icon-md { font-size: 24px !important; }
.icon-lg { font-size: 32px !important; }
.icon-xl { font-size: 48px !important; }
.icon-xxl { font-size: 64px !important; }

/* ============================================
   LOGIN DROPDOWN STYLES
   ============================================ */

/* Desktop Login Dropdown */
.menu-login-dropdown {
    position: relative;
    margin-left: auto;
}

.menu-login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--olive-green);
    color: var(--cream);
    border: 2px solid var(--gold);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.menu-login-btn:hover {
    background: #5c7433;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 93, 40, 0.3);
}

.menu-login-btn .material-symbols-outlined {
    font-size: 20px;
}

.menu-login-form {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 320px;
    background: var(--cream);
    border: 2px solid var(--gold);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(35, 25, 63, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.menu-login-form.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-login-form::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--gold);
}

.menu-login-form::after {
    content: '';
    position: absolute;
    top: -8px;
    right: 21px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid var(--cream);
}

/* Mobile Login Section */
.mobile-login-section {
    border-top: 2px solid var(--gold);
    margin-top: 1rem;
}

.mobile-login-section .accordion-item {
    border-bottom: none;
}

.mobile-login-section .accordion-content {
    background: var(--cream);
}

/* Responsive - Hide desktop login on mobile */
@media (max-width: 768px) {
    .menu-login-dropdown {
        display: none;
    }
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

.contact-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

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

.page-header h1 {
    color: var(--deep-purple);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.page-header h1 .material-symbols-outlined {
    font-size: 2.5rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Contact Form Specific */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form .form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--deep-purple);
}

.contact-form .form-label .material-symbols-outlined {
    font-size: 1.2rem;
    color: var(--olive-green);
}

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

.card-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.form-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Honeypot - Hidden from users */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Department Information */
.department-info {
    margin-top: 2rem;
}

.department-list {
    display: grid;
    gap: 1rem;
}

.department-item {
    padding: 1rem;
    background: var(--light-sage);
    border-left: 4px solid var(--gold);
    border-radius: 4px;
}

.department-item h3 {
    color: var(--deep-purple);
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.department-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.department-item .material-symbols-outlined {
    font-size: 1rem;
}

.info-notice {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.info-notice .material-symbols-outlined {
    color: #ffc107;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Alert Styles for Contact Page */
.alert {
    margin-bottom: 2rem;
}

.alert-icon {
    flex-shrink: 0;
}

.alert-icon .material-symbols-outlined {
    font-size: 4rem;
}

.alert-content {
    flex: 1;
}

.alert-content h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.alert-content p {
    margin: 0 0 1rem 0;
}

.alert-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.alert-content ul {
    margin: 0;
    padding-left: 1.5rem;
}

.alert-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.alert-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Success Alert */
.alert-success {
    background: #e8f5e9;
    border: 2px solid var(--success-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.alert-success .alert-icon .material-symbols-outlined {
    color: var(--success-color);
}

.alert-success h2 {
    color: var(--success-color);
}

/* Error Alert */
.alert-error {
    background: #ffebee;
    border: 2px solid var(--error-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
}

.alert-error .alert-icon .material-symbols-outlined {
    color: var(--error-color);
    font-size: 2rem;
}

.alert-error h3 {
    color: var(--error-color);
}

.alert-error ul li {
    color: var(--error-color);
}

/* Responsive Contact Page */
@media (max-width: 768px) {
    .contact-page {
        padding: 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .alert-actions {
        flex-direction: column;
    }
    
    .alert-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Font Weight Utilities */
.fw-400 { font-weight: 400 !important; }
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }

/* Border Sage Utility */
.border-sage { border-color: var(--light-sage) !important; }

/* Admin Header Gradient */
.admin-header-gradient {
    background: linear-gradient(135deg, var(--olive-green), var(--deep-purple));
}

/* Grid Utilities */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* Icon Size Utilities */
.icon-xs { font-size: 14px !important; }
.icon-sm { font-size: 18px !important; }
.icon-md { font-size: 24px !important; }
.icon-lg { font-size: 32px !important; }
.icon-xl { font-size: 64px !important; }
.icon-2xl { font-size: 96px !important; }

/* News Container */
.news-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Admin Dashboard Styles */
.admin-header-gradient {
    background: linear-gradient(135deg, var(--deep-purple), var(--olive-green));
    color: var(--cream);
}

.admin-avatar {
    width: 100px;
    height: 100px;
    background: var(--gold);
    color: var(--deep-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    border: 4px solid var(--cream);
}

.badge-gold {
    background: var(--gold);
    color: var(--deep-purple);
    padding: 6px 12px;
}

.badge-warning {
    background-color: #fff3e0;
    color: #e65100;
}

.stat-card-style {
    border: 2px solid var(--gold);
    border-radius: 12px;
    background: var(--cream);
}

.stat-card-header {
    color: var(--deep-purple);
    padding: 1.5rem;
    background: var(--light-sage);
    border-radius: 10px 10px 0 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-card-body {
    padding: 2rem;
    text-align: center;
}

.stat-number-xl {
    font-size: 3.5rem;
    font-weight: 700;
}

.quick-actions-card {
    border: 2px solid var(--deep-purple);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--light-sage), var(--cream));
}

.quick-actions-header {
    color: var(--cream);
    padding: 1.5rem;
    background: var(--deep-purple);
    border-radius: 10px 10px 0 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.border-0 {
    border: none !important;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.p-5 {
    padding: 2.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.align-start {
    align-items: flex-start;
}

.opacity-50 {
    opacity: 0.5;
}

.badge-flagged {
    background-color: #ffebee;
    color: #c62828;
}

.badge-donor {
    background-color: #fff3e0;
    color: #e65100;
}

.btn-merge {
    background-color: #ff9800;
    color: white;
}

.btn-merge:hover {
    background-color: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

/* Specific Component Utilities */
.action-button-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(74, 93, 40, 0.3);
    transition: all 0.3s ease;
}

.action-button-circle:hover {
    transform: scale(1.05);
}

/* ============================================
   STATIC PAGE CONTENT STYLES
   ============================================ */

.static-page-content {
    line-height: 1.8;
    color: var(--charcoal);
}

.static-page-content h1,
.static-page-content h2,
.static-page-content h3,
.static-page-content h4,
.static-page-content h5,
.static-page-content h6 {
    color: var(--deep-purple);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.static-page-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
}

.static-page-content h2 {
    font-size: 1.75rem;
}

.static-page-content h3 {
    font-size: 1.5rem;
}

.static-page-content p {
    margin-bottom: 1rem;
}

.static-page-content ul{
    margin-left: 20px;
}
.static-page-content ul li {
}

.static-page-content ol {
    counter-reset: item;
}

.static-page-content ol li {
    display: block;
}

.static-page-content ol li:before {
    content: counters(item, ".") " ";
    counter-increment: item;
}

.static-page-content a {
    color: var(--deep-purple);
    text-decoration: underline;
}

.static-page-content a:hover {
    color: var(--olive-green);
}

.static-page-content blockquote {
    border-left: 4px solid var(--gold);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.static-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.static-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.static-page-content table th,
.static-page-content table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.static-page-content table th {
    background: var(--light-sage);
    color: var(--deep-purple);
    font-weight: 600;
}

.static-page-content table tr:nth-child(even) {
    background: var(--background);
}

.static-page-content hr {
    border: none;
    border-top: 2px solid var(--gold);
    margin: 2rem 0;
}

.static-page-content code {
    background: var(--light-sage);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.static-page-content pre {
    background: var(--light-sage);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.static-page-content pre code {
    background: none;
    padding: 0;
}: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 93, 40, 0.4);
}

.action-button-olive {
    background: var(--olive-green);
    color: var(--cream);
}

.action-button-purple {
    background: var(--deep-purple);
    color: var(--cream);
}

.action-button-gold {
    background: var(--gold);
    color: var(--charcoal);
}

.gradient-olive-purple {
    background: linear-gradient(135deg, var(--olive-green), var(--deep-purple));
}

.gradient-sage-cream {
    background: linear-gradient(135deg, var(--light-sage), var(--cream));
}

.card-bordered {
    border: 2px solid var(--gold);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(35, 25, 63, 0.1);
}

.card-header-gradient {
    background: linear-gradient(135deg, var(--olive-green), var(--deep-purple));
    color: var(--cream);
    padding: 1.5rem;
    border-radius: 10px 10px 0 0;
}

.icon-sm { font-size: 16px; }
.icon-md { font-size: 20px; }
.icon-lg { font-size: 24px; }
.icon-xl { font-size: 32px; }
.icon-2xl { font-size: 48px; }
.icon-3xl { font-size: 64px; }
.icon-4xl { font-size: 80px; }

