/*
 * Dayah Babul 'Ilmi - Premium Stylesheet
 * Modern Islamic design with glassmorphism effects
 */

/* ===== Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== CSS Variables ===== */
:root {
    --primary-color: #0d6b3d;
    --primary-dark: #064728;
    --primary-light: #2e9d5a;
    --secondary-color: #d4af37;
    --gold-gradient: linear-gradient(135deg, #d4af37, #f5d061, #d4af37);
    --accent-color: #f5efe0;
    --dark-color: #0f1419;
    --light-color: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-color: #1a1a2e;
    --text-muted: #6c757d;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(13, 107, 61, 0.3);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Global Styles ===== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background: linear-gradient(135deg, #f8fdf9 0%, #e8f5e9 50%, #f5efe0 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--dark-color);
}

.arabic-text {
    font-family: 'Amiri', 'Traditional Arabic', serif;
    direction: rtl;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== Premium Navbar ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gold-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.navbar-brand span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.6rem 1.2rem !important;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover,
.nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Premium Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 6rem 0 8rem;
    position: relative;
    overflow: hidden;
}

.hero::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 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.02)"/><circle cx="40" cy="80" r="2" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 150px;
    animation: float 20s infinite linear;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom right, transparent 49%, #f8fdf9 50%);
}

/* Video Background */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)); /* More transparent overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero-title .highlight {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .hero {
        padding: 8rem 0 10rem;
    }

    .hero-title {
        font-size: 4rem;
    }
}

/* ===== Stats Section with Glass Effect ===== */
.stats-section {
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 10px 30px rgba(13, 107, 61, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===== Section Styles ===== */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Premium Cards ===== */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px) scale(1.01);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.card-img-overlay-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold-gradient);
    color: var(--dark-color);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.card-body {
    padding: 1.75rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.card-text {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== Book Cards ===== */
.book-card .book-cover {
    height: 280px;
    object-fit: cover;
}

.book-card .book-author {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.book-card .book-chapters {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(13, 107, 61, 0.1);
    color: var(--primary-color);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== Teacher Cards ===== */
.teacher-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.teacher-card .teacher-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.25rem;
    border: 4px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.teacher-card:hover .teacher-photo {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(13, 107, 61, 0.2);
}

.teacher-card .teacher-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.teacher-card .teacher-position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* ===== Premium Buttons ===== */
.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    box-shadow: 0 4px 20px rgba(13, 107, 61, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(13, 107, 61, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-light {
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    color: white;
}

.btn-gold {
    background: var(--gold-gradient);
    color: var(--dark-color);
    border: none;
    font-weight: 700;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.1rem;
    border-radius: 14px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

/* ===== Premium Footer ===== */
.footer {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
}

.footer-title {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom right, transparent 49%, #f8fdf9 50%);
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Al-Quran Styles ===== */
.quran-hero {
    background: linear-gradient(135deg, #064728 0%, #0d6b3d 50%, #064728 100%);
    position: relative;
    overflow: hidden;
}

.quran-hero::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 200 200"><polygon points="100,10 40,198 190,78 10,78 160,198" fill="none" stroke="rgba(212,175,55,0.08)" stroke-width="1"/></svg>');
    background-size: 200px;
}

.quran-search-box {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.quran-search-input {
    border: 2px solid #e9ecef;
    border-radius: 14px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    transition: var(--transition);
}

.quran-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 107, 61, 0.1);
}

.surah-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.surah-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    color: inherit;
}

.surah-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.surah-info {
    flex: 1;
    min-width: 0;
}

.surah-name-ar {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    line-height: 1.3;
    color: var(--primary-dark);
}

.surah-name-id {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.surah-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.surah-ayat {
    text-align: right;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.juz-tab {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    transition: var(--transition);
}

.juz-tab:hover,
.juz-tab.active {
    background: var(--primary-color);
    color: white;
}

/* ===== Quran Reader ===== */
.ayah-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.ayah-container:hover {
    box-shadow: var(--shadow-md);
}

.ayah-arabic {
    font-family: 'Amiri', 'Traditional Arabic', serif;
    font-size: 2rem;
    line-height: 2.5;
    direction: rtl;
    text-align: right;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.ayah-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.ayah-translation {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
    padding-left: 3rem;
    border-left: 3px solid var(--primary-color);
}

/* ===== Utilities ===== */
.bg-light-pattern {
    background: linear-gradient(135deg, #f8fdf9 0%, #e8f5e9 50%, #f5efe0 100%);
}

.bg-dark-pattern {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fw-600 {
    font-weight: 600;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-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 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 100px;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 3rem 0;
    }

    .hero {
        padding: 4rem 0 6rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .card-img-top {
        height: 180px;
    }

    .quran-search-box {
        margin: 1rem;
        margin-top: -2rem;
        padding: 1.5rem;
    }

    .surah-card {
        padding: 1rem;
    }

    .surah-name-ar {
        font-size: 1.25rem;
    }

    .ayah-arabic {
        font-size: 1.5rem;
        line-height: 2.2;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}

/* ===== Animation Classes ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
    background: transparent !important;
    border: none !important;
    padding: 0.5rem !important;
    font-size: 1.25rem;
    color: var(--secondary-color) !important;
    transition: var(--transition);
    cursor: pointer;
}

.theme-toggle:hover {
    transform: rotate(20deg) scale(1.1);
    color: white !important;
}

.theme-toggle:focus {
    box-shadow: none !important;
}

/* ===== Dark Mode Styles ===== */
[data-theme="dark"] {
    --dark-bg: #0f1419;
    --dark-surface: #1a1f26;
    --dark-card: #242b33;
    --dark-border: #2f3640;
    --dark-text: #e8eaed;
    --dark-text-muted: #9aa0a6;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f26 50%, #121820 100%);
    color: var(--dark-text);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--dark-text);
}

[data-theme="dark"] a {
    color: var(--primary-light);
}

[data-theme="dark"] .card {
    background: var(--dark-card);
    border-color: var(--dark-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .card-body,
[data-theme="dark"] .card-header,
[data-theme="dark"] .card-footer {
    color: var(--dark-text);
}

[data-theme="dark"] .card-header {
    border-bottom-color: var(--dark-border);
}

[data-theme="dark"] .card-footer {
    border-top-color: var(--dark-border);
}

[data-theme="dark"] .card-text,
[data-theme="dark"] .text-muted {
    color: var(--dark-text-muted) !important;
}

[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0a3d26 100%);
}

[data-theme="dark"] .hero {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #0a3d26 50%, var(--dark-bg) 100%);
}

[data-theme="dark"] .section {
    background: transparent;
}

[data-theme="dark"] .footer {
    background: var(--dark-surface);
    border-top-color: var(--dark-border);
}

[data-theme="dark"] .footer .footer-title {
    color: var(--dark-text);
}

[data-theme="dark"] .footer .footer-links li,
[data-theme="dark"] .footer .footer-links a,
[data-theme="dark"] .footer p {
    color: var(--dark-text-muted);
}

[data-theme="dark"] .footer .footer-links a:hover {
    color: var(--primary-light);
}

[data-theme="dark"] .footer-social a {
    background: var(--dark-card);
    color: var(--dark-text);
}

[data-theme="dark"] .footer-social a:hover {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: var(--dark-border);
}

[data-theme="dark"] .btn-outline-primary {
    color: var(--primary-light);
    border-color: var(--primary-light);
}

[data-theme="dark"] .btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

[data-theme="dark"] .btn-outline-secondary {
    color: var(--dark-text-muted);
    border-color: var(--dark-border);
}

[data-theme="dark"] .list-group-item {
    background: var(--dark-card);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

[data-theme="dark"] .list-group-item:hover,
[data-theme="dark"] .list-group-item-action:hover {
    background: var(--dark-surface);
}

[data-theme="dark"] .breadcrumb-item a {
    color: var(--primary-light);
}

[data-theme="dark"] .breadcrumb-item.active,
[data-theme="dark"] .breadcrumb-item+.breadcrumb-item::before {
    color: var(--dark-text-muted);
}

[data-theme="dark"] .alert-info {
    background: rgba(13, 107, 61, 0.2);
    border-color: var(--primary-dark);
    color: var(--primary-light);
}

[data-theme="dark"] .table {
    color: var(--dark-text);
}

[data-theme="dark"] .table> :not(caption)>*>* {
    background: var(--dark-card);
    border-bottom-color: var(--dark-border);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: var(--dark-surface);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background: var(--dark-card);
    border-color: var(--primary-color);
    color: var(--dark-text);
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--dark-text-muted);
}

[data-theme="dark"] .pagination .page-link {
    background: var(--dark-card);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

[data-theme="dark"] .pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .pagination .page-link:hover {
    background: var(--dark-surface);
}

[data-theme="dark"] .quran-nav-tabs {
    background: rgba(13, 107, 61, 0.1);
}

[data-theme="dark"] .surah-card,
[data-theme="dark"] .juz-card {
    background: var(--dark-card);
    border-color: var(--dark-border);
}

[data-theme="dark"] .surah-name-id,
[data-theme="dark"] .teacher-name,
[data-theme="dark"] .card-title {
    color: var(--dark-text);
}

[data-theme="dark"] .surah-meta,
[data-theme="dark"] .teacher-position,
[data-theme="dark"] .card-date {
    color: var(--dark-text-muted);
}

[data-theme="dark"] hr {
    border-color: var(--dark-border);
}

[data-theme="dark"] .info-card-compact .info-text {
    color: var(--dark-text-muted);
}

[data-theme="dark"] .content-body {
    color: var(--dark-text);
}

[data-theme="dark"] .content-body p,
[data-theme="dark"] .content-body li {
    color: var(--dark-text-muted);
}

[data-theme="dark"] .surah-name-ar {
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(46, 157, 90, 0.3);
}

[data-theme="dark"] .surah-name-id {
    color: var(--dark-text);
}

[data-theme="dark"] .surah-number {
    background: var(--dark-border);
    color: var(--dark-text);
}

[data-theme="dark"] .surah-card:hover .surah-name-ar {
    color: var(--secondary-color);
}

[data-theme="dark"] .juz-card .juz-number {
    color: var(--primary-light);
}

[data-theme="dark"] .quran-nav-tabs .nav-link {
    color: var(--primary-light);
    background: rgba(46, 157, 90, 0.1);
}

[data-theme="dark"] .quran-nav-tabs .nav-link:hover,
[data-theme="dark"] .quran-nav-tabs .nav-link.active {
    color: white;
}