/* ===== QURAN PAGE STYLES ===== */
/* Arabic & Urdu Fonts */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Scheherazade+New:wght@400;500;600;700&family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Noto+Nastaliq+Urdu:wght@400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #2e7d32;
    --secondary-color: #f8f9fa;
    --text-color: #212529;
    --border-color: #e9ecef;
    --hover-color: #e8f5e8;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* ===== HEADER STYLES ===== */
.header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    position: relative;
    z-index: 10;
}

/* Header is now always visible - removed header-hidden class */

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1b5e20 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.3px;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1b5e20 100%);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav-menu {
    display: none;
}

/* ===== SEARCH SECTION ===== */
.search-section {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    margin-top: 0;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

.search-title {
    display: none;
}

.search-subtitle {
    display: none;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 0;
}

.search-input-container {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    transition: all 0.2s;
    text-align: left;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

.search-input:focus + .search-suggestions {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* ===== SEARCH SUGGESTIONS ===== */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

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

.suggestion-main {
    font-weight: 500;
    color: var(--text-color);
}

.suggestion-sub {
    font-size: 14px;
    color: #6c757d;
    margin-top: 2px;
}

/* ===== REVELATION EXPLANATION ===== */
.revelation-explanation {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    color: #6c757d;
    line-height: 1.6;
}

.revelation-explanation p {
    margin: 0;
    font-size: 14px;
}

.revelation-explanation em {
    font-style: italic;
    color: #495057;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.search-btn:hover {
    background: #1b5e20;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-color);
}

/* ===== TABS STYLES ===== */
.tabs-container {
    margin-bottom: 25px;
}

.tabs-header {
    display: flex;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    max-width: none;
    margin: 0;
    border-bottom: 1px solid #e9ecef;
    gap: 0;
}

.tab-btn {
    flex: none;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    border-bottom: 2px solid transparent;
    margin-right: 20px;
}

.tab-btn:hover {
    color: var(--text-color);
    background: transparent;
}

.tab-btn.active {
    background: transparent;
    color: var(--primary-color);
    box-shadow: none;
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== SURAHS GRID ===== */
.surahs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.surah-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--card-shadow);
}

.surah-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.surah-card:hover .surah-number {
    background: var(--primary-color);
    color: white;
}

.surah-card:hover .surah-arabic {
    color: var(--primary-color);
}

.surah-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.surah-left-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.surah-text-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.surah-right-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.surah-number {
    background: #e9ecef;
    color: #000;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.surah-name {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.1px;
}

.surah-meaning {
    font-size: 13px;
    color: #6c757d;
    font-style: normal;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    letter-spacing: 0.1px;
}

.surah-arabic {
    font-family: 'Scheherazade New', 'Amiri', 'Noto Naskh Arabic', serif;
    font-size: 26px;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
    letter-spacing: 0.5px;
    direction: rtl;
    transition: all 0.2s;
}

.surah-verses-count {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
    margin-top: 2px;
}

.revelation-type {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.revelation-type.medinan {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* ===== LOADING STATES ===== */
.loading {
    text-align: center;
    padding: 60px;
    color: #6c757d;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    overflow: hidden;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-text {
    font-size: 16px;
    color: #6c757d;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    margin: 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== SEARCH RESULTS OVERLAY ===== */
.search-results-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.search-results-modal {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

.search-results-header {
    padding: 25px 30px 20px 30px;
    border-bottom: 1px solid var(--border-color);
    background: #f8f9fa;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-results-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.close-search-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-search-btn:hover {
    background: #e9ecef;
    color: #333;
}

.search-results-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

.search-results-footer {
    padding: 15px 30px;
    border-top: 1px solid var(--border-color);
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.search-results {
    margin-top: 40px;
}

.verse-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: all 0.2s ease;
}

.verse-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.verse-modal-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.verse-modal-card:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.verse-arabic {
    font-family: 'Scheherazade New', 'Amiri', 'Noto Naskh Arabic', serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 2.2;
    text-align: right;
    direction: rtl;
    margin-bottom: 16px;
    color: var(--text-color);
    letter-spacing: 0.5px;
    word-spacing: 2px;
}

.verse-translation {
    font-size: 16px;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 12px;
    font-style: italic;
}

.verse-reference {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

.verse-modal-arabic {
    font-family: 'Scheherazade New', 'Amiri', 'Noto Naskh Arabic', serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.8;
    text-align: right;
    direction: rtl;
    margin-bottom: 12px;
    color: var(--text-color);
    letter-spacing: 0.3px;
}

.verse-modal-translation {
    font-size: 14px;
    line-height: 1.4;
    color: #2c3e50;
    margin-bottom: 10px;
    font-style: normal;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.verse-modal-reference {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== PAGINATION STYLES ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.pagination-btn {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    background: #f8f9fa;
    color: #ccc;
    border-color: #e9ecef;
    cursor: not-allowed;
}

.pagination-btn:disabled:hover {
    background: #f8f9fa;
    color: #ccc;
    border-color: #e9ecef;
}

.pagination-info {
    font-size: 14px;
    color: #6c757d;
    margin: 0 15px;
}

/* ===== SURAH PAGE STYLES ===== */
.surah-page {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 20px;
    position: relative;
    z-index: 1;
}

.back-btn {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.back-btn:hover {
    background: #1b5e20;
    border-color: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.surah-page-header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 25px;
}

.surah-title-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.surah-page-number {
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.surah-title-info {
    flex: 1;
}

.surah-page-title {
    font-family: 'Scheherazade New', 'Amiri', 'Noto Naskh Arabic', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    direction: rtl;
}

.surah-page-meaning {
    font-size: 16px;
    color: #6c757d;
    font-style: italic;
    margin: 0 0 12px 0;
}

.surah-meta-info {
    display: flex;
    gap: 15px;
}

.surah-verses-info, .surah-type-info {
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.surah-arabic-title {
    font-family: 'Scheherazade New', 'Amiri', 'Noto Naskh Arabic', serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
    direction: rtl;
}

.bismillah {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.bismillah-arabic {
    font-family: 'Scheherazade New', 'Amiri', 'Noto Naskh Arabic', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    direction: rtl;
}

.bismillah-translation {
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
}

.verses-container {
    background: white;
    border-radius: 12px;
    padding: 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.verse-item {
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.verse-item.last-verse {
    border-bottom: none;
}

.verse-number {
    background: var(--primary-color);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 5px;
}

.verse-content {
    flex: 1;
}

.verse-arabic-text {
    font-family: 'Scheherazade New', 'Amiri', 'Noto Naskh Arabic', serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 2.2;
    color: var(--text-color);
    text-align: right;
    direction: rtl;
    margin-bottom: 15px;
    word-spacing: 3px;
    letter-spacing: 0.5px;
}

.arabic-verse-number {
    font-family: 'Scheherazade New', 'Amiri', 'Noto Naskh Arabic', serif;
    background: rgba(85, 85, 85, 0.1);
    color: #555;
    border: 2px solid #555;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    margin: 0 8px;
    vertical-align: middle;
}

.verse-translation-text {
    font-size: 15px;
    line-height: 1.5;
    color: #2c3e50;
    font-style: normal;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    letter-spacing: 0.2px;
    margin-bottom: 12px;
}

/* ===== VERSE MENU STYLES ===== */
.verse-item {
    position: relative;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.verse-item:hover {
    background: rgba(46, 125, 50, 0.02);
}

.verse-content {
    margin-left: 28px;
    padding-left: 0;
}

.verse-menu {
    position: absolute;
    top: 8px;
    left: 4px;
    z-index: 10;
}

.verse-menu-btn {
    background: rgba(108, 117, 125, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.2);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    opacity: 0.8;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.verse-menu-btn:hover {
    opacity: 1;
    background: rgba(46, 125, 50, 0.15);
    border-color: rgba(46, 125, 50, 0.3);
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.verse-menu-dots {
    font-size: 16px;
    font-weight: bold;
    color: #555;
    line-height: 1;
}

.verse-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 120px;
}

.verse-menu-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.verse-menu-option:hover {
    background-color: rgba(46, 125, 50, 0.1);
}

.verse-menu-option:first-child {
    border-radius: 6px 6px 0 0;
}

.verse-menu-option:last-child {
    border-radius: 0 0 6px 6px;
}

.menu-icon {
    width: 16px;
    height: 16px;
    color: #666;
}

/* ===== SHARE OPTIONS STYLES ===== */
.share-options-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.share-options-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    width: 90%;
}

.share-options-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
}

.share-options-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-share-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-options-content {
    padding: 12px;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.share-option:hover {
    background-color: rgba(46, 125, 50, 0.1);
}

.share-icon {
    width: 20px;
    height: 20px;
    color: #666;
}

/* ===== COPY DIALOG STYLES ===== */
.copy-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.copy-dialog-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.copy-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
}

.copy-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-copy-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-dialog-content {
    padding: 20px;
}

.copy-preview {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.copy-arabic {
    font-family: 'Scheherazade New', 'Amiri', 'Noto Naskh Arabic', serif;
    font-size: 20px;
    line-height: 1.8;
    text-align: right;
    direction: rtl;
    margin-bottom: 12px;
}

.copy-translation {
    font-size: 15px;
    line-height: 1.5;
    font-style: normal;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    letter-spacing: 0.2px;
    color: #2c3e50;
    margin-bottom: 12px;
}

.copy-reference {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.copy-translator {
    font-size: 14px;
    color: #666;
}

.copy-options {
    margin-bottom: 20px;
}

.copy-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.copy-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.copy-actions {
    display: flex;
    justify-content: flex-end;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.copy-btn:hover {
    background: #1b5e20;
}

/* ===== TRANSLATION SELECTOR STYLES ===== */
.translation-selector-container {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 8px 0;
    margin-bottom: 20px;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 12px;
}

/* Small Translation Selector Above Bismillah */
.translation-selector-wrapper {
    margin-bottom: 15px;
    margin-left: 0;
    line-height: 1.2;
}

.translation-by-label {
    font-size: 10px;
    color: #6c757d;
    margin-bottom: 2px;
    font-weight: 400;
    margin-left: 0;
    margin-right: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1;
}

.translation-selector-above-bismillah {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 2px 0 6px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    backdrop-filter: none;
    box-shadow: none;
    font-size: 12px;
    border-bottom: 1px solid #e9ecef;
    width: 100%;
}

.translation-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.surah-name-right {
    font-family: 'Scheherazade New', 'Amiri', 'Noto Naskh Arabic', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    direction: rtl;
}

.translation-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    display: block;
}

.translation-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.translation-name-small {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.change-translation-btn-small {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.change-translation-btn-small:hover {
    background: var(--primary-color);
    color: white;
    transform: none;
}

.translation-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.translation-flag {
    font-size: 20px;
}

.translation-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.translation-author {
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
}

.change-translation-btn {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.change-translation-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: none;
}

/* Translation Selector Overlay */
.translation-selector-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.translation-selector-modal {
    background: white;
    border-radius: 15px;
    width: 95%;
    max-width: 1000px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.translation-selector-header {
    padding: 25px 30px 20px 30px;
    border-bottom: 1px solid var(--border-color);
    background: #f8f9fa;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.translation-selector-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.close-translation-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-translation-btn:hover {
    background: #e9ecef;
    color: #333;
}

.translation-selector-content {
    flex: 1;
    overflow-y: auto;
    padding: 25px 30px;
}

.translations-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.language-section {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 25px;
}

.language-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.language-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.translators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.translator-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.translator-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
}

.translator-card.selected {
    border-color: var(--primary-color);
    background: rgba(46, 125, 50, 0.05);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.translator-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    position: relative;
}

.translator-flag {
    font-size: 18px;
}

.translator-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    flex: 1;
}

.selected-indicator {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.translator-author {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.3;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .translation-selector-container {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 6px 0;
        padding-bottom: 10px;
    }
    
    .translation-info {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    .change-translation-btn {
        padding: 3px 8px;
        font-size: 11px;
    }
    
    .surah-name-right {
        font-size: 24px;
    }
    
    .translation-selector-modal {
        width: 98%;
        max-height: 90vh;
    }
    
    .translation-selector-header {
        padding: 20px 20px 15px 20px;
    }
    
    .translation-selector-title {
        font-size: 20px;
    }
    
    .translation-selector-content {
        padding: 20px;
    }
    
    .translators-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .translator-card {
        padding: 12px;
    }
    
    .translator-name {
        font-size: 15px;
    }
    
    .translator-author {
        font-size: 12px;
    }
}

/* ===== SURAH NAME FIXED STRIP ===== */
.surah-name-strip {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1b5e20 100%);
    color: white;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: none;
    border-bottom: 2px solid #0d4f15;
}

.surah-name-strip.show {
    display: block;
}

.surah-name-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.surah-name-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.surah-strip-number {
    background: rgba(255,255,255,0.2);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.3);
}

.surah-strip-name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.surah-strip-arabic {
    font-family: 'Scheherazade New', 'Amiri', 'Noto Naskh Arabic', serif;
    font-size: 20px;
    font-weight: 600;
    direction: rtl;
    color: #f0f8f0;
}

.surah-strip-close {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.surah-strip-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Add margin to body when strip is shown */
body.with-surah-strip {
    margin-top: 48px;
}

/* Mobile responsive for strip */
@media (max-width: 768px) {
    .surah-name-content {
        padding: 0 15px;
        gap: 10px;
    }
    
    .surah-strip-name {
        font-size: 14px;
    }
    
    .surah-strip-arabic {
        font-size: 18px;
    }
    
    .surah-strip-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .surah-strip-close {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    color: #6c757d;
    margin-top: 40px;
    font-size: 11px;
    opacity: 0.8;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }

    .nav-menu {
        display: none;
    }

    .search-title {
        font-size: 24px;
    }

    .search-subtitle {
        font-size: 16px;
    }

    .surahs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .main-content {
        padding: 24px 16px;
    }
    
    .tab-btn {
        padding: 6px 12px;
        font-size: 13px;
        margin-right: 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .surah-arabic {
        font-size: 24px;
    }

    .verse-arabic {
        font-size: 22px;
        line-height: 2;
    }

    .verse-arabic-text {
        font-size: 22px;
        line-height: 2;
        word-spacing: 2px;
    }

    .arabic-verse-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .surah-page {
        padding: 0 16px;
    }

    .surah-title-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .surah-page-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .surah-page-title {
        font-size: 24px;
    }

    .surah-arabic-title {
        font-size: 28px;
    }

    .verse-item {
        padding: 15px;
        gap: 15px;
    }

    .verse-arabic-text {
        font-size: 20px;
        line-height: 1.8;
    }

    .verse-translation-text {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .verse-translation-text.urdu {
        font-size: 13px;
        line-height: 1.5;
    }
    
    /* Search Results Modal Mobile */
    .search-results-overlay {
        padding: 10px;
    }
    
    .search-results-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .search-results-header {
        padding: 20px 20px 15px 20px;
    }
    
    .search-results-title {
        font-size: 18px;
    }
    
    .search-results-content {
        padding: 15px 20px;
    }
    
    .search-results-footer {
        padding: 10px 20px;
    }
    
    .verse-modal-card {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .verse-modal-arabic {
        font-size: 20px;
        line-height: 1.6;
    }
    
    .verse-modal-translation {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .verse-modal-reference {
        font-size: 12px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .pagination-btn {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 35px;
    }
    
    .pagination-info {
        font-size: 12px;
        margin: 5px 10px 0 10px;
        width: 100%;
        text-align: center;
    }
    
    .footer {
        padding: 15px 0;
        margin-top: 30px;
        font-size: 10px;
    }
}

/* ===== URDU TRANSLATION STYLES ===== */
.verse-translation-text.urdu {
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Alvi Nastaleeq', 'Pak Nastaleeq', 'Times New Roman', serif;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    direction: ltr;
    font-weight: normal;
    font-style: normal;
    color: #6c757d;
}

/* Urdu text in modals and search results */
.verse-modal-translation.urdu {
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Alvi Nastaleeq', 'Pak Nastaleeq', 'Times New Roman', serif;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    direction: ltr;
    font-style: normal;
    color: #6c757d;
}

/* ===== ENHANCED SUGGESTION STYLES ===== */
.suggestion-icon {
    font-size: 16px;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.suggestion-icon svg {
    transition: fill 0.2s ease;
}

.suggestion-item:hover .suggestion-icon svg {
    fill: var(--primary-color);
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-main {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 2px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.1px;
}

.suggestion-sub {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
}

.suggestion-sub mark {
    background-color: #fff3cd;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: 500;
    color: #856404;
}

.suggestion-group-header {
    padding: 8px 16px;
    background-color: #e9ecef;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #dee2e6;
}