:root {
    /* الألوان الأساسية */
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --accent-color: #e943c5;
    --success-color: #d638f9;
    --warning-color: #fa709a;
    --danger-color: #f5576c;
    --info-color: #4facfe;

    /* ألوان محايدة */
    --text-dark: #022f5b;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;

    /* الظلال */
    --shadow-sm: 0 2px 8px rgba(102, 126, 234, 0.15);
    --shadow-md: 0 4px 16px rgba(102, 126, 234, 0.2);
    --shadow-lg: 0 8px 32px rgba(102, 126, 234, 0.25);

    /* الانتقالات */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* الحواف */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: "El Messiri", sans-serif;
    font-feature-settings: "locl" 0;
}

* {
    font-feature-settings: "locl" 0;
}

body,
input,
select,
button,
span,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-variant-numeric: normal;
    font-feature-settings: "lnum" 1, "tnum" 1, "locl" 0;
}

input[type=number],
input[type=tel],
.english-digits {
    font-family: Arial, sans-serif !important;
    direction: ltr;
}

/* ========================================
   شريط التنقل الرئيسي (Navbar)
   ======================================== */

.navbar {
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: sticky;
    /* top: 0; */
    z-index: 1000;
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
}

.tagline {
    top: 50px;
    margin-right: 10px;
    position: absolute;
}

/* ضع زر القائمة في اليسار على الشاشات الصغيرة */
@media (max-width: 991.98px) {
    .navbar .container {
        display: flex !important;
        justify-content: space-between !important;
    }

    .navbar .navbar-toggler {
        margin-right: auto !important;
        /* يدفع الزر لليسار في RTL */
        margin-left: 0 !important;
        order: 1 !important;
    }

    /* تأكد أن العلامة التجارية تبقى في اليمين */
    .navbar .navbar-brand {
        margin-left: 0 !important;
        order: 0 !important;
    }

    .navbar .navbar-collapse {
        order: 2 !important;
        width: 100%;
    }
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    transition: transform var(--transition-fast);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-left: 0.5rem;
}

/* ========================================
   عناصر القائمة (Nav Items)
   ======================================== */

/* تمكين الالتفاف التلقائي للقائمة في جميع الأحجام */
.navbar-nav,
ul.navbar-nav,
ul.navbar-nav.me-auto,
ul.navbar-nav.ms-auto {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.25rem !important;
    max-width: 100% !important;
    overflow: visible !important;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    position: relative;
    white-space: nowrap;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(102, 126, 234, 0.08);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 80%;
}

ul.navbar-nav.ms-auto,
ul.navbar-nav.me-auto {
    margin-right: auto;
    margin-left: auto;
    flex-wrap: wrap !important;
}

/* ========================================
   تخطيطات البلكات الذكية (Fallback Grid)
   ======================================== */

.smart-block .row {
    --smart-block-gutter-x: var(--bs-gutter-x, 1.5rem);
    --smart-block-gutter-y: var(--bs-gutter-y, 1.5rem);
    display: flex;
    flex-wrap: wrap;
    margin-right: calc(var(--smart-block-gutter-x) * -0.5);
    margin-left: calc(var(--smart-block-gutter-x) * -0.5);
    row-gap: var(--smart-block-gutter-y);
}

.smart-block .row>[class*="col-"] {
    flex: 0 0 auto;
    width: 100%;
    padding-right: calc(var(--smart-block-gutter-x) * 0.5);
    padding-left: calc(var(--smart-block-gutter-x) * 0.5);
}

@media (min-width: 576px) {
    .smart-block .col-sm-6 {
        width: 50%;
    }
}

@media (min-width: 768px) {
    .smart-block .col-md-6 {
        width: 50%;
    }

    .smart-block .col-md-4 {
        width: 33.3333%;
    }
}

@media (min-width: 992px) {
    .smart-block .col-lg-4 {
        width: 33.3333%;
    }

    .smart-block .col-lg-3 {
        width: 25%;
    }
}

/* ========================================
   القوائم المنسدلة (Dropdowns)
   ======================================== */

.navbar-nav .dropdown {
    position: relative;
}

.navbar-nav .dropdown-toggle::after {
    margin-right: 0.5rem;
    transition: transform var(--transition-fast);
}

.navbar-nav .dropdown:hover>.dropdown-toggle::after {
    transform: rotate(180deg);
}

.navbar-nav .dropdown-menu {
    background: var(--bg-white);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: 0.2rem;
    /* إزالة الفجوة بين الزر والقائمة لتجنب اختفاء القائمة عند الانتقال بالماوس */
    top: 100%;
    margin-top: -1px;
    min-width: 220px;
    display: none;
}


/* فتح القائمة عند hover على الشاشات الكبيرة */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover>.dropdown-menu {
        display: block;
    }
}

/* إظهار القوائم على الأجهزة الصغيرة عند فتحها بالضغط */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu.show {
        display: block;
    }

    /* جعل نصوص القوائم الفرعية باللون الأبيض على الجوال */
    .navbar-nav .dropdown-menu.show .dropdown-item {
        color: #fff !important;
    }

    .navbar-nav .dropdown-menu.show .dropdown-item:hover,
    .navbar-nav .dropdown-menu.show .dropdown-item:focus {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.12);
    }
}

/* تعطيل بقاء القائمة مفتوحة عند الضغط (فقط على الشاشات الكبيرة) */
@media (min-width: 992px) {

    .navbar-nav .dropdown.show>.dropdown-menu,
    .navbar-nav .dropdown-menu.show {
        display: none !important;
    }
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.navbar-nav .dropdown-item {
    border-radius: var(--radius-md);
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: var(--primary-color);
    /* padding-right: 2rem; */
}

.navbar-nav .dropdown-item i {
    margin-left: 0.75rem;
    opacity: 0.7;
}

/* إزالة الخط السفلي عن الروابط في شريط التنقل الرئيسي عند التأشير */
.main-nav .nav-link:hover,
.main-nav .nav-link:focus,
.main-nav .nav-link:active {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}

/* ========================================
   القوائم الفرعية متعددة المستويات
   ======================================== */

.navbar-nav .dropdown-submenu {
    position: relative;
}

.navbar-nav .dropdown-submenu>.dropdown-menu {
    top: 0;
    right: 100%;
    margin-top: 0;
    margin-left: -1px;
    display: none;
}

@media (min-width: 992px) {
    .navbar-nav .dropdown-submenu:hover>.dropdown-menu {
        display: block;
    }
}

@media (max-width: 991.98px) {
    .navbar-nav .dropdown-submenu .dropdown-menu.show {
        display: block;
    }
}

@media (min-width: 992px) {

    .navbar-nav .dropdown-submenu.show>.dropdown-menu,
    .navbar-nav .dropdown-submenu .dropdown-menu.show {
        display: none !important;
    }
}

.navbar-nav .dropdown-submenu>.dropdown-item::after {
    /* content: '\F284'; */
    position: absolute;
    left: 1rem;
    opacity: 0.5;
    transition: all var(--transition-fast);
}

.navbar-nav .dropdown-submenu:hover>.dropdown-item::after {
    left: 0.75rem;
    opacity: 1;
}

/* إزالة السهم الافتراضي من التoggles داخل القوائم الفرعية */
.navbar-nav .dropdown-menu .dropdown-toggle::after {
    display: none !important;
}

/* ========================================
   أزرار التنقل المخصصة
   ======================================== */

.nav-custom-btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nav-custom-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
    border-radius: var(--radius-md);
}

.nav-custom-btn:hover::before {
    left: 100%;
}

.nav-custom-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: #fff !important;
}

.nav-custom-btn:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.nav-custom-btn i {
    margin-left: 0.5rem;
}

/* تنوعات الألوان */
.nav-custom-btn.btn-success {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--success-color) 100%);
}

.nav-custom-btn.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #fee140 100%);
}

.nav-custom-btn.btn-danger {
    background: linear-gradient(135deg, #f093fb 0%, var(--danger-color) 100%);
}

.nav-custom-btn.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #00f2fe 100%);
}

/* أحجام الأزرار */
.nav-custom-btn.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.nav-custom-btn.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

/* أزرار محددة */
.nav-custom-btn.btn-outline {
    background: transparent;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.nav-custom-btn.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff !important;
    border-color: transparent;
}

/* ========================================
   مقطع البطل (Hero Section)
   ======================================== */
section {
    padding: 60px 0;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

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

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-section .btn {
    margin: 0.5rem;
}

/* ========================================
   البطاقات (Cards)
   ======================================== */

.feature-card,
.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    height: 100%;
}

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

.feature-card .icon,
.stat-card .icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.feature-card .icon::before,
.stat-card .icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: pulse 3s infinite;
}

@keyframes pulse {

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

    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.feature-card .icon.icon-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.feature-card .icon.icon-success {
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    color: white;
}

.feature-card .icon.icon-warning {
    background: linear-gradient(135deg, var(--warning-color), #fee140);
    color: white;
}

.feature-card .icon.icon-info {
    background: linear-gradient(135deg, var(--info-color), #00f2fe);
    color: white;
}

.feature-card h3,
.stat-card h3 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p,
.stat-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin: 1rem 0;
}

/* ========================================
   مقطع الدعوة لإجراء (CTA Section)
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    margin: 4rem 0;
    border-radius: var(--radius-xl);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* ========================================
   نموذج تسجيل الدخول
   ======================================== */

.login-container {
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.login-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    width: 100%;
    max-width: 450px;
}

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

.login-card .logo i {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-card h2 {
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.login-card .form-control {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    transition: all var(--transition-fast);
}

.login-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.login-card .btn-login {
    width: 100%;
    padding: 0.875rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: var(--radius-md);
    color: white;
    transition: all var(--transition-normal);
}

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

/* ========================================
   التذييل (Footer)
   ======================================== */

.footer {
    color: white;
    padding: 50px 0 20px;
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: all var(--transition-fast);
}

.footer a:hover {
    color: white;
    padding-right: 0.5rem;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.5rem;
    transition: all var(--transition-normal);
}

.footer .social-links a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-5px);
    padding: 0;
}

.footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   استجابة الشاشات الصغيرة
   ======================================== */

@media (max-width: 991px) {
    .navbar-nav .dropdown-menu {
        border-radius: 0;
        /* box-shadow: none; */
        background: rgba(102, 126, 234, 0.05);
    }

    /* التأكد من التفاف العناصر في الشاشات الصغيرة */
    .navbar-nav {
        justify-content: flex-start !important;
        width: 100%;
    }

    .navbar-nav .nav-item {
        flex-shrink: 0;
    }

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

    .hero-section {
        padding: 4rem 0;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .login-card {
        padding: 2rem;
    }
}

span.position-absolute.top-50.end-0.translate-middle-y.me-3.eye-icon {
    margin-top: 15px;
}

/* ===================================
   تنسيقات قسم الحوكمة
   Governance Section Styling
   =================================== */

/* تأثيرات الانتقال */
.transition {
    transition: all 0.3s ease-in-out;
}

/* تأثير الظل عند المرور */
.hover-shadow {
    transition: box-shadow 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-3px);
}

/* تنسيق البطاقات الرئيسية */
.card {
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
}

/* تنسيق الروابط في القوائم */
.list-group-item-action {
    transition: all 0.2s ease-in-out;
}

.list-group-item-action:hover {
    background-color: #f8f9fa;
    padding-right: 1.5rem;
}

/* تنسيق الشارات */
.badge {
    font-weight: 500;
    letter-spacing: 0.3px;
}

.badge.rounded-pill {
    padding: 0.5em 1em;
}

/* تنسيق الأيقونات */
.bi {
    vertical-align: middle;
}

/* تنسيق الأزرار */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-color, #198754) 0%, var(--success-color, #146c43) 100%);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color, #ffc107) 0%, #ffb000 100%);
    border: none;
}

/* تنسيق عناوين الصفحات */
.display-5,
.display-6 {
    font-weight: 700;
    color: #212529;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.7;
}

/* تنسيق الحاويات الفارغة */
.text-center .bi-inbox {
    opacity: 0.3;
    font-size: 4rem !important;
}

/* تنسيق أيقونات الملفات */
.bi-file-earmark-pdf {
    color: #dc3545 !important;
}

.bi-file-earmark-word {
    color: #0d6efd !important;
}

.bi-file-earmark-excel {
    color: #198754 !important;
}

.bi-file-earmark-image {
    color: #0dcaf0 !important;
}

/* تنسيق قوائم المرفقات */
.list-group-item {
    border-color: #e9ecef;
}

.list-group-flush .list-group-item:hover {
    background-color: #f8f9fa;
}

/* تنسيق النصوص */
.text-muted {
    color: #6c757d !important;
}

.fw-bold {
    font-weight: 700 !important;
}

/* تنسيق الروابط */
a {
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--secondary-color);
}

/* تنسيق الفواصل */
.card-header {
    background-color: #fff;
    border-bottom: 2px solid #e9ecef;
}

/* استجابة للأجهزة الصغيرة */
@media (max-width: 768px) {
    .display-5 {
        font-size: 2rem;
    }

    .display-6 {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hover-shadow:hover {
        transform: none;
    }
}

/* تنسيق نموذج الشكاوى */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* تنسيق الرسائل */
.alert {
    border-radius: 8px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-info {
    background-color: #cfe2ff;
    color: #084298;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

/* تنسيق محادثات التذاكر */
.bg-light {
    background-color: #f8f9fa !important;
}

/* تأثيرات التمرير */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* تحسين المسافات */
.p-4 {
    padding: 1.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* تنسيق بطاقات الإحصائيات */
.row.g-3 .card {
    transition: all 0.3s ease;
}

.row.g-3 .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* تنسيق Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
}

.breadcrumb-item a:hover {
    color: #ffffff;
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #ffffff;
    font-weight: 600;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "‹";
    font-size: 1.2em;
    color: #ffffff;
    opacity: 0.6;
}

/* تنسيق إشعارات النجاح */
.alert i.bi {
    font-size: 1.5rem;
}

/* تنسيق حقول الإدخال في عرض التذكرة */
input[readonly].form-control {
    background-color: #f8f9fa;
    cursor: pointer;
}

input[readonly].form-control:focus {
    background-color: #e9ecef;
}

/* تحسين قائمة الرسائل في التذاكر */
.card-body .border.rounded {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* تحسين الدوائر في الإصدارات */
.bg-primary.rounded-circle {
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

/* تحسين أيقونات الملفات الكبيرة */
.bi.fs-2 {
    transition: transform 0.2s ease;
}

.list-group-item:hover .bi.fs-2 {
    transform: scale(1.1);
}

/* تحسين الأزرار في المرفقات */
.btn-primary,
.btn-success {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* تحسين النصوص العربية */
body {
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

/* تنسيق خاص للرسائل الفارغة */
.text-center .opacity-50 {
    opacity: 0.25 !important;
}

/* ===================================
   تنسيقات إضافية للحوكمة (تنظيف Inline Styles)
   =================================== */

.status-dot {
    font-size: 0.6em;
}

.ticket-link-input {
    font-size: 0.75rem;
    width: 100%;
    max-width: 300px;
}

.ticket-chat-box {
    max-height: 450px;
    overflow-y: auto;
    background-color: #f8f9fa;
}

.version-icon-circle {
    width: 50px;
    height: 50px;
}

/* ===================================
   تنسيقات لوحة تحكم المتبرع (Donor Dashboard)
   =================================== */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --secondary-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.donor-dashboard-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.dashboard-wrapper {
    background: rgba(255, 255, 255, 0.95);
    min-height: 100vh;
    padding-bottom: 40px;
}

/* Welcome Banner */
.welcome-banner {
    background: var(--primary-gradient);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

/* Stats Cards */
.stat-card {
    border: none;
    border-radius: 20px;
    padding: 1.8rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.stat-card.primary {
    background: var(--primary-gradient);
}

.stat-card.success {
    background: var(--success-gradient);
}

.stat-card.warning {
    background: var(--warning-gradient);
}

.stat-card.info {
    background: var(--info-gradient);
}

.stat-card.secondary {
    background: var(--secondary-gradient);
}

@keyframes bounce {

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

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

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Content Cards */
.content-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
}

.content-card:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.content-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    padding: 1.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #495057;
}

.content-card .card-body {
    padding: 1.5rem;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    margin-top: 1rem;
}

/* Table Styling */
.modern-table {
    border-radius: 12px;
    overflow: hidden;
}

.modern-table thead {
    background: var(--primary-gradient);
    color: white;
}

.modern-table thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.modern-table tbody tr {
    transition: all 0.3s ease;
}

.modern-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: scale(1.01);
}

.modern-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

/* Badges */
.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.status-badge.completed {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.status-badge.pending {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: #718096;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #a0aec0;
}

/* Action Buttons */
button {
    white-space: nowrap;
}

.btn-gradient {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Sponsorship Cards */
.sponsorship-item {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: white;
}

.sponsorship-item:hover {
    border-color: #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

/* Gift Cards */
.gift-item {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.gift-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(252, 182, 159, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-banner h2 {
        font-size: 1.5rem;
    }

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

    .chart-container {
        height: 250px;
    }
}

/* ===== Donor Navbar Styles ===== */
.donor-navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.donor-navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    gap: 2rem;
}

/* Brand */
.donor-navbar-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.donor-navbar-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.donor-navbar-brand .brand-link:hover .brand-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05) rotate(5deg);
}

.donor-navbar-brand .brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

/* Navigation Menu */
.donor-navbar-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.donor-navbar-nav {
    display: flex;
    gap: 0.5rem;
}

.donor-navbar-nav .nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.donor-navbar-nav .nav-item i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.donor-navbar-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
}

.donor-navbar-nav .nav-item:hover i {
    transform: scale(1.15);
}

.donor-navbar-nav .nav-item.active {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.donor-navbar-nav .nav-item .nav-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 3px;
    background: white;
    border-radius: 3px 3px 0 0;
    transition: transform 0.3s ease;
}

.donor-navbar-nav .nav-item.active .nav-indicator {
    transform: translateX(-50%) scaleX(1);
}

/* إخفاء الملف الشخصي والإعدادات في الشاشات الكبيرة (متوفرة في قائمة المستخدم) */
.donor-navbar-nav .nav-item-user {
    display: none;
}

.donor-navbar-nav .nav-item .badge-count {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff4757;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    animation: pulse 2s infinite;
}

/* Actions */
.donor-navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.action-item .action-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-item .action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.action-item .action-btn i {
    font-size: 1.2rem;
}

.action-item .badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4757;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

/* User Button */
.user-btn {
    padding: 0.5rem 1rem 0.5rem 0.5rem !important;
}

.user-avatar,
.user-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown Menus */
.dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 0;
    margin-top: 0.5rem;
    min-width: 280px;
    opacity: 1;
    transform: none;
}

/* إزالة التأثير الحركي المزعج - القائمة تظهر مباشرة بدون انزلاق */
.dropdown-menu.show {
    opacity: 1;
    transform: none;
}

.dropdown-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px 16px 0 0;
}

.dropdown-header h6 {
    margin: 0;
    font-weight: 700;
    color: #2d3748;
    font-size: 1rem;
}

.dropdown-header .mark-all-read {
    font-size: 0.8rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.dropdown-header .mark-all-read:hover {
    text-decoration: underline;
}

.dropdown-item {
    padding: 0.55rem 1.0rem;
    display: flex;
    align-items: center;
    color: #2d3748;
    transition: all 0.2s ease;
}

.dropdown-item i {
    font-size: 1.1rem;
    width: 20px;
}

.dropdown-item:hover {
    background: #f7fafc;
    color: #667eea;
    /* border-bottom-right-radius: 16px;
    border-bottom-left-radius: 16px; */
}

.dropdown-footer {
    padding: 0.55rem 1.0rem;
    background: #f7fafc;
    border-radius: 0 0 16px 16px;
    text-align: center;
}

.dropdown-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.dropdown-footer a:hover {
    text-decoration: underline;
}

/* Notifications Menu */
.notifications-menu {
    max-width: 380px;
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 5px;
    text-align: right;
}

.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.notification-item:hover {
    background: #f7fafc;
}

.notification-item.unread {
    background: #edf2f7;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.notification-icon.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.notification-icon.info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

.notification-icon.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.notification-icon.warning {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
}

.notification-icon.danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

.notification-icon.secondary {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
}

.notification-content {
    flex: 1;
}

.notification-text {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: #2d3748;
    font-weight: 500;
}

.notification-time {
    font-size: 0.75rem;
    color: #718096;
}

.no-notifications {
    text-align: center;
    padding: 3rem 2rem;
    color: #a0aec0;
}

.no-notifications i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.no-notifications p {
    margin: 0;
    font-size: 0.9rem;
}

/* User Menu */
.user-menu {
    min-width: 260px;
}

.user-menu .user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-menu .user-info img,
.user-menu .user-info .user-avatar-placeholder {
    width: 48px;
    height: 48px;
}

.user-menu .user-info h6 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
}

.user-menu .user-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #718096;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Responsive */
@media (max-width: 992px) {
    .donor-navbar-content {
        gap: 1rem;
    }

    .donor-navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 1001;
        transition: right 0.3s ease;
        padding: 2rem 0;
        overflow-y: auto;
    }

    .donor-navbar-menu.active {
        right: 0;
    }

    .donor-navbar-nav {
        flex-direction: column;
        gap: 0.25rem;
    }

    .donor-navbar-nav .nav-item {
        color: #2d3748;
        justify-content: flex-start;
        padding: 1rem 1.5rem;
    }

    .donor-navbar-nav .nav-item:hover,
    .donor-navbar-nav .nav-item.active {
        background: #f7fafc;
        color: #667eea;
    }

    .donor-navbar-nav .nav-item .nav-indicator {
        display: none;
    }

    /* إظهار روابط الملف الشخصي والإعدادات في القائمة الجانبية للموبايل */
    .donor-navbar-nav .nav-item-user {
        display: flex !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-overlay.active {
        display: block;
    }

    .user-name {
        display: none;
    }

    /* إخفاء قائمة المستخدم المنسدلة في الموبايل لأن الروابط موجودة في القائمة الجانبية */
    .user-dropdown .dropdown-menu {
        display: none !important;
    }

    .donor-navbar-brand .brand-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .donor-navbar-content {
        padding: 0.75rem 1rem;
    }

    .donor-navbar-brand .brand-text {
        display: none;
    }

    .dropdown-menu {
        min-width: 260px;
    }
}


/* Styles for donations.php */

.donor-donations-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.donor-donations-donor-donations-donations-container {
    padding: 2rem 0;
}

.donor-donations-donor-donations-page-header {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.donor-donations-donor-donations-page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.donor-donations-donor-donations-page-header p {
    margin: 0.5rem 0 0 0;
    color: #718096;
}

/* Stats Cards */
.donor-donations-donor-donations-stats-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.donor-donations-donor-donations-stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.donor-donations-donor-donations-stats-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.donor-donations-donor-donations-stats-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #2d3748;
}

.donor-donations-donor-donations-stats-card p {
    color: #718096;
    margin: 0.5rem 0 0 0;
}

.donor-donations-donor-donations-stats-card.purple .icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.donor-donations-donor-donations-stats-card.blue .icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.donor-donations-donor-donations-stats-card.green .icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.donor-donations-donor-donations-stats-card.orange .icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

/* Filters */
.filters-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.filters-card .filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

.export-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Donation Card */
.donor-donations-donor-donations-donation-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.donor-donations-donor-donations-donation-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.donation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f7fafc;
}

.order-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2d3748;
    font-weight: 600;
}

.order-meta {
    display: flex;
    gap: 1rem;
    color: #718096;
    font-size: 0.9rem;
}

.order-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.pending {
    background: #fed7d7;
    color: #c53030;
}

.status-badge.processing {
    background: #fef3c7;
    color: #92400e;
}

.items-list {
    margin-bottom: 1rem;
}

.item-row {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    align-items: center;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.item-image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.item-details {
    flex: 1;
}

.item-title {
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.item-type {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.item-type.sponsorship {
    background: #e0e7ff;
    color: #4338ca;
}

.item-type.donation {
    background: #dbeafe;
    color: #1e40af;
}

.item-amount {
    text-align: left;
    font-weight: 700;
    color: #667eea;
    font-size: 1.25rem;
}

.donation-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid #f7fafc;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-action {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.no-donations {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-donations i {
    font-size: 5rem;
    color: #cbd5e0;
    margin-bottom: 1.5rem;
}

.no-donations h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.no-donations p {
    color: #718096;
    margin-bottom: 2rem;
}

@media print {
    .donor-donations-page {
        background: white !important;
    }

    body * {
        visibility: hidden;
    }

    .print-area,
    .print-area * {
        visibility: visible;
    }

    .print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    .no-print,
    .donor-navbar,
    .filters-card,
    nav,
    .donor-donations-donor-donations-page-header {
        display: none !important;
    }

    .donor-donations-donor-donations-donation-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        background: white !important;
    }

    .item-row {
        background: white !important;
    }

    .donor-donations-donor-donations-donations-container {
        background: white !important;
    }
}

@media (max-width: 768px) {
    .donor-donations-donor-donations-page-header h1 {
        font-size: 1.5rem;
    }

    .item-row {
        flex-direction: column;
        text-align: center;
    }

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

    .donation-footer {
        flex-direction: column;
        gap: 1rem;
    }
}


/* Styles for sponsorships.php */

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

.donor-sponsorships-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.donor-sponsorships-donor-sponsorships-main-content {
    padding: 2rem 0;
}

/* Page Header */
.donor-sponsorships-donor-sponsorships-page-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.donor-sponsorships-donor-sponsorships-page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.donor-sponsorships-donor-sponsorships-page-header p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

/* Stats Cards */
.donor-sponsorships-donor-sponsorships-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.donor-sponsorships-donor-sponsorships-stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.donor-sponsorships-donor-sponsorships-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color, #667eea) 0%, transparent 100%);
}

.donor-sponsorships-donor-sponsorships-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.donor-sponsorships-donor-sponsorships-stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--card-color, #667eea) 0%, var(--card-color-dark, #764ba2) 100%);
    color: white;
}

.donor-sponsorships-donor-sponsorships-stat-card .stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.donor-sponsorships-donor-sponsorships-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3436;
}

/* Filter Bar */
.donor-sponsorships-donor-sponsorships-filter-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.donor-sponsorships-donor-sponsorships-filter-bar .btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    color: #6c757d;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

/* Sponsorship Cards */
.donor-sponsorships-donor-sponsorships-sponsorships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.donor-sponsorships-donor-sponsorships-sponsorship-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.donor-sponsorships-donor-sponsorships-sponsorship-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.donor-sponsorships-donor-sponsorships-sponsorship-card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
}

.donor-sponsorships-donor-sponsorships-sponsorship-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.donor-sponsorships-donor-sponsorships-sponsorship-card .card-image .status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--status-color, #667eea);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.donor-sponsorships-donor-sponsorships-sponsorship-card .card-.donor-sponsorships-page {
    padding: 1.5rem;
}

.donor-sponsorships-donor-sponsorships-sponsorship-card .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.donor-sponsorships-donor-sponsorships-sponsorship-card .card-title i {
    color: #667eea;
    font-size: 1.5rem;
}

.donor-sponsorships-donor-sponsorships-sponsorship-card .card-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.donor-sponsorships-donor-sponsorships-sponsorship-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.donor-sponsorships-donor-sponsorships-sponsorship-card .meta-item {
    display: flex;
    flex-direction: column;
}

.donor-sponsorships-donor-sponsorships-sponsorship-card .meta-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.donor-sponsorships-donor-sponsorships-sponsorship-card .meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3436;
}

.donor-sponsorships-donor-sponsorships-sponsorship-card .meta-value.amount {
    color: #26de81;
    font-size: 1.2rem;
}

/* Progress Bar */
.progress-section {
    margin-bottom: 1rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
}

.progress-percentage {
    font-size: 1rem;
    font-weight: 700;
    color: var(--progress-color, #667eea);
}

.progress-bar-custom {
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--progress-color, #667eea) 0%, var(--progress-color-dark, #764ba2) 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.action-btn.secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.action-btn.secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Empty State */
.donor-sponsorships-donor-sponsorships-empty-state {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.donor-sponsorships-donor-sponsorships-empty-state i {
    font-size: 5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.donor-sponsorships-donor-sponsorships-empty-state h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 1rem;
}

.donor-sponsorships-donor-sponsorships-empty-state p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.donor-sponsorships-donor-sponsorships-empty-state .btn-explore {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.donor-sponsorships-donor-sponsorships-empty-state .btn-explore:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .donor-sponsorships-donor-sponsorships-main-content {
        margin-top: 70px;
        padding: 1rem 0;
    }

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

    .donor-sponsorships-donor-sponsorships-sponsorships-grid {
        grid-template-columns: 1fr;
    }

    .donor-sponsorships-donor-sponsorships-page-header h1 {
        font-size: 1.5rem;
    }

    .donor-sponsorships-donor-sponsorships-filter-bar .btn-group {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }
}

.donor-sponsorships-donor-sponsorships-donations-container {
    padding: 2rem 0;
}


/* Styles for gifts.php */
.donor-gifts-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.gifts-container {
    padding: 2rem 0;
}

.donor-gifts-donor-gifts-page-header {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.donor-gifts-donor-gifts-page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

/* Stats Cards */
.donor-gifts-donor-gifts-stats-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.donor-gifts-donor-gifts-stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.donor-gifts-donor-gifts-stats-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.donor-gifts-donor-gifts-stats-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #2d3748;
}

.donor-gifts-donor-gifts-stats-card p {
    color: #718096;
    margin: 0.5rem 0 0 0;
}

.donor-gifts-donor-gifts-stats-card.pink .icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.donor-gifts-donor-gifts-stats-card.purple .icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.donor-gifts-donor-gifts-stats-card.green .icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.donor-gifts-donor-gifts-stats-card.orange .icon {
    background: linear-gradient(135deg, #f83600 0%, #fe8c00 100%);
    color: white;
}

/* Gift Card */
.gift-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.gift-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gift-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f7fafc;
}

.recipient-info h5 {
    margin: 0 0 0.5rem 0;
    color: #2d3748;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recipient-info small {
    color: #718096;
}

.gift-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e65100;
}

.gift-message {
    background: #fff3e0;
    border-left: 4px solid #f57c00;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.gift-message p {
    margin: 0;
    color: #5d4037;
    font-style: italic;
}

.gift-campaign {
    display: flex;
    gap: 1rem;
    background: #f7fafc;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    align-items: center;
}

.campaign-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.campaign-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.campaign-title {
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

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

.gift-date {
    color: #718096;
    font-size: 0.9rem;
}

.gift-status {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.gift-status.sent {
    background: #d1fae5;
    color: #065f46;
}

.gift-status.pending {
    background: #fed7d7;
    color: #c53030;
}

.no-gifts {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-gifts i {
    font-size: 5rem;
    color: #cbd5e0;
    margin-bottom: 1.5rem;
}

.no-gifts h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.no-gifts p {
    color: #718096;
    margin-bottom: 2rem;
}

.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

@media (max-width: 768px) {
    .donor-gifts-donor-gifts-page-header h1 {
        font-size: 1.5rem;
    }

    .gift-header {
        flex-direction: column;
        gap: 1rem;
    }

    .gift-amount {
        align-self: flex-start;
    }
}


/* Styles for reports.php */
.donor-reports-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.reports-container {
    padding: 2rem 0;
}

.donor-reports-donor-reports-page-header {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.donor-reports-donor-reports-page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.donor-reports-donor-reports-page-header p {
    margin: 0.5rem 0 0 0;
    color: #718096;
}

/* Stats Cards */
.donor-reports-donor-reports-stats-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

.donor-reports-donor-reports-stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.donor-reports-donor-reports-stats-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.donor-reports-donor-reports-stats-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.donor-reports-donor-reports-stats-card p {
    color: #718096;
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
}

.donor-reports-donor-reports-stats-card.purple .icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.donor-reports-donor-reports-stats-card.blue .icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.donor-reports-donor-reports-stats-card.green .icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.donor-reports-donor-reports-stats-card.orange .icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

/* Reports Grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.report-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.report-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.report-month {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.report-date {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.report-card-.donor-reports-page {
    padding: 1.5rem;
}

.campaign-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.campaign-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.campaign-title {
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
    margin: 0;
}

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

.stat-item {
    text-align: center;
    padding: 0.75rem;
    background: #f7fafc;
    border-radius: 10px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 0.25rem;
}

.rating-stars {
    color: #fbbf24;
}

.no-reports {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-reports i {
    font-size: 5rem;
    color: #cbd5e0;
    margin-bottom: 1.5rem;
}

.no-reports h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.no-reports p {
    color: #718096;
    margin-bottom: 2rem;
}

.btn-view-report {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-view-report:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

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

    .donor-reports-donor-reports-page-header h1 {
        font-size: 1.5rem;
    }
}


/* Styles for notifications.php */
.donor-notifications-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.notifications-container {
    padding: 2rem 0;
}

.donor-notifications-donor-notifications-page-header {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.donor-notifications-donor-notifications-page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.tabs-container {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-tabs {
    border: none;
    gap: 0.5rem;
}

.nav-tabs .nav-link {
    border: none;
    background: #f7fafc;
    color: #4a5568;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-tabs .nav-link:hover {
    background: #edf2f7;
    transform: translateY(-2px);
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.nav-link .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    font-size: 0.7rem;
}

.tab-content {
    padding: 2rem 0;
}

/* Notifications */
.notification-item {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-right: 4px solid #667eea;
    transition: all 0.3s ease;
    display: flex;
    gap: 1rem;
}

.notification-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.notification-item.unread {
    background: #f7faff;
    border-right-color: #ff6b6b;
}

.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-icon.primary {
    background: #e0e7ff;
    color: #4338ca;
}

.notification-icon.success {
    background: #d1fae5;
    color: #065f46;
}

.notification-icon.warning {
    background: #fed7aa;
    color: #92400e;
}

.notification-icon.info {
    background: #dbeafe;
    color: #1e40af;
}

.notification-icon.danger {
    background: #fed7d7;
    color: #c53030;
}

.notification-icon.secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.notification-message {
    color: #718096;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.notification-time {
    color: #a0aec0;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Messages */
.message-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.message-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

.message-title {
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.message-meta {
    display: flex;
    gap: 1rem;
    color: #718096;
    font-size: 0.85rem;
}

.priority-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.priority-badge.low {
    background: #e0e7ff;
    color: #4338ca;
}

.priority-badge.normal {
    background: #dbeafe;
    color: #1e40af;
}

.priority-badge.high {
    background: #fed7aa;
    color: #92400e;
}

.priority-badge.urgent {
    background: #fed7d7;
    color: #c53030;
}

.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.open {
    background: #fed7aa;
    color: #92400e;
}

.status-badge.in_progress {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.resolved {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.closed {
    background: #e2e8f0;
    color: #4a5568;
}

.message-preview {
    color: #718096;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.replies-count {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-new-message {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.btn-new-message:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 20px;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    border: none;
}

.btn-close {
    filter: brightness(0) invert(1);
}

.form-label {
    font-weight: 600;
    color: #2d3748;
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-send {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .donor-notifications-donor-notifications-page-header h1 {
        font-size: 1.5rem;
    }

    .message-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-new-message {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}


/* Styles for profile.php */
.donor-profile-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

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

/* Profile Header Card */
.profile-header-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.profile-header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {

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

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.profile-avatar-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    background: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #667eea;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #667eea;
}

.avatar-upload-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Stats Cards */
.donor-profile-donor-profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.donor-profile-donor-profile-stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.donor-profile-donor-profile-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--stat-color, #667eea);
}

.donor-profile-donor-profile-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

/* Magic Card */
.magic-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.magic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

.magic-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    color: white;
}

.magic-card-header h5 {
    margin: 0;
    font-weight: 700;
}

.magic-card-.donor-profile-page {
    padding: 2rem;
}

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

.badge-item {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.badge-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.badge-item i {
    font-size: 1.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 2rem;
}

.timeline-icon {
    position: absolute;
    left: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: white;
    border: 3px solid #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #667eea;
    z-index: 1;
}

.timeline-content {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.timeline-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.timeline-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
}

.timeline-date {
    font-size: 0.85rem;
    color: #a0aec0;
}

/* Form */
.form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: #667eea;
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.btn-magic {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-magic:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.alert-magic {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}


/* Styles for settings.php */
.donor-settings-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

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

.magic-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.magic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

.magic-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.magic-card-header i {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.magic-card-.donor-settings-page {
    padding: 2rem;
}

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

.form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: #667eea;
}

.form-control,
.form-select {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.password-strength {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.password-strength-bar.weak {
    width: 33%;
    background: #ff4757;
}

.password-strength-bar.medium {
    width: 66%;
    background: #ffa502;
}

.password-strength-bar.strong {
    width: 100%;
    background: #26de81;
}

.password-hint {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 0.5rem;
}

.btn-magic {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-magic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-magic:hover::before {
    left: 100%;
}

.btn-magic:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-danger-magic {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.btn-danger-magic:hover {
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
}

.avatar-upload-card .avatar-preview-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(102, 126, 234, 0.2);
    margin: 0 auto 1rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.avatar-upload-card .avatar-preview-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.3s;
    border-radius: 32px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(28px);
}

.alert-magic {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #26de81 0%, #20bf6b 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

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

    .magic-card-.donor-settings-page {
        padding: 1.5rem;
    }
}


/* Styles for help.php */
.donor-help-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

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

.help-header {
    text-align: center;
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.help-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.help-header h1 i {
    color: #667eea;
}

.help-header p {
    color: #718096;
    font-size: 1.1rem;
}

.search-box {
    max-width: 600px;
    margin: 2rem auto 0;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border-radius: 50px;
    border: 2px solid #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.search-box i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1.2rem;
}

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

.category-tab {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-tab:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.category-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: white;
}

.category-tab.active .category-icon {
    background: rgba(255, 255, 255, 0.2);
}

.category-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.content-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2d3748;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f7fafc;
    color: #667eea;
}

.faq-question i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #4a5568;
    line-height: 1.8;
}

.faq-answer.show {
    max-height: 500px;
    padding: 1rem 0.5rem;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(-5px);
    border-color: #667eea;
}

.quick-link-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #667eea;
    flex-shrink: 0;
}

.quick-link:hover .quick-link-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.contact-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.support-form {
    background: #f7fafc;
    border-radius: 16px;
    padding: 2rem;
}

.form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-send {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.resource-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: #f7fafc;
    border-radius: 12px;
    margin-bottom: 1rem;
}

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

.resource-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.btn-download {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.5rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: #667eea;
    color: white;
}

.helpful-section {
    background: #f7fafc;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.helpful-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.btn-helpful {
    padding: 0.5rem 1.5rem;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-helpful:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.btn-helpful.yes:hover {
    background: #48bb78;
    border-color: #48bb78;
    color: white;
}

.btn-helpful.no:hover {
    background: #f56565;
    border-color: #f56565;
    color: white;
}

@media (max-width: 768px) {
    .help-header h1 {
        font-size: 1.75rem;
    }

    .category-tabs {
        grid-template-columns: 1fr;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }
}


/* Styles for order-details.php */
.donor-order-details-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.details-container {
    max-width: 900px;
    margin-top: 30px;
}

.details-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 2rem;
}

.order-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.status-badge {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.pending {
    background: #fed7d7;
    color: #c53030;
}

.status-badge.processing {
    background: #fef3c7;
    color: #92400e;
}

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

.info-item {
    padding: 1rem;
    background: #f7fafc;
    border-radius: 12px;
}

.info-label {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.items-section {
    margin-top: 2rem;
}

.item-card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.item-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.item-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.item-details {
    flex: 1;
}

.item-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.item-description {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.item-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.item-type.sponsorship {
    background: #e0e7ff;
    color: #4338ca;
}

.item-type.donation {
    background: #dbeafe;
    color: #1e40af;
}

.item-price {
    text-align: left;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.total-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin-top: 2rem;
}

.total-label {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.total-amount {
    font-size: 3rem;
    font-weight: 700;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.btn-custom {
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #f7fafc;
    transform: translateY(-2px);
}

@media print {
    .donor-order-details-page {
        background: white;
        padding: 0.5rem 0;
    }

    .action-buttons,
    .donor-navbar {
        display: none !important;
    }

    .details-card {
        box-shadow: none;
        padding: 1rem;
    }

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

    .order-title {
        font-size: 1.3rem;
    }

    .status-badge {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .info-grid {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .info-item {
        padding: 0.5rem;
    }

    .info-label {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .info-value {
        font-size: 0.9rem;
    }

    .item-card {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .item-image,
    .item-placeholder {
        width: 60px;
        height: 60px;
    }

    .item-placeholder i {
        font-size: 1.5rem;
    }

    .item-title {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .item-description {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .item-type {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }

    .item-price {
        font-size: 1.1rem;
    }

    .total-section {
        padding: 1rem;
        margin-top: 1rem;
    }

    .total-label {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .total-amount {
        font-size: 2rem;
    }

    .details-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .item-card {
        flex-direction: column;
        text-align: center;
    }

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

    .action-buttons {
        flex-direction: column;
    }
}


/* Styles for view_report.php */

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

.donor-view-report-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-bottom: 2rem;
}

.donor-view-report-donor-view-report-main-content {
    margin-top: 80px;
    padding: 2rem 0;
}

/* Report Header */
.report-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.report-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.report-header .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.report-header .back-btn:hover {
    color: #764ba2;
    transform: translateX(-5px);
}

.report-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 0.5rem;
}

.report-header .report-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: #6c757d;
    font-size: 0.95rem;
}

.report-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-meta-item i {
    color: #667eea;
}

/* Stats Grid */
.donor-view-report-donor-view-report-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.donor-view-report-donor-view-report-stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.donor-view-report-donor-view-report-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--card-color, #667eea);
}

.donor-view-report-donor-view-report-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.donor-view-report-donor-view-report-stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--card-color, #667eea) 0%, var(--card-color-dark, #764ba2) 100%);
    color: white;
}

.donor-view-report-donor-view-report-stat-card .stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.donor-view-report-donor-view-report-stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3436;
}

/* Content Sections */
.content-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

.rating-card {
    padding: 1.5rem;
    border-radius: 15px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.rating-card:hover {
    background: #e9ecef;
    transform: translateY(-3px);
}

.rating-card h4 {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.rating-card .rating-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.rating-card .rating-stars {
    font-size: 1.2rem;
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 1rem;
}

/* Progress Bars */
.progress-item {
    margin-bottom: 1.5rem;
}

.progress-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-item-label {
    font-weight: 600;
    color: #2d3436;
}

.progress-item-value {
    font-weight: 700;
    color: var(--progress-color, #667eea);
}

.custom-progress {
    height: 12px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.custom-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--progress-color, #667eea) 0%, var(--progress-color-dark, #764ba2) 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
    position: relative;
}

.custom-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Notes Section */
.notes-box {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.notes-box h4 {
    font-size: 1.1rem;
    color: #2d3436;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notes-box p {
    color: #6c757d;
    line-height: 1.8;
    margin: 0;
}

/* Achievements */
.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #26de81 0%, #20bf6b 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    margin: 0.5rem 0.5rem 0.5rem 0;
    box-shadow: 0 5px 20px rgba(38, 222, 129, 0.3);
}

/* Report History */
.history-timeline {
    position: relative;
    padding-left: 2rem;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.history-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.history-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #667eea;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #667eea;
}

.history-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.history-item a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.history-item .history-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

/* No Report State */
.no-report-state {
    text-align: center;
    padding: 4rem 2rem;
}

.no-report-state i {
    font-size: 5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.no-report-state h3 {
    font-size: 1.8rem;
    color: #2d3436;
    margin-bottom: 1rem;
}

.no-report-state p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Print Button */
.print-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.print-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .donor-view-report-donor-view-report-main-content {
        margin-top: 70px;
        padding: 1rem 0;
    }

    .report-header h1 {
        font-size: 1.5rem;
    }

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

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

    .chart-container {
        height: 250px;
    }

    .print-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media print {
    .donor-view-report-page {
        background: white;
    }

    .donor-view-report-donor-view-report-main-content {
        margin-top: 0;
    }

    .print-btn,
    .back-btn {
        display: none !important;
    }
}


/* Styles for message-thread.php */
.donor-message-thread-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

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

.thread-header {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.thread-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 1rem 0;
}

.thread-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: #718096;
    font-size: 0.95rem;
}

.badge-priority {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-priority.low {
    background: #e0e7ff;
    color: #4338ca;
}

.badge-priority.normal {
    background: #dbeafe;
    color: #1e40af;
}

.badge-priority.high {
    background: #fed7aa;
    color: #92400e;
}

.badge-priority.urgent {
    background: #fed7d7;
    color: #c53030;
}

.badge-status {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-status.open {
    background: #fed7aa;
    color: #92400e;
}

.badge-status.in_progress {
    background: #dbeafe;
    color: #1e40af;
}

.badge-status.resolved {
    background: #d1fae5;
    color: #065f46;
}

.badge-status.closed {
    background: #e2e8f0;
    color: #4a5568;
}

.reply-item {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.reply-item.from-donor {
    border-right: 4px solid #667eea;
    margin-left: 2rem;
}

.reply-item.from-admin {
    border-right: 4px solid #48bb78;
    margin-right: 2rem;
    background: #f7fcf9;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f7fafc;
}

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

.sender-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.sender-avatar.donor {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.sender-avatar.admin {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.sender-name {
    font-weight: 600;
    color: #2d3748;
}

.sender-role {
    color: #718096;
    font-size: 0.85rem;
}

.reply-time {
    color: #a0aec0;
    font-size: 0.85rem;
}

.reply-content {
    color: #4a5568;
    line-height: 1.8;
    white-space: pre-line;
}

.reply-form {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    bottom: 2rem;
}

.form-control {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-send-reply {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-send-reply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-back {
    background: #f7fafc;
    color: #4a5568;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #e2e8f0;
    color: #2d3748;
    transform: translateX(5px);
}

@media (max-width: 768px) {

    .reply-item.from-donor,
    .reply-item.from-admin {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Extracted from donations/cart.php */

/* Magic Buttons - تصميم الأزرار السحري */
.donations-hero-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    min-width: 280px;
}

.donations-hero-main {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    justify-content: space-between;
}

.donations-cart-btn-magic-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.donations-cart-btn-magic-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.donations-cart-btn-magic-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
}

.donations-cart-btn-magic-primary:hover::before {
    left: 100%;
}

.donations-cart-btn-magic-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.donations-cart-btn-magic-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
    color: white;
}

.donations-cart-btn-magic-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
    color: white;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: donations-cart-magic-pulse 2s ease-in-out infinite;
}

.donations-cart-btn-magic-success:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.6);
    color: white;
    animation: none;
}

@keyframes donations-cart-magic-pulse {

    0%,
    100% {
        box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
    }

    50% {
        box-shadow: 0 6px 25px rgba(17, 153, 142, 0.6);
    }
}

.donations-cart-btn-magic-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.donations-cart-btn-magic-outline:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.donations-cart-btn-magic-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.donations-cart-btn-magic-danger:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.5);
    color: white;
}

/* تأثيرات إضافية للأزرار */
.donations-cart-btn-magic-primary:active,
.donations-cart-btn-magic-secondary:active,
.donations-cart-btn-magic-success:active,
.donations-cart-btn-magic-danger:active {
    transform: scale(0.98);
}

.donations-cart-btn-magic-primary i,
.donations-cart-btn-magic-secondary i,
.donations-cart-btn-magic-success i,
.donations-cart-btn-magic-outline i,
.donations-cart-btn-magic-danger i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.donations-cart-btn-magic-primary:hover i,
.donations-cart-btn-magic-secondary:hover i,
.donations-cart-btn-magic-success:hover i,
.donations-cart-btn-magic-outline:hover i {
    transform: scale(1.2);
}

.donations-cart-btn-magic-danger:hover i {
    transform: rotate(15deg) scale(1.2);
}

/* RTL Support */
[dir="rtl"] .donations-cart-btn-magic-primary::before {
    left: auto;
    right: -100%;
}

[dir="rtl"] .donations-cart-btn-magic-primary:hover::before {
    right: 100%;
    left: auto;
}

/* ضبط ارتفاع جميع الأزرار السحرية في السايدبار */
.sidebar-card .donations-cart-btn-magic-primary,
.sidebar-card .donations-cart-btn-magic-secondary,
.sidebar-card .donations-cart-btn-magic-success,
.sidebar-card .donations-cart-btn-magic-danger,
.sidebar-card .donations-cart-btn-magic-outline {
    padding: 12px 24px !important;
    border-radius: 12px;
    font-weight: 600;
}


/* Extracted from donations/donate.php */

#donations-donate-giftMetaModal.gift-meta-modal .modal-title {
    font-size: 1.5rem;
    color: #fff;
}

#donations-donate-giftMetaModal.gift-meta-modal .modal-body p,
#donations-donate-giftMetaModal.gift-meta-modal .form-label,
#donations-donate-giftMetaModal.gift-meta-modal .form-control,
#donations-donate-giftMetaModal.gift-meta-modal .form-check-label,
#donations-donate-giftMetaModal.gift-meta-modal .btn,
#donations-donate-giftMetaModal.gift-meta-modal [data-gift-summary],
#donations-donate-giftMetaModal.gift-meta-modal .small {
    font-size: 1rem;
}

#donations-donate-giftMetaModal.gift-meta-modal .form-label {
    font-weight: 600;
}

#donations-donate-giftMetaModal.gift-meta-modal .form-control {
    padding: 0.85rem 1rem;
}

#donations-donate-giftMetaModal.gift-meta-modal .modal-footer .btn,
#donations-donate-giftMetaModal.gift-meta-modal .badge,
#donations-donate-giftMetaModal.gift-meta-modal .form-check-label {
    font-size: 1rem;
}

.text-primary {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity)) !important;
    padding: 10px 18px !important;
}

/* أنماط نافذة المعاينة */
#donations-donate-giftPreviewModal .modal-dialog {
    max-width: fit-content;
    width: auto;
    margin: 1rem auto;
}

#donations-donate-giftPreviewModal .modal-content {
    border-radius: 14px;
    border: none;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.24);
}

#donations-donate-giftPreviewModal .modal-body {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: 200px;
}

#donations-donate-giftPreviewCanvas {
    position: relative;
    width: fit-content;
    height: fit-content;
    max-width: 90vw;
    max-height: 75vh;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    margin: 0;
    display: block;
}

#donations-donate-giftPreviewImage {
    display: block;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    background: #ffffff;
}

#donations-donate-giftPreviewOverlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: none;
}

#donations-donate-giftPreviewOverlay>div {
    position: absolute;
    transform: translate(-50%, -50%);
    line-height: 1.35;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 700;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.22);
}

h5#donations-donate-giftPreviewModalLabel {
    color: #fff;
}

@media (max-width: 768px) {
    #donations-donate-giftPreviewModal .modal-dialog {
        width: fit-content;
        max-width: calc(100vw - 1rem);
    }

    #donations-donate-giftPreviewCanvas {
        max-width: 95vw;
        max-height: 70vh;
    }

    #donations-donate-giftPreviewImage {
        width: auto;
        height: auto;
        max-width: 95vw;
        max-height: 70vh;
    }

    #donations-donate-giftPreviewOverlay>div {
        font-size: 15px;
        padding: 4px 8px;
    }
}


/* Extracted from donations/donate_checkout.php */

/* Magic Buttons Styles */
.donations-checkout-btn-magic-outline,
.donations-checkout-btn-magic-secondary,
.donations-checkout-btn-magic-success {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    padding: 12px 24px;
}

/* Outline Button - Purple border that fills with gradient on hover */
.donations-checkout-btn-magic-outline {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
}

.donations-checkout-btn-magic-outline:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Secondary Button - Pink gradient with hover lift */
.donations-checkout-btn-magic-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: 2px solid transparent;
    color: white;
}

.donations-checkout-btn-magic-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

[dir="rtl"] .donations-checkout-btn-magic-secondary::before {
    left: auto;
    right: -100%;
    transition: right 0.5s;
}

.donations-checkout-btn-magic-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
    color: white;
}

.donations-checkout-btn-magic-secondary:hover::before {
    left: 100%;
}

[dir="rtl"] .donations-checkout-btn-magic-secondary:hover::before {
    left: auto;
    right: 100%;
}

/* Success Button - Green gradient with pulse animation */
.donations-checkout-btn-magic-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: 2px solid transparent;
    color: white;
    animation: donations-checkout-magic-pulse 2s ease-in-out infinite;
}

.donations-checkout-btn-magic-success:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(56, 239, 125, 0.4);
    color: white;
    animation: none;
}

.donations-checkout-btn-magic-success:active {
    transform: translateY(0) scale(0.98);
}

@keyframes donations-checkout-magic-pulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(56, 239, 125, 0.3);
    }

    50% {
        box-shadow: 0 4px 25px rgba(56, 239, 125, 0.5);
    }
}

/* Icon spacing */
.donations-checkout-btn-magic-outline .bi,
.donations-checkout-btn-magic-secondary .bi,
.donations-checkout-btn-magic-success .bi {
    margin-right: 8px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="rtl"] .donations-checkout-btn-magic-outline .bi,
[dir="rtl"] .donations-checkout-btn-magic-secondary .bi,
[dir="rtl"] .donations-checkout-btn-magic-success .bi {
    margin-right: 0;
    margin-left: 8px;
}

.donations-checkout-btn-magic-outline:hover .bi {
    transform: rotate(15deg) scale(1.1);
}

.donations-checkout-btn-magic-secondary:hover .bi {
    transform: scale(1.2);
}

.donations-checkout-btn-magic-success:hover .bi {
    transform: scale(1.2) rotate(-5deg);
}

/* ضبط ارتفاع جميع الأزرار السحرية في السايدبار */
.sidebar-card .donations-checkout-btn-magic-primary,
.sidebar-card .donations-checkout-btn-magic-secondary,
.sidebar-card .donations-checkout-btn-magic-success,
.sidebar-card .donations-checkout-btn-magic-danger,
.sidebar-card .donations-checkout-btn-magic-outline {
    padding: 12px 24px !important;
    border-radius: 12px;
    font-weight: 600;
}


/* Extracted from donations/campaign.php */

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

span.badge.rounded-pill.bg-primary-subtle.text-primary {
    font-size: 1rem;
    padding: 16px;
}

/* Extracted from donations/help.php */
.donations-help-style-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 2rem;
}

.donations-help-style-2 {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.donations-help-style-3 {
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 0;
}

.donations-help-style-4 {
    color: #667eea;
}

.donations-help-style-5 {
    color: #718096;
    font-size: 1.1rem;
}

.donations-help-style-6 {
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.donations-help-style-7 {
    display: block;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.donations-help-style-8 {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.donations-help-style-9 {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
    text-decoration: none;
    color: #2d3748;
}

.donations-help-style-10 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: #f7fafc;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.donations-help-style-11 {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    padding: 0.5rem;
    border-radius: 8px;
}

.donations-help-style-12 {
    display: none;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.donations-help-style-13 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.donations-help-style-14 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.donations-help-style-15 {
    font-weight: 600;
    font-size: 1.1rem;
}

.donations-help-style-16 {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    color: #4a5568;
}

.donations-help-style-17 {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.donations-help-style-18 {
    text-align: center;
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.donations-help-style-19 {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.donations-help-style-20 {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #667eea;
}

.donations-help-style-21 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: white;
}

.donations-help-style-22 {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: white;
}

/* Extracted from donations/includes/header.php */
.donations-toast {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1080;
}

/* Extracted Styles */
/* From page.php */

.page-attachments-section {
    margin-top: 3rem;
}

.attachment-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.attachment-card:hover {
    border-color: #cbd5f5;
    box-shadow: 0 6px 18px rgba(76, 110, 245, 0.12);
}

.attachment-preview {
    background: #f8fafc;
    border-radius: 0.65rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.attachment-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.attachment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4c6ef5;
    background: rgba(76, 110, 245, 0.1);
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
}

.attachment-icon .bi {
    font-size: 2rem;
}

.attachment-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.attachment-name {
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.attachment-actions {
    margin-top: auto;
}

.inline-pdf-block {
    background: #ffffff;
    border: 1px solid #e0e7ff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
    overflow: hidden;
}

.inline-pdf-collection {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.inline-pdf-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.inline-pdf-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    color: #0f172a;
}

.inline-pdf-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
}

.inline-pdf-frame {
    width: 100%;
    min-height: 92vh;
    border: 0;
    border-radius: 0.9rem;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

@media (max-width: 768px) {
    .attachment-card {
        padding: 1rem;
    }

    .attachment-preview {
        min-height: 120px;
    }

    .inline-pdf-block {
        padding: 1.25rem;
    }

    .inline-pdf-frame {
        min-height: 75vh;
    }
}


/* Extracted Styles */
/* From login.php */
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 60px 0;
    overflow-x: hidden;
    position: relative;
}

.login-page-content {
    width: 100%;
    display: grid;
    place-items: center;
    padding: 40px 24px 60px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

body.ready .login-page-content {
    opacity: 1;
}

.login-container {
    width: 100%;
    max-width: 480px;
    padding: 24px;
    position: relative;
    z-index: 10;
    margin: 0 auto;
}

/* Extracted Styles */
.login-logo-img {
    max-height: 70px;
    filter: brightness(0) invert(1);
}

/* Extracted Styles */
.login-logo-icon {
    font-size: 70px;
}

/* Extracted Styles */
.cursor-pointer {
    cursor: pointer;
}

/* Extracted Styles */
.fs-14 {
    font-size: 14px;
}

/* Extracted Styles */
/* From contact.php */

.contact-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    border-radius: 20px;
    padding: 50px 30px;
    margin-bottom: 40px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.contact-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.contact-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.info-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px 20px;
    height: 100%;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.08);
    border-top: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
    text-align: center;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(var(--secondary-rgb), 0.2);
}

.info-card .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 26px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--secondary-rgb), 0.3);
}

.info-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.info-card .info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
    color: #495057;
    font-size: 0.95rem;
}

.info-card .info-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.info-card .info-item a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s;
}

.info-card .info-item a:hover {
    color: var(--secondary-color);
}

.info-card .badge {
    background: rgba(var(--secondary-rgb), 0.1);
    color: var(--primary-color);
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    margin: 4px;
    display: inline-block;
    font-size: 0.9rem;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.08);
    height: 220px;
    border: 3px solid rgba(var(--secondary-rgb), 0.2);
}

.contact-form-card {
    background: #fff;
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.08);
    border-top: 4px solid var(--secondary-color);
}

.contact-form-card h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    border-right: 4px solid var(--secondary-color);
    padding-right: 15px;
}

.form-label {
    color: var(--primary-color);
    font-weight: 500;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.15rem rgba(var(--secondary-rgb), 0.15);
}

.btn-primary {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    font-weight: 600;
    padding: 14px 35px;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(var(--secondary-rgb), 0.3) !important;
}

.alert-success {
    background: rgba(var(--secondary-rgb), 0.1);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 12px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    margin-top: 10px;
}

.whatsapp-btn:hover {
    background: #128C7E;
    color: white;
    transform: scale(1.05);
}

@media (max-width: 767.98px) {
    .contact-hero h1 {
        font-size: 1.8rem;
    }

    .contact-form-card {
        padding: 25px;
    }

    .info-card {
        margin-bottom: 20px;
    }
}

/* Extracted Styles */
.opacity-20 {
    opacity: 0.2;
}

/* Extracted Styles */
.badge-holiday {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Extracted Styles */
.social-follow-label {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Extracted Styles */
.social-icon-fb {
    background: #1877f2;
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Extracted Styles */
.social-icon-x {
    background: #000;
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Extracted Styles */
.social-icon-insta {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Extracted Styles */
.social-icon-yt {
    background: #ff0000;
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Extracted Styles */
/* From register.php */

.registration-hero {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.95) 0%, rgba(var(--secondary-rgb), 0.88) 100%);
    color: #fff;
    border-radius: 18px;
    padding: 40px 28px;
    margin-bottom: 28px;
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.2);
}

.registration-hero .badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.registration-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.08);
    border-top: 4px solid var(--secondary-color);
}

.role-selector .btn-check:checked+.role-option,
.role-selector .role-option.active-option {
    border-color: var(--secondary-color);
    background: rgba(var(--secondary-rgb), 0.04);
    box-shadow: 0 6px 20px rgba(var(--secondary-rgb), 0.25);
    transform: translateY(-3px);
}

.role-option {
    border: 2px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 14px;
    padding: 20px 18px;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
    height: 100%;
    background: #fff;
}

.role-option:hover {
    border-color: rgba(var(--secondary-rgb), 0.4);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.1);
    transform: translateY(-2px);
}

.role-option i {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 12px;
    transition: transform 0.25s ease;
}

.role-option:hover i,
.role-option.active-option i {
    transform: scale(1.1);
}

.role-option h5 {
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-weight: 600;
}

.role-option p {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 0;
}

.role-fields {
    display: none;
}

.role-fields.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.role-fields h5 {
    color: var(--primary-color);
    border-right: 4px solid var(--secondary-color);
    padding-right: 12px;
    margin-bottom: 20px;
}

.registration-summary {
    background: rgba(var(--secondary-rgb), 0.08);
    border-right: 4px solid var(--secondary-color);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 24px;
}

.registration-summary i {
    color: var(--secondary-color);
}

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

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.15rem rgba(var(--secondary-rgb), 0.15);
}

.btn-success {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    font-weight: 600;
    padding: 12px 32px;
    transition: all 0.3s ease;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--secondary-rgb), 0.3) !important;
}

.btn-success:disabled {
    background: rgba(var(--secondary-rgb), 0.5) !important;
    border-color: rgba(var(--secondary-rgb), 0.5) !important;
}

.btn-outline-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 12px 32px;
}

.btn-outline-secondary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.alert-success {
    background: rgba(var(--secondary-rgb), 0.1);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

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

.alert-light {
    border-color: rgba(var(--secondary-rgb), 0.3);
}

.alert-light i {
    color: var(--secondary-color);
}

.alert-light a {
    color: var(--secondary-color);
    font-weight: 600;
}

.alert-light a:hover {
    color: var(--primary-color);
}

.form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

@media (max-width: 767.98px) {
    .registration-card {
        padding: 22px;
    }

    .role-option {
        padding: 16px 12px;
    }

    .role-option i {
        font-size: 28px;
    }
}

/* Extracted Styles */
.fs-105 {
    font-size: 1.05rem;
}

/* Extracted Styles */
.fs-16 {
    font-size: 1.6rem;
}

/* Extracted Styles */
.reset-key-icon {
    font-size: 60px;
    color: #ffd700;
}

/* Fix for missing page-card and variables */
:root {
    --primary-rgb: 102, 126, 234;
    --secondary-rgb: 118, 75, 162;
}

.page-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    padding: 0px 20px 30px 20px;
}

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

/* Registration Styles - Enforced */
.registration-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.08);
    border-top: 4px solid var(--secondary-color);
}

.registration-hero {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.95) 0%, rgba(var(--secondary-rgb), 0.88) 100%);
    color: #fff;
    border-radius: 18px;
    padding: 40px 28px;
    margin-bottom: 28px;
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.2);
}

/* Contact Page Styles - Enforced */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    border-radius: 20px;
    padding: 50px 30px;
    margin-bottom: 40px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.info-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px 20px;
    height: 100%;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.08);
    border-top: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
    text-align: center;
}

.contact-form-card {
    background: #fff;
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.08);
    border-top: 4px solid var(--secondary-color);
}

/* Page Content Spacing */
.container.page-content {
    margin-top: 50px;
}

/* Governance Title Alignment Fix */
h1.display-5.fw-bold.mb-3.text-white.text-center.w-100 {
    text-align: center !important;
}

body {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    align-items: center;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 22px;
}

.navbar-brand i {
    color: var(--secondary-color);
    font-size: 28px;
}

.nav-link {
    color: #333;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-login {
    background: var(--primary-color);
    color: white;
    padding: 8px 25px;
    border-radius: 25px;
    border: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="rgba(255,255,255,0.1)" d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

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

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeInUp 1s;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s 0.2s backwards;
}

.btn-hero {
    background: white;
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 18px;
    border: none;
    margin: 10px;
    transition: all 0.3s;
    animation: fadeInUp 1s 0.4s backwards;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
}

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

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

.stats-section {
    background: white;
    padding: 60px 0;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.stat-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-card h2 {
    font-size: 42px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}

.stat-card p {
    color: #666;
    margin: 0;
    font-size: 18px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
}

.feature-card h4 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

.features-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-card i {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    /*color: #ffffff;*/
    margin-top: 20px;
}

.cta-section h2 {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
    line-height: 40px;
    margin: 0 5px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    color: white;
}

/*----------*/
.login-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 50px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-bottom: 30px;
}

.login-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.login-header h1 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
}

.login-header p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.login-body {
    padding: 40px 30px;
}

.login-footer-text {
    text-align: center;
    color: white;
}

span.position-absolute.end-0.eye-icon {
    left: 0 !important;
    margin-top: -35px;
    margin-left: 15px;
}

.form-control {
    border-radius: 10px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.quran-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: #ffd700;
}

.input-group-text {
    border-radius: 10px 0 0 10px;
    border: 2px solid #e0e0e0;
    border-left: none;
    background: #f8f9fa;
}

.form-control.with-icon {
    border-radius: 0 10px 10px 0;
    border-right: none;
}

.container.container-main {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
}

.navbar-nav {
    white-space: nowrap;
}

.navbar-row {
    padding: 15px 0px;
}

.siteurls {
    font-size: 40px;
    margin-top: -30px;
}

.siteNames {
    color: #6f6f6f;
    position: absolute;
    top: 55px;
    margin-right: -11px;
}

/* ===== نهاية custom.css وبداية frontend-modern.css ===== */

/*
 * نظام التصميم الاحترافي للواجهة الأمامية
 * نظام تحفيظ القرآن الكريم الذكي
 * تاريخ: 19 أكتوبر 2025
 */

/* ===== المتغيرات العامة ===== */
:root {
    --primary-gradient: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --info-gradient: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    --warning-gradient: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    --danger-gradient: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);

    /* --primary-color and --secondary-color are defined in the HTML head by the system */

    --accent-color: #f39c12;

    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --text-light: #ecf0f1;

    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.18);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.22);

    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;

    --transition-fast: all 0.2s ease;
    /* --transition-normal: all 0.3s ease; */
    --transition-slow: all 0.5s ease;

    /* --font-ar: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif; */
}

/* ===== إعدادات عامة ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* section {
    padding: 80px 0;
    position: relative;
} */

.container {
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== النصوص والعناوين ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 2.2rem;
}

h4 {
    font-size: 1.8rem;
}

/* ===== Modern Navigation ===== */
.modern-navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

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

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition-fast);
}

.navbar-brand i {
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: -11px;
    margin-bottom: 7px;
    margin-right: 6px;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    transition: var(--transition-fast);
    padding: 8px 0;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--primary-color);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* ===== Hero Section Modern ===== */
.hero-modern {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0;
}

.hero-modern .text-gradient {
    background: linear-gradient(to bottom, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Removed animated background shapes
.hero-modern::before { ... }
.hero-modern::after { ... }
*/

@keyframes float {

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

    50% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: slideDown 0.8s ease;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: slideUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.4rem;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 40px;
    animation: slideUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: slideUp 0.8s ease 0.6s both;
}

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

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

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

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

/* ===== الأزرار الحديثة ===== */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--border-radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.4s ease;
}

.btn-modern:hover::before {
    width: 100%;
}

.btn-modern i,
.btn-modern span {
    position: relative;
    z-index: 1;
}

.btn-primary-modern {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-outline-modern {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-modern:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-3px);
}

/* ===== قسم الإحصائيات الحديث ===== */
.stats-modern {
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.stat-card-modern {
    background: white;
    padding: 36px 28px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* .stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
} */

.stat-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    font-size: 3rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 2s ease infinite;
    margin-right: auto;
    margin-left: auto;
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: var(--transition-normal);
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ===== قسم العناوين ===== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center !important;
}

.section-badge {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== قسم الخدمات ===== */
.services-section {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 42px 32px;
    border-radius: var(--border-radius-lg);
    border: 2px solid transparent;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-icon {
    width: 90px;
    height: 90px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    transition: var(--transition-normal);
    margin-right: auto;
    margin-left: auto;
}

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

.service-title {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.service-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: var(--transition-fast);
}

.service-link:hover {
    gap: 12px;
}

/* ===== قسم المميزات ===== */
.features-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.feature-card {
    background: white;
    padding: 36px 28px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
}

.feature-icon i {
    color: #ffffff !important;
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== قسم الحوكمة ===== */
.governance-section {
    background: white;
}

.governance-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.governance-content h2 {
    margin-bottom: 24px;
    text-align: center !important;
}

.governance-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.governance-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.governance-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.governance-item-icon {
    width: 50px;
    height: 50px;
    background: var(--success-gradient);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.governance-item-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.governance-item-content p {
    font-size: 1rem;
    margin: 0;
}

.governance-visual {
    position: relative;
}

.governance-card-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.governance-card-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 24px;
    border-radius: var(--border-radius-md);
    border-right: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.governance-card-item:hover {
    transform: translateX(-10px);
    box-shadow: var(--shadow-md);
}

.governance-card-item h5 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

/* ===== قسم الشهادات ===== */
.testimonials-section {
    background: var(--primary-gradient);
    color: white;
}

.testimonials-section .section-title,
.testimonials-section .section-subtitle {
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 36px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    color: #ffd700;
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.testimonial-author-info h5 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.testimonial-author-info p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin: 0;
}

/* ===== قسم CTA ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    padding: 100px 24px;
    border-radius: var(--border-radius-xl);
    margin: 80px auto;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -150px;
    right: -150px;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* ===== Footer Modern ===== */
.footer-modern {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-about h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: white;
}

.footer-about p {
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-fast);
    text-decoration: none;
    color: white;
}

.social-icon:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

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

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links ul li a:hover {
    color: white;
    padding-right: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

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

    .governance-container {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

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

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

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

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

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

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

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

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

    .navbar-menu {
        display: none;
    }

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

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

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

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

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

/* ===== Utilities ===== */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #eaade1;
    background-clip: text;
}

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

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

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

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

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

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

/* ===== Login Page Modern Design ===== */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    /* position: relative; */
    overflow-x: hidden;
    overflow-y: auto;
}

.login-page-content {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 60px;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 800px;
    /* height: 800px; */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -300px;
    /* left: -300px; */
    /* animation: float 25s ease-in-out infinite; */
}

.login-page::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    /* bottom: -200px; */
    right: -200px;
    animation: float 20s ease-in-out infinite reverse;
}

.login-container {
    width: 100%;
    max-width: 480px;
    padding: 24px;
    position: relative;
    z-index: 10;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: slideUp 0.6s ease;
}

.login-header {
    background: var(--primary-gradient);
    color: white;
    padding: 36px 32px 28px;
    text-align: center;
    border-radius: var(--radius-xl);
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: white;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.quran-icon {
    animation: fadeIn 0.8s ease 0.3s both;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 8px;
    color: white;
    animation: slideDown 0.6s ease 0.2s both;
}

.login-header p {
    font-size: 1.05rem;
    animation: fadeIn 0.8s ease 0.4s both;
}

.login-body {
    padding: 32px 32px 36px;
}

.login-body .form-label {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 10px;
    display: block;
}

.login-body .form-control {
    padding: 14px 18px;
    font-size: 1.05rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.login-body .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.login-body .btn-primary {
    padding: 16px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: var(--border-radius-md);
    background: var(--primary-gradient);
    border: none;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.login-body .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.login-body .btn-primary:hover::before {
    left: 100%;
}

.login-body .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.eye-icon {
    z-index: 10;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-top: 32px;
}

.eye-icon:hover {
    color: var(--primary-color);
}

.login-footer-text {
    text-align: center;
    color: white;
    margin-top: 28px;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Success Message Toast */
.success-toast {
    position: fixed;
    top: 100px;
    right: 30px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 20px 28px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 9999;
    animation: slideInRight 0.5s ease, slideOutRight 0.5s ease 4s forwards;
    min-width: 320px;
}

.success-toast .icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.success-toast .content h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.success-toast .content p {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.95;
}

.success-toast .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-right: auto;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.success-toast .close-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

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

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Error Alert Enhanced */
.login-body .alert-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    font-weight: 600;
    animation: shake 0.5s ease;
}

.login-body .alert-danger .btn-close {
    filter: brightness(0) invert(1);
}

@keyframes shake {

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

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

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

.modal-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 24px 28px;
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 1.3rem;
    color: white;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 32px 28px;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border-color);
}

/* Responsive Login */
@media (max-width: 768px) {
    .login-page-content {
        padding: 60px 0px 80px;
    }

    .login-container {
        max-width: 100%;
        padding: 5px;
    }

    .login-header {
        padding: 28px 20px 24px;
    }

    .login-body {
        padding: 24px 20px 28px;
    }

    .success-toast {
        right: 16px;
        left: 16px;
        min-width: auto;
    }
}

/* إصلاح عدم استجابة زر الدخول */
body.login-page {
    position: relative;
}

body.login-page::before,
body.login-page::after {
    pointer-events: none;
    z-index: 0;
}

body.login-page .login-page-content,
body.login-page .login-card {
    position: relative;
    z-index: 1;
}

/* Header Modals & Actions */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(-50px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

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

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-20px);
    }

    50% {
        transform: scale(1.05) translateY(0);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulse {

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

    50% {
        transform: scale(1.1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.header-actions-container {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid rgba(var(--primary-color-rgb, 102, 126, 234), 0.2);
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

.header-actions-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-color-rgb, 102, 126, 234), 0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.header-actions-container:hover::before {
    opacity: 1;
}

.header-actions-container:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(var(--primary-color-rgb, 102, 126, 234), 0.25);
    transform: translateY(-2px);
}

.header-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.header-icon-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scale(1.1);
}

.header-icon-btn:hover i {
    color: #fff !important;
    transform: scale(1.15);
}

.header-icon-btn i {
    font-size: 1.3rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.header-divider {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, transparent, rgba(var(--primary-color-rgb, 102, 126, 234), 0.3), transparent);
    margin: 0 4px;
}

.header-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border: 2px solid #fff;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.5);
}

.modern-dropdown-menu {
    display: none;
    position: fixed;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 0;
    z-index: 20000;
    box-sizing: border-box;
    min-width: min(320px, calc(100vw - 60px));
    max-width: min(450px, calc(100vw - 60px));
    max-height: calc(100vh - 60px);
    overflow: auto;
    opacity: 0;
    pointer-events: none;
    transform-origin: center center;
    transform: scale(0.94) translateY(-8px);
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.26s ease;
    will-change: transform, opacity;
}

.dropdown-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    cursor: pointer;
}

.dropdown-backdrop.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

.modern-dropdown-inner {
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
}

.modern-dropdown-menu.active {
    display: block;
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
    animation: none;
}

.modern-dropdown-menu.show {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.modern-dropdown-menu::before {
    display: none !important;
}

.dropdown-header-modern {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 24px;
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-size: 1.15rem;
    position: relative;
    overflow: hidden;
}

.dropdown-header-modern i {
    font-size: 1.5rem;
    margin-left: 8px;
}

.dropdown-header-modern::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
}

.dropdown-body-modern {
    padding: 28px;
    background: #ffffff;
}

.cart-summary-box {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    border: 2px solid #a7f3d0;
}

.cart-summary-box .icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    opacity: 0.08;
}

.cart-total-amount {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 12px 0;
    text-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

.modern-input-group {
    position: relative;
    margin-bottom: 18px;
}

.modern-input-group input {
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 18px 14px 48px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background: #f9fafb;
}

.modern-input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 5px rgba(var(--primary-color-rgb, 102, 126, 234), 0.12);
    outline: none;
    background: #fff;
}

.modern-input-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.15rem;
    z-index: 1;
}

.btn-modern-primary,
.btn-modern-success {
    border: none;
    border-radius: 14px;
    padding: 15px;
    font-weight: 700;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb, 102, 126, 234), 0.35);
}

.btn-modern-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-modern-primary:hover,
.btn-modern-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(var(--primary-color-rgb, 102, 126, 234), 0.5);
    color: #fff;
}

.dropdown-footer-link {
    padding: 20px;
    background: linear-gradient(to bottom, #f9fafb, #f3f4f6);
    text-align: center;
}

.dropdown.show .header-icon-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.dropdown.show .header-icon-btn i {
    color: #fff !important;
}

/* ========================================
   تصميم صفحات الوظائف - Jobs Pages
======================================== */

/* صفحة قائمة الوظائف */
.jobs-hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(233, 67, 197, 0.1) 100%);
    border-radius: 24px;
    padding: 60px 40px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.jobs-hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 4s ease-in-out infinite;
}

.jobs-hero-section::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(233, 67, 197, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 5s ease-in-out infinite;
}

@keyframes pulseGlow {

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

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

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

.jobs-hero-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
}

.jobs-hero-description {
    font-size: 1.2rem;
    color: var(--text-dark);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* بطاقات الوظائف */
.job-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(102, 126, 234, 0.08);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.job-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.job-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.job-card-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.job-card:hover .job-card-image {
    transform: scale(1.02);
}

.job-card-image-wrapper {
    overflow: hidden;
    position: relative;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
}

.job-card-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(12px) brightness(0.95);
    opacity: 1.85;
    transform: scale(1.1);
    z-index: 1;
}

.job-card-body {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.job-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.job-card:hover .job-card-title {
    color: var(--primary-color);
}

.job-card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.job-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%);
    border-radius: 12px;
    margin-bottom: 20px;
}

.job-card-meta i {
    color: var(--primary-color);
    font-size: 1rem;
}

.job-card-date {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
}

.job-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.job-status-badge {
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.job-status-badge.status-open {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.job-status-badge.status-closed {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.job-status-badge i {
    font-size: 0.7rem;
}

.job-details-btn {
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
}

.job-details-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.job-details-btn:hover::before {
    left: 100%;
}

.job-details-btn:hover {
    transform: translateX(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.35);
}

/* صفحة تفاصيل الوظيفة */
.job-details-wrapper {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.12);
    border: 2px solid rgba(102, 126, 234, 0.08);
}

.job-details-header {
    position: relative;
    padding: 50px 40px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(233, 67, 197, 0.05) 100%);
    border-bottom: 3px solid rgba(102, 126, 234, 0.1);
    text-align: center;
    overflow: hidden;
}

.job-details-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(102,126,234,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.job-details-header::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: jobHeaderFloat 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes jobHeaderFloat {

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

    50% {
        transform: translate(-30px, -30px) scale(1.1);
    }
}

.job-details-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.job-details-image {
    width: 100%;
    height: 350px;
    object-fit: contain;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.job-details-wrapper .job-details-image {
    padding: 0;
}

.job-details-image-container {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.job-details-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(12px) brightness(0.95);
    opacity: 1;
    transform: scale(1.1);
    z-index: 1;
}

.job-details-image-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

.job-shimmer-overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 100%);
    animation: jobShimmer 4s ease-in-out infinite;
    transform: skewX(-25deg);
}

@keyframes jobShimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 150%;
    }
}

.job-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 70%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
            rgba(102, 126, 234, 0.1) 0%,
            rgba(102, 126, 234, 0.05) 40%,
            transparent 70%);
    animation: jobGlowPulse 3s ease-in-out infinite;
    border-radius: 50%;
}

@keyframes jobGlowPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.job-details-content {
    padding: 40px;
}

.job-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    position: relative;
}

.job-section-title::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50%;
    height: 3px;
    background: var(--accent-color);
}

.job-section-text {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 30px;
    white-space: pre-line;
}

/* بطاقة معلومات التقديم */
.job-apply-info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.08);
    margin-bottom: 25px;
}

.job-apply-info-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-apply-info-title i {
    color: var(--primary-color);
    font-size: 1.6rem;
}

.job-info-item {
    background: #ffffff;
    padding: 18px 22px;
    border-radius: 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.job-info-item:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.2);
}

.job-info-label {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-info-label i {
    color: var(--primary-color);
}

.job-info-value {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.job-status-alert {
    padding: 18px 24px;
    border-radius: 14px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.05rem;
}

.job-status-alert.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 2px solid #6ee7b7;
}

.job-status-alert.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 2px solid #fca5a5;
}

.job-status-alert i {
    font-size: 1.3rem;
}

/* نموذج التقديم */
.job-apply-form-card {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 35px rgba(102, 126, 234, 0.12);
    border: 2px solid rgba(102, 126, 234, 0.08);
}

.job-apply-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-apply-form-title i {
    color: var(--accent-color);
    font-size: 1.7rem;
}

.job-requirements-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 25px;
    border: 2px solid #fbbf24;
}

.job-requirements-title {
    font-weight: 700;
    color: #78350f;
    font-size: 1.05rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-requirements-title i {
    font-size: 1.2rem;
}

.job-requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-requirements-list li {
    padding: 8px 0;
    color: #78350f;
    font-size: 0.95rem;
    display: flex;
    align-items: start;
    gap: 10px;
}

.job-requirements-list li::before {
    content: "✓";
    color: #f59e0b;
    font-weight: 900;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.job-form-group {
    margin-bottom: 24px;
}

.job-form-label {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.98rem;
    margin-bottom: 10px;
    display: block;
}

.job-form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.job-form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: #ffffff;
}

.job-form-control::placeholder {
    color: #9ca3af;
}

.job-form-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-form-text i {
    color: var(--info-color);
}

.job-submit-btn {
    width: 100%;
    padding: 16px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    color: #fff;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.job-submit-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.job-submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.job-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.job-submit-btn:active {
    transform: translateY(0);
}

/* تنبيهات مخصصة */
.job-alert {
    padding: 18px 24px;
    border-radius: 14px;
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.job-alert i {
    font-size: 1.4rem;
}

.job-alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 2px solid #6ee7b7;
}

.job-alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #78350f;
    border: 2px solid #fbbf24;
}

.job-alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e3a8a;
    border: 2px solid #93c5fd;
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .jobs-hero-title {
        font-size: 2rem;
    }

    .jobs-hero-description {
        font-size: 1rem;
    }

    .jobs-hero-section {
        padding: 40px 25px;
    }

    .job-card-body {
        padding: 20px;
    }

    .job-details-title {
        font-size: 1.8rem;
    }

    .job-details-content {
        padding: 25px;
    }

    .job-apply-form-card,
    .job-apply-info-card {
        padding: 25px;
    }
}

.page_cover_image {
    width: 100%;
    height: 380px;
    margin: 30px;
}

.smart-block-slider {
    direction: ltr;
}

/* Governance Back Buttons */
a[href="policies.php"].btn-outline-secondary,
a[href="reports.php"].btn-outline-secondary {
    background-color: #fff !important;
    border-color: #6c757d !important;
    color: #333 !important;
}

a[href="policies.php"].btn-outline-secondary:hover,
a[href="reports.php"].btn-outline-secondary:hover {
    background-color: #e2e6ea !important;
    color: #000 !important;
    border-color: #adb5bd !important;
}