/* style.css - Core Premium Styling for Masabeeh Al-Huda Association */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Color and Layout Tokens */
:root {
    --primary: #0A6FD6;
    --primary-hover: #085bb1;
    --secondary: #00B4D8;
    --secondary-hover: #0096b4;
    --accent: #FF9F1C;

    /* Light Mode Palette */
    --bg-main: #FFFFFF;
    --bg-section: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-input: #F1F5F9;
    --border-color: #E2E8F0;
    --text-title: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --text-white: #FFFFFF;

    /* Shadows & Radii */
    --radius: 18px;
    --radius-sm: 8px;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
    --shadow-glow: 0 0 20px rgba(10, 111, 214, 0.15);

    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --grad-primary-hover: linear-gradient(135deg, var(--primary-hover) 0%, var(--secondary-hover) 100%);
    --grad-soft: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);

    /* Font Family defaults based on direction */
    --font-arabic: 'Cairo', sans-serif;
    --font-english: 'Poppins', sans-serif;
    --font-family: var(--font-arabic);
}

/* Dark Mode Tokens */
[data-theme="dark"] {
    --bg-main: #0B0F19;
    --bg-section: #121824;
    --bg-card: #1E293B;
    --bg-input: #334155;
    --border-color: #334155;
    --text-title: #F8FAFC;
    --text-body: #CBD5E1;
    --text-muted: #94A3B8;

    --grad-soft: linear-gradient(180deg, #121824 0%, #0B0F19 100%);
    --glass-bg: rgba(15, 23, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-body);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Overrides based on Lang attributes */
body[dir="rtl"] {
    --font-family: var(--font-arabic);
}

body[dir="ltr"] {
    --font-family: var(--font-english);
}

/* Standard Layout Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-gray {
    background-color: var(--bg-section);
}

/* Header & Navbar - Glassmorphism */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.nav-brand-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.nav-brand-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 24px;
}

.mobile-close-item {
    display: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-body);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Language and Theme Switchers */
.btn-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-body);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.btn-toggle:hover {
    background-color: var(--bg-input);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lang {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-lang:hover {
    background-color: var(--primary);
    color: var(--text-white);
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--grad-primary-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-input);
    color: var(--text-body);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0;
    min-height: calc(85vh - 80px);
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(10, 111, 214, 0.03), rgba(0, 180, 216, 0.08)), var(--grad-soft);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    top: -200px;
    right: -200px;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-title);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-body);
    margin-bottom: 35px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-media {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-media-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--bg-card);
}

.hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transform: scale(1.02);
}

/* Statistics Section */
.stats-bar {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    box-shadow: var(--shadow-md);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
    font-family: var(--font-english);
}

.stat-title {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: var(--grad-primary);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 35px 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    text-align: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(10, 111, 214, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 25px auto;
}

.service-card:hover .service-icon {
    background: var(--grad-primary);
    color: var(--text-white);
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--text-title);
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Live Donation Cases / Campaigns */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
}

.case-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
}

.case-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.case-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--text-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
}

body[dir="ltr"] .case-badge {
    right: auto;
    left: 15px;
}

.case-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.case-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-content {
    padding: 25px;
}

.case-content h3 {
    font-size: 1.25rem;
    color: var(--text-title);
    margin-bottom: 12px;
    font-weight: 700;
}

.case-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    height: 54px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.case-progress-info {
    margin-bottom: 20px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--grad-primary);
    border-radius: 4px;
    width: 0%;
    /* Populated by js */
}

.progress-numbers {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
}

.progress-collected {
    color: var(--primary);
}

.progress-target {
    color: var(--text-title);
}

.case-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

.case-days {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.case-days i {
    color: var(--secondary);
    margin-right: 5px;
}

body[dir="rtl"] .case-days i {
    margin-right: 0;
    margin-left: 5px;
}

/* Success Stories */
.stories-slider {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.story-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.story-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.story-img-box {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 240px;
    box-shadow: var(--shadow-sm);
}

.story-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.7);
    color: var(--text-white);
    padding: 8px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.story-info h3 {
    font-size: 1.6rem;
    color: var(--text-title);
    margin-bottom: 20px;
}

.story-desc {
    color: var(--text-body);
    margin-bottom: 25px;
}

.story-badge {
    background: rgba(0, 180, 216, 0.08);
    border-left: 4px solid var(--secondary);
    padding: 15px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-hover);
}

body[dir="ltr"] .story-badge {
    border-left: none;
    border-right: 4px solid var(--secondary);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

/* Latest News / Blog */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.news-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.news-content h3 {
    font-size: 1.2rem;
    color: var(--text-title);
    margin-bottom: 12px;
    font-weight: 700;
}

.news-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Photo Gallery & Masonry Grid */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-body);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--grad-primary);
    color: var(--text-white);
    border-color: transparent;
}

.gallery-grid {
    column-count: 3;
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 3px solid var(--bg-card);
}

.gallery-item img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 111, 214, 0.85);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.gallery-overlay span {
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Partners Slider */
.partners-slider {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.partners-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scrollLogos 20s linear infinite;
}

.partner-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.partner-logo i {
    font-size: 2rem;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Forms (Volunteer, Request Help, Contact, Donate) */
.form-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-title);
}

.form-control {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-body);
    font-family: inherit;
    font-size: 0.95rem;
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(10, 111, 214, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Contact Grid & Map */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.contact-info-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.contact-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-info-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: rgba(10, 111, 214, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 4px;
}

.contact-info-text p,
.contact-info-text a {
    font-size: 0.9rem;
    color: var(--text-body);
    text-decoration: none;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: 30px;
    border: 1px solid var(--border-color);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Donation Flow Page */
.donate-amount-select {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.amount-btn {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-title);
    font-weight: 700;
    padding: 12px;
    cursor: pointer;
    font-family: var(--font-english);
    font-size: 1rem;
}

.amount-btn.active,
.amount-btn:hover {
    background-color: var(--primary);
    color: var(--text-white);
    border-color: transparent;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.method-card {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.method-card input {
    display: none;
}

.method-card i {
    font-size: 1.8rem;
    color: var(--text-muted);
}

.method-card span {
    font-size: 0.8rem;
    font-weight: 700;
}

.method-card.active {
    border-color: var(--primary);
    background-color: rgba(10, 111, 214, 0.03);
}

.method-card.active i {
    color: var(--primary);
}

/* User & Admin Dashboard Layout */
.dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 80px);
}

.sidebar {
    background-color: var(--bg-section);
    border-right: 1px solid var(--border-color);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

body[dir="rtl"] .sidebar {
    border-right: none;
    border-left: 1px solid var(--border-color);
}

.sidebar-brand {
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--text-body);
    font-weight: 600;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--grad-primary);
    color: var(--text-white);
}

.dash-main {
    padding: 40px;
    overflow-y: auto;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.dash-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-title);
}

/* Dashboard Cards and Tables */
.dash-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.dash-stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-stat-card-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 4px;
}

.dash-stat-card-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.dash-stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background-color: rgba(10, 111, 214, 0.08);
    color: var(--primary);
}

.dash-table-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 35px;
}

.dash-table-title {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-title);
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

body[dir="rtl"] .dash-table {
    text-align: right;
}

.dash-table th,
.dash-table td {
    padding: 16px 25px;
    font-size: 0.9rem;
}

.dash-table th {
    background-color: var(--bg-section);
    font-weight: 700;
    color: var(--text-title);
    border-bottom: 1px solid var(--border-color);
}

.dash-table td {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-body);
}

.dash-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.status-completed,
.status-approved {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-pending {
    background-color: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.status-rejected {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Certificate Generator UI */
.cert-card {
    background: linear-gradient(135deg, rgba(10, 111, 214, 0.03) 0%, rgba(0, 180, 216, 0.05) 100%), var(--bg-card);
    border: 3px double var(--primary);
    border-radius: var(--radius);
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(10, 111, 214, 0.2);
    border-radius: calc(var(--radius) - 5px);
    pointer-events: none;
}

.cert-logo {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.cert-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 25px;
}

.cert-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 40px;
}

/* Footer Section */
footer {
    background-color: var(--bg-section);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 15px;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.footer-social-link:hover {
    background-color: var(--primary);
    color: var(--text-white);
    border-color: transparent;
}

.footer-links h3,
.footer-newsletter h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 20px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-links-list a:hover {
    color: var(--primary);
}

.footer-newsletter p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Modal and Interactive Items */
.notification-bell {
    position: relative;
    cursor: pointer;
}

.notification-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--accent);
    color: var(--text-white);
    border-radius: 50%;
    font-size: 0.65rem;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-english);
}

.notifications-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 300px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 100;
}

.notification-item {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background-color: rgba(10, 111, 214, 0.03);
}

/* Mobile Nav Toggle Button */
.nav-toggle {
    display: none;
}

/* Custom Print styles for certificates */
@media print {

    header,
    footer,
    .sidebar,
    .btn,
    .dash-header {
        display: none !important;
    }

    .cert-card {
        border: 4px double #0A6FD6 !important;
        box-shadow: none !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 50px !important;
    }

    body {
        background-color: white !important;
        color: black !important;
    }
}

/* ============================================
   ADMIN PANEL & DASHBOARD STYLES
   ============================================ */

/* Admin Layout: Sidebar + Main */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-section);
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: linear-gradient(180deg, #0B0F19 0%, #1a1f3a 100%);
    color: #E2E8F0;
    position: fixed;
    top: 0;
    right: 0;
    /* RTL default */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

[dir="ltr"] .admin-sidebar {
    right: auto;
    left: 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.sidebar-brand i {
    font-size: 1.5rem;
    color: var(--secondary);
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 1.2rem;
    cursor: pointer;
}

.sidebar-nav {
    padding: 15px 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    border-right: 3px solid transparent;
    position: relative;
}

[dir="ltr"] .sidebar-link {
    border-right: none;
    border-left: 3px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(10, 111, 214, 0.12);
    color: #FFFFFF;
    border-right-color: var(--secondary);
}

[dir="ltr"] .sidebar-link:hover,
[dir="ltr"] .sidebar-link.active {
    border-left-color: var(--secondary);
    border-right-color: transparent;
}

.sidebar-link.active {
    font-weight: 600;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-badge {
    margin-right: auto;
    margin-left: 5px;
    background: #ef4444;
    color: white;
    border-radius: 50px;
    font-size: 0.7rem;
    padding: 2px 8px;
    font-weight: 700;
    font-family: var(--font-english);
}

[dir="ltr"] .sidebar-badge {
    margin-left: auto;
    margin-right: 5px;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 10px 20px;
}

.sidebar-link-danger {
    color: #f87171 !important;
}

.sidebar-link-danger:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #fca5a5 !important;
}

/* Main Admin Area */
.admin-main {
    flex: 1;
    margin-right: 260px;
    padding: 0;
    min-height: 100vh;
}

[dir="ltr"] .admin-main {
    margin-right: 0;
    margin-left: 260px;
}

/* Admin Topbar */
.admin-topbar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 30px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: var(--shadow-sm);
}

.admin-topbar h1 {
    font-size: 1.25rem;
    color: var(--text-title);
    font-weight: 700;
    flex: 1;
}

.admin-topbar h1 i {
    color: var(--primary);
    margin-left: 5px;
}

[dir="ltr"] .admin-topbar h1 i {
    margin-left: 0;
    margin-right: 5px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-title);
    cursor: pointer;
    padding: 5px;
}

/* Admin Dashboard Cards */
.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 25px 30px;
}

.admin-stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 22px 25px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--card-accent, var(--primary));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: var(--card-accent, var(--primary));
    opacity: 0.05;
    border-radius: 50%;
    transform: translate(20px, -20px);
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-accent, var(--primary));
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-card-info {
    flex: 1;
}

.stat-card-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-title);
    line-height: 1.2;
    font-family: var(--font-english);
}

.stat-card-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-card-count {
    position: absolute;
    bottom: 12px;
    left: 25px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-english);
}

[dir="ltr"] .stat-card-count {
    left: auto;
    right: 25px;
}

.stat-card-link {
    position: absolute;
    bottom: 12px;
    left: 25px;
    font-size: 0.78rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

[dir="ltr"] .stat-card-link {
    left: auto;
    right: 25px;
}

.stat-card-link:hover {
    text-decoration: underline;
}

.stat-card-alert {
    position: absolute;
    bottom: 12px;
    left: 25px;
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 600;
}

[dir="ltr"] .stat-card-alert {
    left: auto;
    right: 25px;
}

/* Admin Grid Layout */
.admin-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    padding: 0 30px 30px;
}

/* Admin Panel (White Card Container) */
.admin-panel {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin: 0 30px 25px;
    overflow: hidden;
}

.admin-grid-2 .admin-panel {
    margin: 0;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 25px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
}

.panel-header h2 {
    font-size: 1.05rem;
    color: var(--text-title);
    font-weight: 700;
}

.panel-header h2 i {
    color: var(--primary);
    margin-left: 6px;
}

[dir="ltr"] .panel-header h2 i {
    margin-left: 0;
    margin-right: 6px;
}

/* Data Tables */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    white-space: nowrap;
}

[dir="ltr"] .data-table th,
[dir="ltr"] .data-table td {
    text-align: left;
}

.data-table th {
    background: var(--bg-section);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.data-table tbody tr:hover {
    background: rgba(10, 111, 214, 0.02);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.badge-info {
    background: rgba(10, 111, 214, 0.12);
    color: #0A6FD6;
}

.badge-secondary {
    background: rgba(100, 116, 139, 0.12);
    color: #64748B;
}

[data-theme="dark"] .badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

[data-theme="dark"] .badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

[data-theme="dark"] .badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

[data-theme="dark"] .badge-info {
    background: rgba(10, 111, 214, 0.2);
    color: #60a5fa;
}

/* Progress Mini Bar */
.progress-mini {
    width: 100px;
    height: 6px;
    background: var(--bg-input);
    border-radius: 50px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
}

[dir="ltr"] .progress-mini {
    margin-left: 0;
    margin-right: 6px;
}

.progress-mini-bar {
    height: 100%;
    background: var(--grad-primary);
    border-radius: 50px;
    transition: width 0.6s ease;
}

/* Alerts */
.alert {
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    margin: 15px 30px;
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

/* Button Variants */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 6px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    transition: all 0.25s ease;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-body);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.form-control-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-body);
    font-family: inherit;
    cursor: pointer;
}

.actions-cell {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Empty State */
.empty-state {
    padding: 50px 20px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 15px;
    display: block;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 15px;
}

/* ============================================
   DONOR DASHBOARD STYLES
   ============================================ */

.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dash-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.dash-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.dash-card-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-title);
    line-height: 1.2;
    font-family: var(--font-english);
}

.dash-card-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.dash-section {
    margin-bottom: 35px;
}

.dash-section .section-title {
    font-size: 1.2rem;
    color: var(--text-title);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-section .section-title i {
    color: var(--primary);
}

/* Certificate Card */
.cert-card {
    background: var(--grad-primary);
    border-radius: var(--radius);
    padding: 35px;
    display: flex;
    align-items: center;
    gap: 25px;
    color: white;
    box-shadow: var(--shadow-md);
}

.cert-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.cert-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.cert-info p {
    font-size: 0.88rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

/* Admin Gallery Grid */
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    padding: 20px 25px;
}

.admin-gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.admin-gallery-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.admin-gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.admin-gallery-item:hover .admin-gallery-img img {
    transform: scale(1.08);
}

.admin-gallery-info {
    padding: 12px 15px;
    background: var(--bg-card);
}

.admin-gallery-info h4 {
    font-size: 0.85rem;
    color: var(--text-title);
    margin-bottom: 5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Admin Requests Grid (Cards) */
.admin-requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 20px;
    padding: 25px 30px;
}

.request-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.request-card:hover {
    box-shadow: var(--shadow-md);
}

.request-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-section);
    flex-wrap: wrap;
    gap: 10px;
}

.request-card-header h3 {
    font-size: 1rem;
    color: var(--text-title);
    font-weight: 700;
}

.request-card-header h3 i {
    color: var(--primary);
    margin-left: 4px;
}

[dir="ltr"] .request-card-header h3 i {
    margin-left: 0;
    margin-right: 4px;
}

.request-card-header small {
    color: var(--text-muted);
    font-size: 0.78rem;
    display: block;
    margin-top: 3px;
}

.request-card-body {
    padding: 18px 22px;
}

.request-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.request-detail strong {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 3px;
}

.request-detail span,
.request-detail p {
    font-size: 0.85rem;
    color: var(--text-body);
}

.request-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-section);
}

/* ============================================
   ADMIN RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(100%);
    }

    [dir="ltr"] .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-toggle {
        display: block;
    }

    .admin-main {
        margin-right: 0;
        margin-left: 0;
    }

    .admin-topbar {
        padding: 15px 20px;
    }

    .admin-cards {
        padding: 20px;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .admin-panel {
        margin: 0 15px 20px;
    }

    .admin-grid-2 {
        grid-template-columns: 1fr;
        padding: 0 15px 20px;
    }

    .admin-requests-grid {
        grid-template-columns: 1fr;
        padding: 20px 15px;
    }
}

@media (max-width: 576px) {
    .admin-topbar h1 {
        font-size: 1rem;
    }

    .admin-user {
        display: none;
    }

    .admin-cards {
        grid-template-columns: 1fr;
    }

    .admin-stat-card {
        padding: 16px 18px;
    }

    .stat-card-info h3 {
        font-size: 1.2rem;
    }

    .request-detail-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        padding: 15px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
        font-size: 0.78rem;
    }
}