:root {
    /* New Slate & Gold Modern Palette */
    --primary-color: #0f172a; /* Slate 900 */
    --primary-light: #1e293b; /* Slate 800 */
    --secondary-color: #d4af37; /* Metallic Gold */
    --accent-color: #3b82f6; /* Modern Blue */
    --background-color: #f1f5f9; /* Slate 100 */
    --sidebar-bg: #0f172a;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    /* Advanced Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    
    /* Premium Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

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

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Premium Header */
header {
    background: var(--white);
    padding: 0.6rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    position: relative;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
.logo img {
    height: 165px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: height 0.3s ease;
}

.header-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.auth-buttons .btn {
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

/* Hero Section */
.hero {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c3e50 100%);
    color: var(--white);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

/* Footer Control */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-logo img {
    height: 150px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer-title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

nav.header-nav ul li a:hover,
nav.header-nav ul li a.active {
    color: var(--secondary-color);
}
.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.donation-box {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

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

.animate {
    animation: fadeIn 0.8s ease forwards;
}

/* Admin Dashboard Layout */
.dashboard-layout { 
    display: grid; 
    grid-template-columns: 280px 1fr; 
    min-height: 100vh;
}

.sidebar { 
    background: var(--primary-color); 
    color: white; 
    padding: 2.5rem 1.5rem; 
    position: sticky; 
    top: 0; 
    height: 100vh; 
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.sidebar h2 { 
    color: var(--secondary-color); 
    margin-bottom: 2.5rem; 
    font-size: 0.75rem; 
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-left: 0.8rem;
    opacity: 0.6;
}

.sidebar nav ul { 
    list-style: none; 
    padding: 0; 
    display: block; /* Force vertical */
}

.sidebar nav ul li { 
    margin-bottom: 0.5rem; 
}

.sidebar nav ul li a { 
    color: rgba(255,255,255,0.7); 
    display: block; 
    padding: 0.9rem 1.2rem; 
    border-radius: 10px; 
    transition: var(--transition);
    text-decoration: none;
    font-weight: 500;
}

.sidebar nav ul li a:hover { 
    color: white; 
    background: rgba(255,255,255,0.05); 
}

.sidebar nav ul li a.active { 
    color: white; 
    background: rgba(255,255,255,0.1); 
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}

.main-content { 
    padding: 3rem 4rem; 
    background: var(--background-color); 
}

.card { 
    background: var(--card-bg); 
    padding: 2.5rem; 
    border-radius: 20px; 
    box-shadow: var(--shadow-md); 
    margin-bottom: 2.5rem; 
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

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

/* Responsive Table */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

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

th, td { 
    text-align: left; 
    padding: 1.2rem; 
    border-bottom: 1px solid #f0f0f0; 
}

th {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Admin Quick Forms */
.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: end;
}

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

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    transition: var(--transition);
    background: #fcfcfc;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

/* Dashboard Specifics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border-bottom: 4px solid var(--primary-color);
    transition: var(--transition);
}

.stat-card h3 {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

/* Status Badges */
.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active { background: #ecfdf5; color: #059669; }
.status-pending { background: #fffbeb; color: #d97706; }
.status-blocked { background: #fef2f2; color: #dc2626; }

/* Table Improvements */
.action-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-right: 1rem;
}

.action-delete { color: var(--danger); }

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

@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        height: auto;
        position: relative;
        padding: 2rem;
    }
    .sidebar h2 { margin-bottom: 1.5rem; }
    .sidebar nav ul { display: block; }
    .sidebar nav ul li { margin-bottom: 0.5rem; }
}
/* --- Mobile Optimization --- */

@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        padding: 1.5rem;
    }
    
    .sidebar nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .sidebar nav ul li {
        margin-bottom: 0;
    }

    .main-content {
        padding: 2rem 1rem;
    }
    
    .admin-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    nav.header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        display: none;
        flex-direction: column;
        padding: 2rem;
        z-index: 2000;
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    nav.header-nav.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    nav.header-nav ul {
        flex-direction: column !important;
        align-items: center;
        width: 100%;
        gap: 0;
    }

    nav.header-nav ul li {
        width: 100%;
        text-align: center;
        margin: 0;
    }
    
    nav.header-nav ul li a {
        display: block;
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btns .btn {
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
    }

    section#about > .container > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

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

    .footer-section {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 2rem;
    }

    .footer-section:last-child {
        border-bottom: none;
    }

    /* Mobile Header Height Reduction (25% smaller) */
    header {
        padding: 1.3rem 0;
    }
    .header-inner {
        padding: 1.3rem 0;
    }
    .logo img {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-banner.active {
    display: flex;
    transform: translateY(0);
}

.cookie-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-family: var(--font-heading);
}

.cookie-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        padding: 1.5rem;
    }
}
/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: whatsapp-pulse 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #25d366; /* WhatsApp Green */
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    width: 40px;
    height: 40px;
    fill: white;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.6); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(59, 130, 246, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}
