/* Hadith modal box styling */
.hadith-modal-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6 !important;
    transition: all 0.2s ease;
}

.hadith-modal-box:hover {
    background-color: #e9ecef;
    border-color: #adb5bd !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.hadith-modal-box:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Custom navbar background */
.custom-navbar {
    background-color: #0a883c !important;
    min-height: 48px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.navbar-brand img {
    height: 32px; /* A bit larger for prominence */
}

.navbar-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

.nav-icon-btn {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    padding: 0;
}

.nav-icon-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    color: #ccc !important;
}

.nav-icon-btn:not(:disabled):hover {
    color: #d4edda;
    transition: color 0.2s ease;
}

/* Navbar menu styling - more specific to override Bootstrap and dark mode styles */
.dropdown-menu[aria-labelledby="menuDropdownBtn"] {
    background-color: #0a883c !important;
    border-color: #0a883c !important;
}

.dropdown-menu[aria-labelledby="menuDropdownBtn"] .dropdown-item {
    color: #fff !important;
}

.dropdown-menu[aria-labelledby="menuDropdownBtn"] .dropdown-item:hover,
.dropdown-menu[aria-labelledby="menuDropdownBtn"] .dropdown-item:focus {
    background-color: #157347 !important;
    color: #fff !important;
}

/* Ayah menu dropdown styling */
/* Light mode ayah dropdown styling */
.ayah-container .dropdown-menu {
    background-color: #0a883c !important;
    border-color: #0a883c !important;
}

.ayah-container .dropdown-menu .dropdown-item {
    color: #fff !important;
}

.ayah-container .dropdown-menu .dropdown-item:hover,
.ayah-container .dropdown-menu .dropdown-item:focus {
    background-color: #157347 !important;
    color: #fff !important;
}

/* Additional menu styling - more specific to override Bootstrap and dark mode styles */
.dropdown-menu[aria-labelledby="additionalMenuDropdownBtn"] {
    background-color: #0a883c !important;
    border-color: #0a883c !important;
}

.dropdown-menu[aria-labelledby="additionalMenuDropdownBtn"] .dropdown-item {
    color: #fff !important;
}

.dropdown-menu[aria-labelledby="additionalMenuDropdownBtn"] .dropdown-item:hover,
.dropdown-menu[aria-labelledby="additionalMenuDropdownBtn"] .dropdown-item:focus {
    background-color: #157347 !important;
    color: #fff !important;
}

/* History menu styling - more specific to override Bootstrap and dark mode styles */
.dropdown-menu[aria-labelledby="historyMenuDropdownBtn"] {
    background-color: #0a883c !important;
    border-color: #0a883c !important;
}

.dropdown-menu[aria-labelledby="historyMenuDropdownBtn"] .dropdown-item {
    color: #fff !important;
}

.dropdown-menu[aria-labelledby="historyMenuDropdownBtn"] .dropdown-item:hover,
.dropdown-menu[aria-labelledby="historyMenuDropdownBtn"] .dropdown-item:focus {
    background-color: #157347 !important;
    color: #fff !important;
}

/* Remove caret from all dropdown buttons */
#menuDropdownBtn::after,
#additionalMenuDropdownBtn::after,
#historyMenuDropdownBtn::after,
.ayah-dropdown-btn::after,
.dropdown-toggle::after {
    display: none !important;
}

/* Dark mode compatibility - more specific selectors to override generic dark mode styles */
.dark .dropdown-menu[aria-labelledby="menuDropdownBtn"],
.dark-mode .dropdown-menu[aria-labelledby="menuDropdownBtn"] {
    background-color: #0a883c !important;
    border-color: #0a883c !important;
}

.dark .dropdown-menu[aria-labelledby="menuDropdownBtn"] .dropdown-item,
.dark-mode .dropdown-menu[aria-labelledby="menuDropdownBtn"] .dropdown-item {
    color: #fff !important;
}

.dark .dropdown-menu[aria-labelledby="menuDropdownBtn"] .dropdown-item:hover,
.dark .dropdown-menu[aria-labelledby="menuDropdownBtn"] .dropdown-item:focus,
.dark-mode .dropdown-menu[aria-labelledby="menuDropdownBtn"] .dropdown-item:hover,
.dark-mode .dropdown-menu[aria-labelledby="menuDropdownBtn"] .dropdown-item:focus {
    background-color: #157347 !important;
    color: #fff !important;
}

/* Dark mode compatibility for additional menu */
.dark .dropdown-menu[aria-labelledby="additionalMenuDropdownBtn"],
.dark-mode .dropdown-menu[aria-labelledby="additionalMenuDropdownBtn"] {
    background-color: #0a883c !important;
    border-color: #0a883c !important;
}

.dark .dropdown-menu[aria-labelledby="additionalMenuDropdownBtn"] .dropdown-item,
.dark-mode .dropdown-menu[aria-labelledby="additionalMenuDropdownBtn"] .dropdown-item {
    color: #fff !important;
}

.dark .dropdown-menu[aria-labelledby="additionalMenuDropdownBtn"] .dropdown-item:hover,
.dark .dropdown-menu[aria-labelledby="additionalMenuDropdownBtn"] .dropdown-item:focus,
.dark-mode .dropdown-menu[aria-labelledby="additionalMenuDropdownBtn"] .dropdown-item:hover,
.dark-mode .dropdown-menu[aria-labelledby="additionalMenuDropdownBtn"] .dropdown-item:focus {
    background-color: #157347 !important;
    color: #fff !important;
}

/* Dark mode compatibility for history menu */
.dark .dropdown-menu[aria-labelledby="historyMenuDropdownBtn"],
.dark-mode .dropdown-menu[aria-labelledby="historyMenuDropdownBtn"] {
    background-color: #0a883c !important;
    border-color: #0a883c !important;
}

.dark .dropdown-menu[aria-labelledby="historyMenuDropdownBtn"] .dropdown-item,
.dark-mode .dropdown-menu[aria-labelledby="historyMenuDropdownBtn"] .dropdown-item {
    color: #fff !important;
}

.dark .dropdown-menu[aria-labelledby="historyMenuDropdownBtn"] .dropdown-item:hover,
.dark .dropdown-menu[aria-labelledby="historyMenuDropdownBtn"] .dropdown-item:focus,
.dark-mode .dropdown-menu[aria-labelledby="historyMenuDropdownBtn"] .dropdown-item:hover,
.dark-mode .dropdown-menu[aria-labelledby="historyMenuDropdownBtn"] .dropdown-item:focus {
    background-color: #157347 !important;
    color: #fff !important;
}

/* Comprehensive Dark Mode Styles */
.dark-mode {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

.dark-mode .container-fluid {
    background-color: #1a1a1a !important;
}

.dark-mode .sura-header-container {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

.dark-mode .hadith-header-container {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

.dark-mode .ayah-container {
    background-color: #2d2d2d !important;
    border-color: #444444 !important;
}

.dark-mode .modal-content {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

.dark-mode .modal-header {
    background-color: #1a1a1a !important;
    border-bottom-color: #444444 !important;
}

.dark-mode .modal-footer {
    background-color: #1a1a1a !important;
    border-top-color: #444444 !important;
}

.dark-mode .form-control,
.dark-mode .form-select {
    background-color: #3a3a3a !important;
    border-color: #555555 !important;
    color: #ffffff !important;
}

.dark-mode .form-control:focus,
.dark-mode .form-select:focus {
    background-color: #3a3a3a !important;
    border-color: #0a883c !important;
    color: #ffffff !important;
}

/* Dark mode select option styling */
.dark-mode .form-select option {
    background-color: #3a3a3a !important;
    color: #ffffff !important;
}

.dark-mode .form-select option:checked,
.dark-mode .form-select option:hover,
.dark-mode .form-select option:focus,
.dark-mode .form-select option:active {
    background-color: #0a883c !important;
    color: #ffffff !important;
}

.dark-mode .form-select option:selected {
    background-color: #0a883c !important;
    color: #ffffff !important;
    font-weight: bold;
}

.dark-mode .form-check-input:checked {
    background-color: #0a883c !important;
    border-color: #0a883c !important;
}

.dark-mode .btn-secondary {
    background-color: #555555 !important;
    border-color: #666666 !important;
    color: #ffffff !important;
}

.dark-mode .btn-secondary:hover {
    background-color: #666666 !important;
    border-color: #777777 !important;
}

.dark-mode .dropdown-menu {
    background-color: #2d2d2d !important;
    border-color: #444444 !important;
}

.dark-mode .dropdown-item {
    color: #ffffff !important;
}

.dark-mode .dropdown-item:hover {
    background-color: #444444 !important;
}

.dark-mode .text-success {
    color: #4ade80 !important;
}

.dark-mode .bg-light {
    background-color: #2d2d2d !important;
}



@media (max-width: 767px) {
    .navbar .gap-3 {
        gap: 1rem !important;
    }
}

/* Make modal close button white in dark mode */
.dark .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

@font-face {
    font-family: 'AlQuran IndoPak by QuranWBW';
    src: url('../fonts/font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.quran-arabic-font-madinah {
    font-family: 'AlQuran IndoPak by QuranWBW', 'Arial', sans-serif;
    direction: rtl;
}



 @font-face {
    font-family: 'AlQalamQuranMajeed';
    src: url('../fonts/Al Qalam Quran Majeed Updated.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
} 

 .quran-arabic-font {
    font-family: 'AlQalamQuranMajeed', 'Arial', sans-serif;
    direction: rtl;
} 

@font-face {
    font-family: 'UthmanicHafs';
    src: url('../fonts/UthmanicHafs_V20.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


.quran-arabic-font-uthmani {
    font-family: 'UthmanicHafs', 'Arial', sans-serif;
    direction: rtl;
}

@font-face {
    font-family: '_PDMS_Saleem_QuranFont';
    src: url('../fonts/_PDMS_Saleem_QuranFont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.hadith-arabic-font {
    font-family: '_PDMS_Saleem_QuranFont', 'Arial', sans-serif;
    direction: rtl;
}

@font-face {
    font-family: 'MeezanUniUpd';
    src: url('../fonts/MeezanUniUpd.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
.tamil-custom-font {
    font-family: 'MeezanUniUpd', 'Latha', 'Arial', sans-serif;
}

/* Quran Content Styling */
.quran-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .ayah-container {
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .arabic-text, .word-by-word, .transliteration, .translation {
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Mobile Sura Header */
    .sura-header-container {
        margin-top: 0;
        margin-bottom: 0.1rem;
        padding: 0 0.5rem;
    }
    
    /* Mobile Hadith Header */
    .hadith-header-container {
        margin-top: 0;
        margin-bottom: 0.1rem;
        padding: 0 0.5rem;
    }
    
    .sura-header {
        padding: 0.75rem !important;
        border-radius: 4px !important;
        border-width: 1px !important;
    }
    
    .sura-number-name h2 {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .sura-type-verse-count p {
        font-size: 0.9rem !important;
        margin-bottom: 0 !important;
    }
    
    /* Mobile Quran Content */
    .quran-content {
        padding: 0 0.5rem;
    }
    
    /* Mobile Ayah Container */
    .ayah-container {
        padding: 0.5rem !important;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile Arabic Text */
    .arabic-text {
        padding: 0.75rem;
        font-size: 1.1rem;
    }
    
    /* Mobile Translation */
    .translation, .transliteration {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    /* Mobile Word by Word */
    .word-by-word {
        padding: 0.75rem;
    }
    
    .transarabicword {
        margin: 0 4px 0 1px;
        padding: 2px;
    }
    
    .arabicword {
        font-size: 1rem;
    }
    
    .transword {
        font-size: 0.8rem;
    }
    
    /* Mobile Sura Ayah Reference */
    .sura-ayah-reference {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    /* Mobile Dropdown */
    .ayah-dropdown-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
        background-color: #f8f9fa !important;
        color: #212529 !important;
        border-color: #dee2e6 !important;
    }
    
    .ayah-dropdown-btn:active,
    .ayah-dropdown-btn:focus,
    .ayah-dropdown-btn:hover {
        background-color: #e9ecef !important;
        color: #212529 !important;
        border-color: #adb5bd !important;
    }
    
    /* Mobile Container */
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-top: 0 !important;
        padding-top: 0.5rem !important;
    }
    
    /* Mobile Navbar Spacing */
    .navbar + .container-fluid {
        margin-top: 0.25rem !important;
        padding-top: 0.25rem !important;
    }
}

/* Ensure content is not hidden under fixed navbar */
.navbar.fixed-top + .container-fluid {
    margin-top: 40px !important;
}

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .navbar.fixed-top + .container-fluid {
        margin-top: 56px !important;
    }
    .container-fluid {
        margin-top: 0 !important;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    .sura-header-container {
        margin-top: 0;
        margin-bottom: 0.1rem;
        padding: 0 0.5rem;
    }
}

.ayah-container {
    background-color: #fff;
    transition: all 0.3s ease;
    margin-bottom: 1px;
    border: 1px solid #0a883c !important;
}

.ayah-container:hover {
    background-color: #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.arabic-text {
    background-color: #ffffff;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: right;
    font-size: 28px; /* Default Arabic font size to match JavaScript settings */
    border: 1px solid #a3d9a4; /* Medium green border with higher contrast */
}

.sura-ayah-reference {
    background-color: #d1ecf1;
    padding: 0 0.5rem;
    border-radius: 8px;
    margin-bottom: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: left;
    font-size: 0.9rem;
    font-weight: bold;
    color: #0a883c;
    border: 1px solid #bee5eb; /* Light blue border */
}

.word-by-word, .translation {
    background-color: #dff0d8;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #a3d9a4; /* Medium green border with higher contrast */
}

.transliteration {
    background-color: #eff0d8;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #a3d9a4; /* Medium green border with higher contrast */
}

.word-by-word {
    text-align: right;
    direction: rtl;
}

.transarabicword {
    display: inline-block;
    margin: 0 8px 0 2px;
    text-align: center;
    vertical-align: top;
    padding: 4px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
}

.arabicword {
    display: block;
    font-family: 'AlQuran IndoPak by QuranWBW', 'Arial', sans-serif;
    font-size: 1.1em;
    color: #0a883c;
    margin-bottom: 2px;
}

.transword {
    display: block;
    font-size: 0.9em;
    color: #333;
    text-align: left;
    direction: ltr;
}

.word-by-word:last-child, .transliteration:last-child, .translation:last-child {
    margin-bottom: 2px;
}

/* Dark mode support */
.dark .ayah-container {
    background-color: #222;
    border-color: #0a883c !important;
}

.dark .arabic-text {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #6c757d; /* Light gray border for dark mode */
}

.dark .word-by-word, 
.dark .translation {
    background-color: #495057;
    color: #ffffff;
    border-color: #6c757d; /* Light gray border for dark mode */
}

.dark .transliteration {
    background-color: #3a3b2a;
    color: #ffffff;
    border-color: #6c757d; /* Light gray border for dark mode */
}

.dark .sura-ayah-reference {
    background-color: #495057;
    color: #28a745 !important;
    border-color: #6c757d; /* Light gray border for dark mode */
}


/* Dark mode support for word-by-word text */
.dark .arabicword {
    color: #28a745 !important;
}

/* Sura Header Styling */
.sura-header-container {
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
}

/* Hadith Header Styling */
.hadith-header-container {
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
}

.hadith-header {
    background: linear-gradient(135deg, #dff0d8 0%, #c8e6c9 100%);
    border: 2px solid #0a883c !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

/* Dark mode support for Hadith header */
.dark .hadith-header {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    border-color: #28a745 !important;
}

.sura-header {
    background: linear-gradient(135deg, #dff0d8 0%, #c8e6c9 100%);
    border: 2px solid #0a883c !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.sura-number-name h2 {
    font-weight: bold;
    color: #0a883c !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.sura-type-verse-count p {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* Dark mode support for Sura header */
.dark .sura-header {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    border-color: #28a745 !important;
}

.dark .sura-number-name h2 {
    color: #28a745 !important;
}

.dark .sura-type-verse-count p {
    color: #ffffff !important;
}

.dark .transword {
    color: #ffffff !important;
}

.dark .transarabicword {
    background-color: rgba(255, 255, 255, 0.05);
} 
.dark .sura-ayah-ref-text {
    color: #fff !important;
} 
.dark .ayah-container .dropdown-menu {
    background-color: #0a883c !important;
    color: #fff !important;
    border-color: #0a883c !important;
}
.dark .ayah-container .dropdown-menu .dropdown-item {
    color: #fff !important;
}
.dark .ayah-container .dropdown-menu .dropdown-item:hover,
.dark .ayah-container .dropdown-menu .dropdown-item:focus {
    background-color: #157347 !important;
    color: #fff !important;
} 
.dark .ayah-dropdown-btn {
    background-color: #343a40 !important;
    color: #fff !important;
    border-color: #23272b !important;
}
.dark .ayah-dropdown-btn:active,
.dark .ayah-dropdown-btn:focus,
.dark .ayah-dropdown-btn:hover {
    background-color: #23272b !important;
    color: #fff !important;
    border-color: #1d2124 !important;
} 

.ayah-playing {
    background-color: #fff3cd !important;
    box-shadow: 0 0 10px #ffeaa7;
    border: 2px solid #ffeaa7 !important;
}
.dark .ayah-playing {
    background-color: #fff3cd !important;
    border: 2px solid #ffeaa7 !important;
} 
.dark .container, .dark .container-fluid {
    background-color: #181818 !important;
    color: #fff !important;
} 
.sura-modal-box {
    background-color: #fff !important;
    color: #212529 !important;
    border-color: #dee2e6 !important;
}
.dark .sura-modal-box {
    background-color: #23272b !important;
    color: #fff !important;
    border-color: #444 !important;
} 
.dark .modal-content {
    background-color: #23272b !important;
    color: #fff !important;
    border-color: #444 !important;
}
.dark .modal-header,
.dark .modal-footer {
    background-color: #23272b !important;
    color: #fff !important;
    border-color: #444 !important;
}
.dark .modal-body {
    background-color: #23272b !important;
    color: #fff !important;
}

/* Compare Modal Specific Styling */
#compareModal .modal-dialog {
    max-width: 80%;
}

@media (max-width: 768px) {
    #compareModal .modal-dialog {
        max-width: 95%;
        margin: 0.5rem;
    }
}

.compare-section {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #f8f9fa;
    margin-bottom: 1rem;
    overflow: hidden;
}

.compare-section h6 {
    background-color: #0a883c;
    color: white;
    margin: 0;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
}

.compare-header {
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compare-header:hover {
    background-color: #157347 !important;
}

.collapse-icon {
    transition: all 0.2s ease;
    font-size: 0.9em;
}

.compare-section .content {
    padding: 1rem;
    line-height: 1.6;
}

.compare-section .arabic-content {
    text-align: right;
    direction: rtl;
    font-size: 1.2em;
    line-height: 2;
}

.compare-section .word-by-word {
    text-align: right;
    direction: rtl;
}

.compare-section .transarabicword {
    display: inline-block;
    margin: 0 8px 8px 2px;
    text-align: center;
    vertical-align: top;
    padding: 6px;
    border-radius: 6px;
    background-color: rgba(10, 136, 60, 0.1);
    border: 1px solid rgba(10, 136, 60, 0.2);
}

.compare-section .arabicword {
    display: block;
    font-size: 1.1em;
    color: #0a883c;
    margin-bottom: 4px;
    font-weight: 500;
}

.compare-section .transword {
    display: block;
    font-size: 0.85em;
    color: #333;
    border-top: 1px solid #ddd;
    padding-top: 4px;
}

/* Dark mode support for compare modal */
.dark .compare-section {
    background-color: #343a40;
    border-color: #495057;
}

.dark .compare-section h6 {
    background-color: #28a745;
    border-bottom-color: #495057;
}

.dark .compare-header:hover {
    background-color: #198754 !important;
}

.dark .compare-section .content {
    color: #fff;
}

.dark .compare-section .transarabicword {
    background-color: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.3);
}

.dark .compare-section .arabicword {
    color: #28a745;
}

.dark .compare-section .transword {
    color: #fff;
    border-top-color: #495057;
}

/* Loading animation for compare modal */
.compare-loading {
    text-align: center;
    padding: 2rem;
}

.compare-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive text sizes for compare modal */
@media (max-width: 768px) {
    .compare-section .arabicword {
        font-size: 1em;
    }
    
    .compare-section .transword {
        font-size: 0.8em;
    }
    
    .compare-section .content {
        padding: 0.75rem;
        font-size: 0.9em;
    }
    
    .compare-section h6 {
        padding: 0.5rem 0.75rem;
        font-size: 0.9em;
    }
} 
/* Custom Pagination Styling */
.pagination .page-link {
    background-color: #0a883c;
    color: white;
    border-color: #0a883c;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #157347;
    border-color: #157347;
}

.pagination .page-item.disabled .page-link {
    background-color: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
}

/* Dark mode support for pagination */
.dark .pagination .page-link {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

.dark .pagination .page-link:hover {
    background-color: #198754;
    border-color: #198754;
}

.dark .pagination .page-item.disabled .page-link {
    background-color: #343a40;
    color: #6c757d;
    border-color: #495057;
}

/* Search highlight */
.search-highlight {
    color: red;
}

/* Dark mode for today-tab cards */
.dark .card {
    background-color: #2d3748 !important;
    border-color: #4a5568 !important;
    color: #e2e8f0 !important;
}

.dark .card-header {
    background-color: #1a202c !important;
    border-bottom-color: #4a5568 !important;
    color: #ffffff !important;
}

.dark .card-body {
    background-color: #2d3748 !important;
    color: #e2e8f0 !important;
}

.dark .card-title {
    color: #ffffff !important;
}

.dark .text-muted {
    color: #a0aec0 !important;
}

/* Dark mode for today-tab specific content */
.dark .quran-arabic-font {
    color: #ffffff !important;
}

.dark .tamil-custom-font {
    color: #e2e8f0 !important;
}

.dark .hadith-arabic-font {
    color: #ffffff !important;
}

.dark .transword {
    color: #e2e8f0 !important;
}

.dark .arabicword {
    color: #68d391 !important;
}

.dark .transarabicword {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Dark mode for list group items in cards */
.dark .list-group-item {
    background-color: #2d3748 !important;
    border-color: #4a5568 !important;
    color: #e2e8f0 !important;
}

.dark .list-group-item:hover {
    background-color: #4a5568 !important;
    color: #ffffff !important;
}

.dark .list-group-item-action {
    color: #e2e8f0 !important;
}

.dark .list-group-item-action:hover {
    background-color: #4a5568 !important;
    color: #ffffff !important;
}

/* Dark mode for specific colored text in cards */
.dark .text-danger {
    color: #f56565 !important;
}

.dark .text-warning {
    color: #ed8936 !important;
}

.dark .text-primary {
    color: #63b3ed !important;
}

.dark .text-info {
    color: #68d391 !important;
}

/* Dark mode for main content areas */
.dark main {
    background-color: #1a202c !important;
    color: #e2e8f0 !important;
}

.dark .container-fluid {
    background-color: #1a202c !important;
    color: #e2e8f0 !important;
}

/* Dark mode for tab content */
.dark .tab-content {
    background-color: #1a202c !important;
    color: #e2e8f0 !important;
}

.dark .tab-pane {
    background-color: #1a202c !important;
    color: #e2e8f0 !important;
}

/* Dark mode for accordion elements */
.dark .accordion-item {
    background-color: #2d3748 !important;
    border-color: #4a5568 !important;
}

.dark .accordion-button {
    background-color: #2d3748 !important;
    color: #e2e8f0 !important;
    border-color: #4a5568 !important;
}

.dark .accordion-button:not(.collapsed) {
    background-color: #0a883c !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.dark .accordion-button:focus {
    background-color: #0a883c !important;
    box-shadow: 0 0 0 0.25rem rgba(10, 136, 60, 0.25) !important;
}

.dark .accordion-button::after {
    filter: brightness(0) invert(1);
}

.dark .accordion-body {
    background-color: #2d3748 !important;
    color: #e2e8f0 !important;
}

/* Dark mode for alert elements */
.dark .alert-primary {
    background-color: #1e3a8a !important;
    border-color: #3b82f6 !important;
    color: #dbeafe !important;
}

.dark .alert {
    background-color: #2d3748 !important;
    border-color: #4a5568 !important;
    color: #e2e8f0 !important;
}

/* Dark mode for headings */
.dark h2, .dark h5 {
    color: #e2e8f0 !important;
}

/* Dark mode for lists */
.dark ul, .dark ol {
    color: #e2e8f0 !important;
}

.dark li {
    color: #e2e8f0 !important;
}

/* Dark mode for body and container elements */
.dark body {
    background-color: #1a202c !important;
    color: #e2e8f0 !important;
}

.dark .container {
    background-color: #1a202c !important;
    color: #e2e8f0 !important;
}

.dark .container-fluid {
    background-color: #1a202c !important;
    color: #e2e8f0 !important;
}

.dark .row {
    background-color: transparent !important;
}

.dark .col-12 {
    background-color: transparent !important;
}

/* Dark mode select option styling for .dark class */
.dark .form-select {
    background-color: #3a3a3a !important;
    border-color: #555555 !important;
    color: #ffffff !important;
}

.dark .form-select:focus {
    background-color: #3a3a3a !important;
    border-color: #0a883c !important;
    color: #ffffff !important;
}

.dark .form-select option {
    background-color: #3a3a3a !important;
    color: #ffffff !important;
}

.dark .form-select option:checked,
.dark .form-select option:hover,
.dark .form-select option:focus,
.dark .form-select option:active {
    background-color: #0a883c !important;
    color: #ffffff !important;
}

.dark .form-select option:selected {
    background-color: #0a883c !important;
    color: #ffffff !important;
    font-weight: bold;
}

/* Dark mode table styling */
.dark .table {
    background-color: #2d3748 !important;
    color: #e2e8f0 !important;
    border-color: #4a5568 !important;
}

.dark .table th,
.dark .table td {
    background-color: #2d3748 !important;
    color: #e2e8f0 !important;
    border-color: #4a5568 !important;
}

.dark .table-striped > tbody > tr:nth-of-type(odd) > td,
.dark .table-striped > tbody > tr:nth-of-type(odd) > th {
    background-color: #1a202c !important;
    color: #e2e8f0 !important;
}

.dark .table-hover > tbody > tr:hover > td,
.dark .table-hover > tbody > tr:hover > th {
    background-color: #4a5568 !important;
    color: #ffffff !important;
}

.dark .table-light {
    background-color: #0a883c !important;
    color: #ffffff !important;
    border-color: #157347 !important;
}

.dark .table-light th,
.dark .table-light td {
    background-color: #0a883c !important;
    color: #ffffff !important;
    border-color: #157347 !important;
}

/* Dark mode button styling in tables */
.dark .btn-outline-primary {
    background-color: transparent !important;
    color: #68d391 !important;
    border-color: #68d391 !important;
}

.dark .btn-outline-primary:hover,
.dark .btn-outline-primary:focus {
    background-color: #68d391 !important;
    color: #1a202c !important;
    border-color: #68d391 !important;
}

/* Music Modal Green Theme Styling */
#modal-music .modal-content {
    border: 2px solid #0a883c !important;
}

#modal-music .modal-header {
    background-color: #0a883c !important;
    border-bottom: 1px solid #157347 !important;
}

#modal-music .modal-body {
    background-color: #f8f9fa;
    border-left: 2px solid #0a883c;
    border-right: 2px solid #0a883c;
}

#modal-music .modal-footer {
    background-color: #f8f9fa !important;
    border-top: 1px solid #0a883c !important;
    border-bottom: 2px solid #0a883c;
}

#modal-music .form-select {
    border-color: #0a883c !important;
}

#modal-music .form-select:focus {
    border-color: #157347 !important;
    box-shadow: 0 0 0 0.2rem rgba(10, 136, 60, 0.25) !important;
}

#modal-music .form-control {
    border-color: #0a883c !important;
}

#modal-music .form-control:focus {
    border-color: #157347 !important;
    box-shadow: 0 0 0 0.2rem rgba(10, 136, 60, 0.25) !important;
}

#modal-music .btn-success {
    background-color: #0a883c !important;
    border-color: #0a883c !important;
}

#modal-music .btn-success:hover,
#modal-music .btn-success:focus {
    background-color: #157347 !important;
    border-color: #157347 !important;
}

/* Dark Mode for Music Modal */
.dark #modal-music .modal-content,
.dark-mode #modal-music .modal-content {
    background-color: #2d3748 !important;
    border-color: #0a883c !important;
    color: #e2e8f0 !important;
}

.dark #modal-music .modal-header,
.dark-mode #modal-music .modal-header {
    background-color: #0a883c !important;
    border-bottom-color: #157347 !important;
}

.dark #modal-music .modal-body,
.dark-mode #modal-music .modal-body {
    background-color: #2d3748 !important;
    color: #e2e8f0 !important;
    border-left-color: #0a883c !important;
    border-right-color: #0a883c !important;
}

.dark #modal-music .modal-footer,
.dark-mode #modal-music .modal-footer {
    background-color: #2d3748 !important;
    border-top-color: #0a883c !important;
    border-bottom-color: #0a883c !important;
}

.dark #modal-music .form-select,
.dark-mode #modal-music .form-select {
    background-color: #1a202c !important;
    border-color: #0a883c !important;
    color: #e2e8f0 !important;
}

.dark #modal-music .form-select:focus,
.dark-mode #modal-music .form-select:focus {
    background-color: #1a202c !important;
    border-color: #157347 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 0 0 0.2rem rgba(10, 136, 60, 0.25) !important;
}

.dark #modal-music .form-control,
.dark-mode #modal-music .form-control {
    background-color: #1a202c !important;
    border-color: #0a883c !important;
    color: #e2e8f0 !important;
}

.dark #modal-music .form-control:focus,
.dark-mode #modal-music .form-control:focus {
    background-color: #1a202c !important;
    border-color: #157347 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 0 0 0.2rem rgba(10, 136, 60, 0.25) !important;
}

.dark #modal-music .btn-success,
.dark-mode #modal-music .btn-success {
    background-color: #0a883c !important;
    border-color: #0a883c !important;
    color: #ffffff !important;
}

.dark #modal-music .btn-success:hover,
.dark #modal-music .btn-success:focus,
.dark-mode #modal-music .btn-success:hover,
.dark-mode #modal-music .btn-success:focus {
    background-color: #157347 !important;
    border-color: #157347 !important;
    color: #ffffff !important;
} 