:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #141b3b;
    --bg-tertiary: #1e2747;
    --text-primary: #ffffff;
    --text-secondary: #9aa4bf;
    --text-muted: #6b7280;
    --accent-teal: #00ded8;
    --accent-teal-dark: #00b8b3;
    --accent-gold: #e2b45b;
    --border-light: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --glass-effect: rgba(255, 255, 255, 0.03);
    --sidebar-width: 300px;
    --footer-height: 140px;
}

[data-theme="light"] {
    --bg-primary: #f3f6fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef2f6;
    --text-primary: #1a2639;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --accent-teal: #0d9488;
    --accent-teal-dark: #0f766e;
    --accent-gold: #b45309;
    --border-light: rgba(0, 0, 0, 0.05);
    --border-medium: rgba(0, 0, 0, 0.1);
    --glass-effect: rgba(0, 0, 0, 0.02);
}

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

#sit-quran-app {
    max-width: 1400px;
    margin: 40px auto;
    display: flex;
    height: 85vh;
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border-medium);
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', sans-serif;
}

.sit-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-medium);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.sidebar-search {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

.sidebar-search i {
    color: var(--accent-teal);
    font-size: 0.9rem;
}

.sidebar-search input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
    width: 100%;
    font-size: 0.9rem;
}

.sidebar-search input::placeholder {
    color: var(--text-muted);
}

.nav-tabs {
    display: flex;
    padding: 15px 15px 0 15px;
    gap: 8px;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

.tab-btn {
    flex: 1;
    padding: 5px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    transition: 0.3s;
    border-radius: 8px 8px 0 0;
}

.tab-btn.active {
    color: var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    background: linear-gradient(to top, rgba(226, 180, 91, 0.1), transparent);
}

.sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 5px;
    /*max-height: calc(85vh - 250px);*/
    scrollbar-width: thin;
    scrollbar-color: var(--accent-teal) var(--bg-tertiary);
}

#juzListContainer,
#bookmarksListContainer,
#favoritesListContainer,
#notesListContainer {
    /*max-height: calc(85vh - 250px);*/
    overflow-y: auto;
    padding: 15px;
}

.loading-spinner {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.loading-spinner i {
    color: var(--accent-teal);
    margin-right: 8px;
}

.surah-item {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 12px;
    margin-bottom: 4px;
    transition: 0.2s;
}

.surah-item:hover {
    background: var(--glass-effect);
}

.surah-item.active {
    background: linear-gradient(90deg, rgba(0, 222, 216, 0.1), transparent);
    border-left: 3px solid var(--accent-gold);
}

.s-info {
    flex: 1;
    min-width: 0;
}

.s-info strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
}

.s-info small {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.s-arabic {
    font-family: 'Amiri', serif;
    margin: 0 10px;
    white-space: nowrap;
    color: var(--accent-teal);
    font-size: 1.1rem;
}

.surah-badge {
    color: var(--accent-teal);
    font-size: 1rem;
}

.juz-item,
.bookmark-item,
.favorite-item {
    padding: 16px;
    margin-bottom: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.juz-item:hover,
.bookmark-item:hover,
.favorite-item:hover {
    border-color: var(--accent-teal);
    transform: translateY(-2px);
    background: var(--bg-secondary);
}

.juz-item strong,
.bookmark-item span,
.favorite-item span {
    color: var(--accent-gold);
    font-size: 0.95rem;
    font-weight: 600;
}

.juz-item small {
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: block;
    margin-top: 4px;
}

.juz-info {
    display: flex;
    flex-direction: column;
}

.juz-item i {
    color: var(--accent-teal);
    font-size: 0.9rem;
    opacity: 0.7;
    transition: all 0.2s;
}

.juz-item:hover i {
    opacity: 1;
    transform: translateX(5px);
}

.juz-item:last-child,
.bookmark-item:last-child,
.favorite-item:last-child,
.surah-item:last-child {
    margin-bottom: 50px;
}

.remove-bookmark,
.remove-favorite {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
}

.remove-bookmark:hover,
.remove-favorite:hover {
    color: #ff4d4d;
}

.empty-bookmarks,
.empty-favorites {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-favorites i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--accent-teal);
    opacity: 0.5;
}

.sit-main-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--bg-primary);
    height: 100%;
    overflow: hidden;
}

.view-header {
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-trigger {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
}

.surah-meta h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--accent-teal);
}

.surah-meta span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.verse-scroller {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    scroll-behavior: smooth;
    background: var(--bg-primary);
    padding-bottom: 180px;
}

.empty-state {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--accent-teal);
    opacity: 0.5;
}

.ayah-card {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.ayah-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-teal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ayah-card.playing {
    border-left: 4px solid var(--accent-gold);
    border-right: 1px solid var(--accent-gold);
    border-top: 1px solid var(--accent-gold);
    border-bottom: 1px solid var(--accent-gold);
    animation: glowPulse 2.5s ease-in-out infinite;
    background: var(--bg-secondary);
    box-shadow: 0 0 30px rgba(226, 180, 91, 0.3);
    position: relative;
}

.ayah-card.playing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(226, 180, 91, 0.15), transparent 70%);
    opacity: 0;
    animation: glowRadial 2.5s ease-in-out infinite;
    pointer-events: none;
    border-radius: 16px;
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(226, 180, 91, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(226, 180, 91, 0.5);
    }
}

@keyframes glowRadial {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.95);
    }

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

.ar-text {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    line-height: 3.8rem;
    text-align: right;
    direction: rtl;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.en-text {
    font-size: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
    border-left: 3px solid var(--accent-gold);
    padding-left: 20px;
}

.ayah-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.ayah-ref {
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.tool-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.t-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.t-btn:hover {
    background: var(--accent-teal);
    color: white;
    border-color: var(--accent-teal);
    transform: scale(1.1);
}

.t-btn.bookmarked {
    color: var(--accent-gold);
}

.t-btn.favorited {
    color: #ff4d4d;
}

.t-btn.similar-btn {
    color: var(--accent-teal);
}

.note-btn {
    color: var(--text-secondary);
    transition: all 0.2s;
}

.note-btn.has-note {
    color: var(--accent-teal);
    background: rgba(0, 222, 216, 0.1);
}

.note-btn[data-category="reflection"] {
    color: #ffee00;
}

.note-btn[data-category="tafseer"] {
    color: #10b981;
}

.note-btn[data-category="personal"] {
    color: #f59e0b;
}

.download-progress {
    margin-top: 10px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-teal);
    width: 0%;
    transition: width 0.3s ease;
}

.sit-player-dock {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--accent-gold);
    padding: 10px 30px 15px;
    z-index: 20;
    height: var(--footer-height);
}

.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.time-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    min-width: 45px;
    font-family: monospace;
}

.sit-slider {
    flex: 1;
    height: 5px;
    background: var(--bg-tertiary);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.sit-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-gold);
    border-radius: 50%;
    cursor: pointer;
    margin-top: -5px;
}

.sit-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--accent-teal), var(--accent-teal-dark));
    border-radius: 5px;
}

.dock-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playing-now {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.playing-badge {
    background: var(--accent-teal);
    color: var(--bg-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.playing-text {
    display: flex;
    flex-direction: column;
}

.playing-text strong {
    font-size: 0.9rem;
}

.playing-text small {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.playback-engine {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.nav-ctrl {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    position: relative;
}

.nav-ctrl:hover {
    color: var(--accent-teal);
    background: var(--glass-effect);
}

.nav-ctrl.active {
    color: var(--accent-teal);
}

.timer-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-gold);
    color: var(--bg-primary);
    font-size: 0.6rem;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.master-play {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-teal-dark));
    color: white;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 222, 216, 0.2);
    transition: all 0.3s;
}

.master-play:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 222, 216, 0.3);
}

.repeat-container {
    position: relative;
    display: inline-block;
}

.repeat-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-gold);
    color: var(--bg-primary);
    font-size: 0.6rem;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.quick-settings {
    display: flex;
    gap: 10px;
    align-items: center;
}

.minimal-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
}

.minimal-select.mobile-visible {
    display: block;
}

.speed-badge {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.speed-badge:hover {
    background: var(--accent-teal);
    color: white;
    border-color: var(--accent-teal);
}

.sit-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 9999;
    display: none;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

.resume-bar {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: slideUp 0.3s ease;
    font-weight: 600;
}

.resume-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.resume-actions {
    display: flex;
    gap: 10px;
}

.resume-yes,
.resume-no {
    padding: 6px 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
}

.resume-yes {
    background: var(--bg-primary);
    color: white;
}

.resume-no {
    background: rgba(255, 255, 255, 0.3);
    color: var(--bg-primary);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-teal-dark);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-teal);
}

.note-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.2s ease;
}

.note-modal-content {
    background: var(--bg-secondary);
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    border: 1px solid var(--accent-gold);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.note-modal-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-teal-dark));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.note-modal-header h3 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
}

.note-modal-header h3 i {
    margin-right: 8px;
}

.note-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.note-modal-close:hover {
    background: white;
    color: var(--accent-teal);
    transform: rotate(90deg);
}

.note-modal-body {
    padding: 20px;
}

.note-modal-body textarea {
    width: 100%;
    height: 150px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 15px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 15px;
}

.note-modal-body textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
}

.note-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.note-category {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.note-category:hover {
    border-color: var(--accent-teal);
}

.note-category.active {
    background: var(--accent-teal);
    color: white;
    border-color: var(--accent-teal);
}

.note-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 10px;
}

.note-save-btn {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-teal-dark));
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.note-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 222, 216, 0.3);
}

.note-delete-btn {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid #ef4444;
    border-radius: 30px;
    color: #ef4444;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.note-delete-btn:hover {
    background: #ef4444;
    color: white;
}

.empty-notes {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-notes i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--accent-teal);
    opacity: 0.5;
}

.empty-notes p {
    line-height: 1.6;
}

.note-item {
    padding: 16px;
    margin-bottom: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    border-left: 3px solid transparent;
}

.note-item[data-category="reflection"] {
    border-left-color: #8b5cf6;
}

.note-item[data-category="tafseer"] {
    border-left-color: #10b981;
}

.note-item[data-category="personal"] {
    border-left-color: #f59e0b;
}

.note-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent-teal);
}

.note-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.note-reference {
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.note-category-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: capitalize;
}

.note-category-badge.reflection {
    background: #8b5cf6;
    color: white;
}

.note-category-badge.tafseer {
    background: #10b981;
    color: white;
}

.note-category-badge.personal {
    background: #f59e0b;
    color: white;
}

.note-item-preview {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.note-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.note-item-delete {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.note-item-delete:hover {
    color: #ef4444;
}

.similar-verses-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-width: 90%;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.similar-verses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--accent-teal-dark), var(--accent-teal));
    color: white;
}

.similar-verses-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-similar {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-similar:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.similar-verses-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.similar-verse-item {
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.similar-verse-item:hover {
    border-color: var(--accent-teal);
    transform: translateY(-2px);
}

.similar-verse-ref {
    font-size: 0.8rem;
    color: var(--accent-gold);
    margin-bottom: 5px;
    font-weight: 600;
}

.similar-verse-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.timer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10002;
    align-items: center;
    justify-content: center;
}

.timer-modal.active {
    display: flex;
}

.timer-modal-content {
    background: var(--bg-secondary);
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    border: 1px solid var(--accent-gold);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.timer-modal-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-teal-dark));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timer-modal-header h3 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
}

.timer-modal-header h3 i {
    margin-right: 8px;
}

.timer-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.timer-modal-close:hover {
    background: white;
    color: var(--accent-teal);
    transform: rotate(90deg);
}

.timer-modal-body {
    padding: 30px 20px;
    text-align: center;
}

.timer-modal-body p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.timer-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.timer-option {
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 80px;
}

.timer-option:hover {
    background: var(--accent-teal);
    color: white;
    border-color: var(--accent-teal);
    transform: scale(1.05);
}

.timer-cancel {
    padding: 10px 30px;
    background: transparent;
    border: 1px solid #ef4444;
    border-radius: 30px;
    color: #ef4444;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.timer-cancel:hover {
    background: #ef4444;
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.quran-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    z-index: 15;
    height: 50px;
}

.footer-left {
    align-items: center;
    gap: 8px;
}

.footer-left a {
    color: var(--accent-teal);
    text-decoration: none;
    margin-left: 5px;
}

.footer-left a:hover {
    color: var(--accent-gold);
}

.footer-right a {
    color: var(--accent-teal);
    text-decoration: none;
}

.footer-right a:hover {
    color: var(--accent-gold);
}

.mobile-language-select {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-tertiary);
    border-radius: 30px;
    padding-left: 12px;
}

.mobile-language-select i {
    color: var(--accent-teal);
    font-size: 0.8rem;
}

.mobile-language-select .minimal-select {
    background: var(--bg-primary);
    border: none;
    padding-left: 0;
}

.widget-header-actions {
    display: flex;
    align-items: center;
}

.widget-action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.widget-action-btn:hover {
    color: var(--accent-gold);
    background: var(--glass-effect);
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 280px;
        --footer-height: 180px;
    }

    .sit-sidebar {
        position: absolute;
        left: calc(-1 * var(--sidebar-width));
        z-index: 999;
        height: 100%;
    }

    .sit-sidebar.mobile-active {
        left: 0;
    }

    .menu-trigger {
        display: block;
    }

    .quick-settings {
        display: flex !important;
        width: 100%;
        justify-content: center;
        margin-top: 5px;
    }

    .quick-settings .minimal-select.mobile-visible {
        display: block !important;
        width: auto;
        min-width: 140px;
    }

    .playing-now {
        display: none;
    }

    .verse-scroller {
        padding: 20px;
        padding-bottom: 220px;
    }

    .ar-text {
        font-size: 1.6rem;
        line-height: 3rem;
    }

    .dock-controls {
        flex-wrap: wrap;
        gap: 10px;
    }

    .playback-engine {
        margin: 0 auto;
        width: 100%;
        justify-content: center;
    }

    .resume-bar {
        width: 90%;
        bottom: 120px;
    }

    .resume-content {
        flex-direction: column;
        gap: 10px;
    }

    .sit-player-dock {
        bottom: 70px;
    }

    .quran-footer {
        height: 60px;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .widget-action-btn {
        font-size: 1.1rem;
        width: 36px;
        height: 36px;
        background: linear-gradient(135deg, var(--accent-teal), var(--accent-teal-dark));
        color: white;
        border: 1px solid var(--border-light);
        box-shadow: 0 2px 8px rgba(0, 222, 216, 0.3);
    }

    .widget-action-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(0, 222, 216, 0.5);
    }

    .widget-action-btn i {
        font-size: 1rem;
    }

    .tool-group {
        gap: 5px;
    }

    .t-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .verse-scroller {
        padding: 15px;
        padding-bottom: 220px;
    }

    .ar-text {
        font-size: 1.4rem;
        line-height: 2.6rem;
    }

    .en-text {
        font-size: 0.85rem;
        padding-left: 12px;
    }

    .quick-settings .minimal-select.mobile-visible {
        min-width: 120px;
        font-size: 0.75rem;
    }

    .widget-action-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .widget-action-btn i {
        font-size: 0.9rem;
    }

    .tool-group {
        gap: 3px;
    }

    .t-btn {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }

    .similar-verses-panel {
        width: 95%;
        bottom: 10px;
        right: 2.5%;
    }
}

@media (max-width: 768px) {
    .nav-tabs {
        flex-wrap: wrap;
        padding: 10px 10px 0 10px;
        gap: 5px;
    }

    .tab-btn {
        flex: 1 1 auto;
        min-width: calc(50% - 5px);
        padding: 8px 5px;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .tab-btn i {
        margin-right: 3px;
        font-size: 0.7rem;
    }

    .sidebar-list {
        /*max-height: calc(85vh - 300px);*/
    }

    #juzListContainer,
    #bookmarksListContainer,
    #favoritesListContainer,
    #notesListContainer {
        /*max-height: calc(85vh - 300px);*/
    }
}

@media (max-width: 480px) {
    .tab-btn {
        min-width: 100%;
        font-size: 0.8rem;
        padding: 10px;
    }

    .tab-btn i {
        margin-right: 5px;
        font-size: 0.8rem;
    }

    .sidebar-list {
        /*max-height: calc(85vh - 350px);*/
    }

    #juzListContainer,
    #bookmarksListContainer,
    #favoritesListContainer,
    #notesListContainer {
        /*max-height: calc(85vh - 350px);*/
    }
}

@media (max-width: 768px) {
    .tab-btn {
        min-width: calc(50% - 5px);
        padding: 10px 5px;
        font-size: 0.75rem;
        white-space: nowrap;
        z-index: 1000;
        position: relative;
        pointer-events: auto;
    }

    .nav-tabs {
        position: relative;
        z-index: 1000;
        pointer-events: auto;
    }
}

.download-progress-container {
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 30px;
    background: var(--bg-tertiary);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    display: none;
    z-index: 30;
}

.download-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-teal-dark));
    width: 0%;
    transition: width 0.3s ease;
}

.download-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 31;
}

.t-btn.download-ayah-btn.downloaded {
    color: var(--accent-teal);
    background: rgba(0, 222, 216, 0.1);
    border-color: var(--accent-teal);
    cursor: default;
    opacity: 0.8;
}

.t-btn.download-ayah-btn.downloaded:hover {
    transform: none;
    background: rgba(0, 222, 216, 0.15);
    color: var(--accent-teal);
}

.t-btn.download-ayah-btn.downloaded i {
    color: var(--accent-teal);
}

.t-btn.download-ayah-btn[disabled] {
    pointer-events: none;
}

.t-btn.download-ayah-btn.downloaded {
    color: var(--accent-teal);
    background: rgba(0, 222, 216, 0.1);
    border-color: var(--accent-teal);
}

.t-btn.download-ayah-btn.downloaded:hover {
    background: var(--accent-teal);
    color: white;
    transform: scale(1.1);
}

#downloadSurahZip {
    color: var(--accent-gold);
}

#downloadSurahZip:hover {
    color: white;
    background: var(--accent-gold);
}

@media (max-width: 768px) {
    .tool-group {
        gap: 3px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .t-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        margin: 2px;
    }

    .t-btn i {
        font-size: 0.8rem;
    }

    .download-ayah-btn.downloaded {
        display: inline-flex !important;
    }
}

@media (max-width: 480px) {
    .tool-group {
        gap: 2px;
    }

    .t-btn {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }

    .t-btn i {
        font-size: 0.75rem;
    }
}

.similar-verse-item.current-verse {
    border-left: 3px solid var(--accent-gold);
    background: rgba(226, 180, 91, 0.1);
    cursor: default;
    opacity: 0.7;
}

.similar-verse-item.current-verse:hover {
    transform: none;
    border-color: var(--accent-gold);
}

.similar-verses-header h3 i {
    margin-right: 8px;
}

.similar-verses-header h3 {
    display: flex;
    align-items: center;
    font-size: 1rem;
}
