/* ============================================
   DURGA PUJA MANAGER - TYPEWRITER RETRO STYLES
   ============================================ */

/* ===== GOOGLE FONTS IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Courier+Prime:wght@400;700&family=IBM+Plex+Mono:wght@400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    /* Retro Typewriter Colors - Aged Paper Theme */
    --paper-bg: #f5f0e6;
    --paper-dark: #e8e0d0;
    --paper-light: #fffef8;
    --ink-primary: #2c1810;
    --ink-secondary: #5c4033;
    --ink-muted: #8b7355;
    --ink-red: #8b0000;
    --ink-blue: #1a3a5c;

    /* Vintage Accent Colors */
    --accent-red: #8b0000;
    --accent-brown: #6b5344;
    --accent-gold: #b8860b;
    --accent-green: #2d5016;

    /* Background Colors */
    --bg-primary: #f5f0e6;
    --bg-secondary: #fffef8;
    --bg-dark: #2c1810;
    --bg-darker: #1a0f0a;

    /* Text Colors */
    --text-primary: #2c1810;
    --text-secondary: #5c4033;
    --text-light: #8b7355;
    --text-white: #fffef8;

    /* Border Colors */
    --border-light: #d4c4a8;
    --border-medium: #b8a890;
    --border-dark: #8b7355;

    /* Shadows - Soft vintage style */
    --shadow-sm: 2px 2px 0 rgba(44, 24, 16, 0.1);
    --shadow-md: 3px 3px 0 rgba(44, 24, 16, 0.15);
    --shadow-lg: 4px 4px 0 rgba(44, 24, 16, 0.2);
    --shadow-xl: 6px 6px 0 rgba(44, 24, 16, 0.25);

    /* Border Radius - Minimal for typewriter feel */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 8px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Typography */
    --font-mono: 'IBM Plex Mono', 'Courier Prime', 'Courier New', monospace;
    --font-typewriter: 'Special Elite', 'Courier Prime', 'American Typewriter', monospace;
    --font-hindi: 'Noto Sans Devanagari', 'IBM Plex Mono', monospace;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at top left, rgba(139, 115, 85, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(139, 115, 85, 0.03) 0%, transparent 50%);
}

/* Aged paper texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
}

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

::-webkit-scrollbar-track {
    background: var(--paper-dark);
    border-left: 1px solid var(--border-light);
}

::-webkit-scrollbar-thumb {
    background: var(--ink-muted);
    border: 2px solid var(--paper-dark);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ink-secondary);
}

/* ===== NAVIGATION ===== */
.navbar {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-typewriter);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.nav-logo::before {
    content: '[DP]';
    font-family: var(--font-mono);
    font-size: 1rem;
    background: var(--ink-primary);
    color: var(--paper-light);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: var(--transition-fast);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--accent-red);
    border-color: var(--border-dark);
    background: var(--paper-bg);
}

.nav-links a.active {
    color: var(--accent-red);
    border: 2px solid var(--ink-primary);
    background: var(--paper-bg);
    font-weight: 600;
}

.nav-btn {
    color: var(--text-white) !important;
    border: 2px solid var(--ink-primary) !important;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    z-index: 1002;
}

.nav-btn:hover {
    background: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
}

/* Ensure logout button is visible and clickable on mobile */
#headerLogoutBtn {
    cursor: pointer;
    z-index: 1005;
    position: relative;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    border: 2px solid var(--accent-gold);
    background: var(--ink-primary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

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

.menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ===== HEADER (for other pages) ===== */
.header {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #000;
    padding: 4px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
    border: 2px solid var(--accent-gold);
    overflow: hidden;
}

.logo:hover {
    transform: rotate(5deg) scale(1.1);
    border-color: var(--accent-red);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.login-logo {
    width: 100px;
    height: 100px;
    background: #000;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--accent-gold);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: float 3s ease-in-out infinite;
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-section h1 {
    font-family: var(--font-typewriter);
    font-size: 1.25rem;
    color: var(--ink-primary);
    margin: 0;
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--paper-dark);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px double var(--border-dark);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 24px,
            rgba(139, 115, 85, 0.03) 24px,
            rgba(139, 115, 85, 0.03) 25px);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    color: var(--text-primary);
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-typewriter);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--ink-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.hero-description {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-decoration {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.deco-item {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--ink-muted);
}

/* Hero section for index page */
.hero-section {
    background: var(--paper-dark);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 3px double var(--border-dark);
    margin-bottom: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--ink-primary);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
    background: var(--paper-light);
    color: var(--ink-primary);
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translate(0, 0);
    box-shadow: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--ink-primary);
    color: var(--paper-light);
}

.btn-primary:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.btn-secondary {
    background: var(--paper-bg);
    color: var(--ink-primary);
    border-color: var(--border-dark);
}

.btn-secondary:hover {
    background: var(--paper-dark);
}

.btn-success {
    background: var(--accent-green);
    color: var(--paper-light);
    border-color: var(--accent-green);
}

.btn-danger {
    background: var(--accent-red);
    color: var(--paper-light);
    border-color: var(--accent-red);
}

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

.btn-outline:hover {
    background: var(--ink-primary);
    color: var(--paper-light);
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--paper-light);
    border-color: var(--accent-gold);
}

.btn-accent {
    background: var(--ink-blue);
    color: var(--paper-light);
    border-color: var(--ink-blue);
}

/* ===== SECTIONS ===== */
.section {
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-typewriter);
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--ink-primary);
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.glass-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-dark);
}

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

.card-header h2 {
    font-family: var(--font-typewriter);
    font-size: 1.25rem;
    color: var(--ink-primary);
    margin: 0;
}

.card-title {
    font-family: var(--font-typewriter);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink-primary);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-text {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    line-height: 1.7;
}

.card-body {
    margin-bottom: 1.5rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

/* ===== FEATURE CARDS ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-sm);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ink-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--paper-dark);
    border: 2px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink-primary);
}

.feature-title {
    font-family: var(--font-typewriter);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-description {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: var(--paper-dark);
    padding: 3rem 0;
    border-top: 2px solid var(--border-dark);
    border-bottom: 2px solid var(--border-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.stat-card {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink-muted);
    margin-bottom: 0.5rem;
}

.stat-number,
.stat-value {
    font-family: var(--font-typewriter);
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink-primary);
    margin-bottom: 0.5rem;
}

/* ===== COMPACT STAFF DASHBOARD ===== */
.compact-dashboard {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.action-buttons .btn {
    padding: 0.85rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.quick-stats-row {
    display: flex;
    background: var(--paper-light);
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.mini-stat {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--border-light);
}

.mini-stat:last-child {
    border-right: none;
}

.mini-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.mini-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink-primary);
}

@media (max-width: 480px) {
    .action-buttons {
        grid-template-columns: 1fr;
    }
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-decoration {
    height: 3px;
    background: var(--border-light);
    margin-top: 1rem;
}

/* Gradient classes for stat cards */
.gradient-1 {
    border-top: 4px solid var(--accent-red);
}

.gradient-2 {
    border-top: 4px solid var(--accent-green);
}

.gradient-3 {
    border-top: 4px solid var(--accent-gold);
}

.gradient-4 {
    border-top: 4px solid var(--ink-blue);
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    position: relative;
    cursor: pointer;
    transition: var(--transition-normal);
}

.gallery-item:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-slow);
    filter: sepia(20%);
}

.gallery-item:hover img {
    filter: sepia(0%);
}

/* ===== FORMS ===== */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-sm);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label,
.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control,
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-mono);
    transition: var(--transition-fast);
    background: var(--paper-light);
    color: var(--ink-primary);
}

.form-control:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--ink-primary);
    box-shadow: 3px 3px 0 rgba(44, 24, 16, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-hint {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.form-error {
    color: var(--accent-red);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
    border-color: var(--accent-red);
}

.form-group.error .form-error {
    display: block;
}

.search-box {
    position: relative;
}

/* ===== TABLES ===== */
.table-container {
    overflow-x: auto;
    background: var(--bg-secondary);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.table,
table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.table thead,
table thead {
    background: var(--paper-dark);
    border-bottom: 2px solid var(--border-dark);
}

.table th,
table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ink-primary);
}

.table tbody tr,
table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

.table tbody tr:hover,
table tbody tr:hover {
    background: var(--paper-bg);
}

.table tbody tr:last-child,
table tbody tr:last-child {
    border-bottom: none;
}

.table td,
table td {
    padding: 1rem;
    color: var(--text-primary);
}

.table .status-badge,
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border: 1px solid;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(45, 80, 22, 0.1);
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.status-inactive {
    background: rgba(139, 0, 0, 0.1);
    color: var(--accent-red);
    border-color: var(--accent-red);
}

.status-pending {
    background: rgba(184, 134, 11, 0.1);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--paper-bg);
    color: var(--ink-primary);
}

.badge-success {
    background: rgba(45, 80, 22, 0.1);
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.badge-warning {
    background: rgba(184, 134, 11, 0.1);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.badge-danger {
    background: rgba(139, 0, 0, 0.1);
    color: var(--accent-red);
    border-color: var(--accent-red);
}

.badge-info {
    background: rgba(26, 58, 92, 0.1);
    color: var(--ink-blue);
    border-color: var(--ink-blue);
}

/* ===== MODAL ===== */
.modal,
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 24, 16, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.modal-overlay {
    background: rgba(44, 24, 16, 0.85);
    padding: 1rem;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-secondary);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-sm);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.confirm-modal {
    padding: 25px !important;
    text-align: center;
}

.confirm-modal p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--ink-primary);
    line-height: 1.6;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--paper-dark);
}

.modal-title,
.modal-header h2 {
    font-family: var(--font-typewriter);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: 2px solid var(--border-dark);
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--ink-primary);
    transition: var(--transition-fast);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
}

.modal-close:hover {
    background: var(--accent-red);
    color: var(--paper-light);
    border-color: var(--accent-red);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer,
.modal-actions {
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* ===== ALERTS ===== */
.alert {
    padding: 1rem 1.5rem;
    border: 2px solid;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(45, 80, 22, 0.1);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.alert-error {
    background: rgba(139, 0, 0, 0.1);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.alert-warning {
    background: rgba(184, 134, 11, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.alert-info {
    background: rgba(26, 58, 92, 0.1);
    border-color: var(--ink-blue);
    color: var(--ink-blue);
}

.alert-icon {
    font-family: var(--font-mono);
    font-weight: 700;
}

.alert-message {
    flex: 1;
}

.alert-close {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-size: 1.25rem;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.alert-close:hover {
    opacity: 1;
}

/* ===== LOADING SPINNER ===== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--ink-primary);
    border-radius: 0;
    animation: spin 1s linear infinite;
}

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

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.spinner-lg {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

.loading-state {
    text-align: center;
    padding: 2rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

/* ===== ANIMATION CLASSES ===== */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scale-in {
    animation: scaleIn 0.5s ease forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
    border-top: 3px double var(--border-dark);
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: var(--font-typewriter);
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

.footer-links a {
    font-family: var(--font-mono);
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--paper-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-dark);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* ===== ADMIN DASHBOARD ===== */
.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--bg-darker);
    color: var(--text-white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 2px solid var(--border-dark);
}

.admin-sidebar-header {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border-dark);
    margin-bottom: 1.5rem;
}

.admin-sidebar-title {
    font-family: var(--font-typewriter);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 1px;
}

.admin-nav {
    list-style: none;
    padding: 0 0.75rem;
}

.admin-nav li {
    margin-bottom: 0.25rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--paper-dark);
    color: var(--paper-light);
    border-color: var(--border-dark);
}

.admin-nav-icon {
    font-family: var(--font-mono);
    font-weight: 700;
}

.admin-main {
    padding: 1.5rem;
    background: var(--bg-primary);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-dark);
}

.admin-header h1 {
    font-family: var(--font-typewriter);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink-primary);
}

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

.admin-stat-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-stat-icon {
    width: 50px;
    height: 50px;
    background: var(--paper-dark);
    border: 2px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink-primary);
}

.admin-stat-info h3 {
    font-family: var(--font-typewriter);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink-primary);
    margin-bottom: 0.25rem;
}

.admin-stat-info p {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===== BLOG CARDS ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.blog-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--paper-dark);
    filter: sepia(20%);
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--paper-dark);
    border: 1px solid var(--border-dark);
    color: var(--ink-primary);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.blog-title {
    font-family: var(--font-typewriter);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-excerpt {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* ===== TABS ===== */
.tabs-container {
    margin: 2rem 0;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-dark);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid transparent;
    border-bottom: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab:hover {
    color: var(--ink-primary);
    background: var(--paper-bg);
}

.tab.active {
    color: var(--ink-primary);
    background: var(--bg-secondary);
    border-color: var(--border-dark);
    border-bottom-color: var(--bg-secondary);
    margin-bottom: -2px;
}

.tab-icon {
    margin-right: 0.5rem;
}

.tab-content {
    display: none;
}

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

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-state .icon {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: var(--border-dark);
    margin-bottom: 1rem;
}

.empty-state p {
    font-family: var(--font-typewriter);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.empty-state small {
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* ===== GLOW EFFECT ===== */
.glow-effect {
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.2);
    border-color: var(--accent-red);
}

/* ===== FLOATING ANIMATION ===== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===== BACKGROUND ANIMATION ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-brown);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-gold);
    bottom: -50px;
    right: -50px;
    animation-delay: -7s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: var(--ink-muted);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(-30px, -20px) scale(1.02);
    }
}

/* ===== ANIMATED BACKGROUND ===== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    opacity: 0.03;
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--ink-primary);
}

.element-1 {
    top: 10%;
    left: 10%;
    animation: float 15s ease-in-out infinite;
}

.element-2 {
    top: 20%;
    right: 15%;
    animation: float 18s ease-in-out infinite 2s;
}

.element-3 {
    bottom: 20%;
    left: 20%;
    animation: float 20s ease-in-out infinite 4s;
}

.element-4 {
    bottom: 10%;
    right: 10%;
    animation: float 16s ease-in-out infinite 6s;
}

.element-5 {
    top: 50%;
    left: 50%;
    animation: float 22s ease-in-out infinite 8s;
}

/* ===== CHIKANA PAGE ===== */
.chikana-hero {
    background: var(--paper-dark);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 3px double var(--border-dark);
}

.chikana-hero h1 {
    font-family: var(--font-typewriter);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--ink-primary);
    letter-spacing: 2px;
}

.chikana-hero p {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.chikana-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.chikana-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-lg);
}

.chikana-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--paper-dark);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink-primary);
}

.chikana-title {
    font-family: var(--font-typewriter);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink-primary);
    margin-bottom: 0.75rem;
}

.chikana-amount {
    font-family: var(--font-typewriter);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.chikana-description {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 2px solid var(--border-dark);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 6px 0;
    }

    .header-content {
        padding: 4px 5%;
    }

    .logo {
        width: 42px;
        height: 42px;
    }

    .logo-section h1 {
        font-size: 1rem !important;
    }

    .logo-section small {
        font-size: 0.75rem;
    }

    #villageName {
        font-size: 0.75rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 1rem;
        border: 2px solid var(--border-dark);
        border-top: none;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
        z-index: 1001;
    }

    .nav-links a,
    .nav-links button {
        width: 100%;
        text-align: center;
        padding: 1.2rem 1rem;
        line-height: 1.4;
        /* border-bottom removed */
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 2rem 1rem;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem 0.5rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .modal-content {
        margin: 0.5rem;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }

    .card {
        padding: 1rem;
    }

    .card-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.75rem 1rem;
    }

    .modal-actions {
        flex-direction: column-reverse;
        padding: 1rem;
    }

    .modal-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .modal-body {
        padding: 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .tabs {
        flex-direction: column;
        gap: 0.25rem;
    }

    .tab {
        border: 2px solid var(--border-light);
        text-align: left;
    }

    .tab.active {
        border-color: var(--border-dark);
        margin-bottom: 0;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .table-container {
        font-size: 0.85rem;
    }

    .table th,
    .table td,
    table th,
    table td {
        padding: 0.75rem 0.5rem;
    }

    .chikana-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }

    .section {
        padding: 2rem 0;
    }

    .container {
        padding: 0 0.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value,
    .stat-number {
        font-size: 1.5rem;
    }

    .logo-section h1 {
        font-size: 1rem;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .card-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }

    .header-actions .btn {
        flex: 1;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

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

.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;
}

.mt-5 {
    margin-top: 3rem;
}

.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: 3rem;
}

.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.p-4 {
    padding: 2rem;
}

.p-5 {
    padding: 3rem;
}

.d-flex {
    display: flex;
}

.d-inline-flex {
    display: inline-flex;
}

.d-block {
    display: block;
}

.d-none {
    display: none;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

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

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.rounded {
    border-radius: var(--radius-sm);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-full {
    border-radius: var(--radius-full);
}

.shadow {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-xl {
    box-shadow: var(--shadow-xl);
}

.text-gradient {
    background: linear-gradient(135deg, var(--ink-primary) 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--paper-dark);
}

.bg-white {
    background: var(--bg-secondary);
}

.bg-light {
    background: var(--bg-primary);
}

.text-primary {
    color: var(--primary);
}

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

.text-white {
    color: var(--text-white);
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        background: white;
        font-family: 'Courier New', monospace;
    }

    .header,
    .navbar,
    .footer,
    .nav-links,
    .menu-toggle,
    .btn {
        display: none !important;
    }

    .card {
        border: 1px solid #000;
        box-shadow: none;
    }

    .table-container {
        border: 1px solid #000;
    }
}

/* ===== BLOG MODAL & CONTENT STYLES ===== */
.blog-modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-secondary) !important;
}

.full-blog-content {
    font-family: var(--font-hindi);
    color: var(--text-primary);
    line-height: 1.8;
}

.full-blog-content h1,
.full-blog-content h2 {
    font-family: var(--font-typewriter);
    color: var(--ink-primary);
    margin: 25px 0 15px;
    border-bottom: 2px solid var(--border-medium);
    padding-bottom: 8px;
}

.full-blog-content h3 {
    color: var(--accent-red);
    margin: 20px 0 10px;
}

.full-blog-content p {
    margin-bottom: 15px;
}

.full-blog-content hr {
    border: none;
    border-top: 1px dashed var(--border-dark);
    margin: 20px 0;
}

.full-blog-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.full-blog-content li {
    margin-bottom: 8px;
    list-style-type: disc;
    margin-left: 20px;
}

/* Modal specific for blog */
#blogPostModal .modal-body {
    padding: 20px;
}

/* ===== LOADING OVERLAY ===== */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000001;
    /* Higher than modal's 999999 */
    display: none;
    /* Managed by JS */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(4px);
}

.loading-content {
    text-align: center;
    padding: 30px;
    background: #1a0f0a;
    border: 2px solid #b8860b;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(184, 134, 11, 0.2);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #b8860b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loading-message {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}