:root {
    --primary-color: #1976d2;
    --primary-hover: #1565c0;
    --secondary-color: #4285f4;
    --secondary-hover: #3367d6;
    --accent-color: #ff5722;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --border-color: #e0e0e0;
    --radius: 8px;
    --transition: all 0.3s ease;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.light-theme {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #2d3748;
    --light-text: #4a5568;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --verse-bg: #ffffff;
    --verse-border: #1976d2;
    --verse-number-bg: #1565c0;
    --verse-number-text: #ffffff;
    --arabic-text: #2d3748;
    --arabic-bg: #f7fafc;
    --transliteration-bg: #e3f2fd;
    --transliteration-text: #1976d2;
    --english-bg: #fafafa;
    --english-text: #424242;
    --turkish-bg: #f0f4f8;
    --turkish-text: #2d3748;
    --note-bg: #e3f2fd;
    --note-text: #2d3748;
    --note-border: #1976d2;
    --ai-bg: #e8f5e8;
    --ai-text: #2e7d32;
    --ai-border: #4caf50;
    --meal-bg: #e3f2fd;
    --meal-text: #2d3748;
    --meal-border: #1976d2;
    --settings-bg: #ffffff;
    --header-bg: #1976d2;
    --header-text: #ffffff;
    --sidebar-bg: #ffffff;
    --sidebar-text: #2d3748;
    --button-primary: #1976d2;
    --button-primary-hover: #1565c0;
    --button-secondary: #ff5722;
    --button-secondary-hover: #f4511e;
    --highlight-bg: #1976d2;
    --highlight-text: #1976d2;
    --dipnot-bg: #bbdefb;
    --dipnot-text: #2d3748;
    --dipnot-border: #1976d2;
    --dipnot-btn-bg: #90caf9;
    --dipnot-btn-hover: #64b5f6;
    --note-btn-bg: #90caf9;
    --note-btn-hover: #64b5f6;
    --bismillah-bg: #f7fafc;
    --english-bismillah-bg: #e3f2fd;
}
.dark-theme {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f1f5f9;
    --light-text: #cbd5e1;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --verse-bg: #1e293b;
    --verse-border: #3b82f6;
    --verse-number-bg: #334155;
    --verse-number-text: #f1f5f9;
    --arabic-text: #f8fafc;
    --arabic-bg: #334155;
    --transliteration-bg: #1e3a8a;
    --transliteration-text: #93c5fd;
    --english-bg: #374151;
    --english-text: #d1d5db;
    --turkish-bg: #475569;
    --turkish-text: #f1f5f9;
    --note-bg: #1e293b;
    --note-text: #f1f5f9;
    --note-border: #3b82f6;
    --ai-bg: #1e293b;
    --ai-text: #f1f5f9;
    --ai-border: #3b82f6;
    --meal-bg: #1e293b;
    --meal-text: #f1f5f9;
    --meal-border: #3b82f6;
    --settings-bg: #1e293b;
    --header-bg: #1e293b;
    --header-text: #f1f5f9;
    --sidebar-bg: #1e293b;
    --sidebar-text: #f1f5f9;
    --button-primary: #3b82f6;
    --button-primary-hover: #2563eb;
    --button-secondary: #ef4444;
    --button-secondary-hover: #dc2626;
    --highlight-bg: #eab308;
    --highlight-text: #1f2937;
    --dipnot-bg: #1e293b;
    --dipnot-text: #f1f5f9;
    --dipnot-border: #3b82f6;
    --dipnot-btn-bg: #4b5e8e;
    --dipnot-btn-hover: #3b4d7a;
    --note-btn-bg: #4b5e8e;
    --note-btn-hover: #3b4d7a;
    --bismillah-bg: #334155;
    --english-bismillah-bg: #1e3a8a;
}
.green-theme {
    --bg-color: #1a2e1a;
    --card-bg: #2d4a2d;
    --text-color: #e8f5e9;
    --light-text: #c8e6c9;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --verse-bg: #2d4a2d;
    --verse-border: #66bb6a;
    --verse-number-bg: #388e3c;
    --verse-number-text: #ffffff;
    --arabic-text: #e8f5e9;
    --arabic-bg: #2d4a2d;
    --transliteration-bg: #388e3c;
    --transliteration-text: #c8e6c9;
    --english-bg: #2d4a2d;
    --english-text: #e8f5e9;
    --turkish-bg: #2d4a2d;
    --turkish-text: #e8f5e9;
    --note-bg: #388e3c;
    --note-text: #e8f5e9;
    --note-border: #66bb6a;
    --ai-bg: #388e3c;
    --ai-text: #e8f5e9;
    --ai-border: #66bb6a;
    --meal-bg: #388e3c;
    --meal-text: #e8f5e9;
    --meal-border: #66bb6a;
    --settings-bg: #2d4a2d;
    --header-bg: #1a2e1a;
    --header-text: #c8e6c9;
    --sidebar-bg: #2d4a2d;
    --sidebar-text: #e8f5e9;
    --button-primary: #66bb6a;
    --button-primary-hover: #4caf50;
    --button-secondary: #81c784;
    --button-secondary-hover: #66bb6a;
    --highlight-bg: #66bb6a;
    --highlight-text: #1a2e1a;
    --dipnot-bg: #388e3c;
    --dipnot-text: #e8f5e9;
    --dipnot-border: #66bb6a;
    --dipnot-btn-bg: #388e3c;
    --dipnot-btn-hover: #2d4a2d;
    --note-btn-bg: #388e3c;
    --note-btn-hover: #2d4a2d;
    --bismillah-bg: #2d4a2d;
    --english-bismillah-bg: #388e3c;
}
.indigo-theme {
    --bg-color: #283593;
    --card-bg: #3949ab;
    --text-color: #e8eaf6;
    --light-text: #c5cae9;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --verse-bg: #3949ab;
    --verse-border: #7986cb;
    --verse-number-bg: #5c6bc0;
    --verse-number-text: #ffffff;
    --arabic-text: #e8eaf6;
    --arabic-bg: #3949ab;
    --transliteration-bg: #5c6bc0;
    --transliteration-text: #c5cae9;
    --english-bg: #3949ab;
    --english-text: #e8eaf6;
    --turkish-bg: #3949ab;
    --turkish-text: #e8eaf6;
    --note-bg: #5c6bc0;
    --note-text: #e8eaf6;
    --note-border: #7986cb;
    --ai-bg: #5c6bc0;
    --ai-text: #e8eaf6;
    --ai-border: #7986cb;
    --meal-bg: #5c6bc0;
    --meal-text: #e8eaf6;
    --meal-border: #7986cb;
    --settings-bg: #3949ab;
    --header-bg: #283593;
    --header-text: #c5cae9;
    --sidebar-bg: #3949ab;
    --sidebar-text: #e8eaf6;
    --button-primary: #7986cb;
    --button-primary-hover: #5c6bc0;
    --button-secondary: #9fa8da;
    --button-secondary-hover: #7986cb;
    --highlight-bg: #7986cb;
    --highlight-text: #283593;
    --dipnot-bg: #5c6bc0;
    --dipnot-text: #e8eaf6;
    --dipnot-border: #7986cb;
    --dipnot-btn-bg: #5c6bc0;
    --dipnot-btn-hover: #3949ab;
    --note-btn-bg: #5c6bc0;
    --note-btn-hover: #3949ab;
    --bismillah-bg: #3949ab;
    --english-bismillah-bg: #5c6bc0;
}
.brown-theme {
    --bg-color: #4e342e;
    --card-bg: #5d4037;
    --text-color: #efebe9;
    --light-text: #d7ccc8;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --verse-bg: #5d4037;
    --verse-border: #a1887f;
    --verse-number-bg: #8d6e63;
    --verse-number-text: #ffffff;
    --arabic-text: #efebe9;
    --arabic-bg: #5d4037;
    --transliteration-bg: #8d6e63;
    --transliteration-text: #d7ccc8;
    --english-bg: #5d4037;
    --english-text: #efebe9;
    --turkish-bg: #5d4037;
    --turkish-text: #efebe9;
    --note-bg: #8d6e63;
    --note-text: #efebe9;
    --note-border: #a1887f;
    --ai-bg: #8d6e63;
    --ai-text: #efebe9;
    --ai-border: #a1887f;
    --meal-bg: #8d6e63;
    --meal-text: #efebe9;
    --meal-border: #a1887f;
    --settings-bg: #5d4037;
    --header-bg: #4e342e;
    --header-text: #d7ccc8;
    --sidebar-bg: #5d4037;
    --sidebar-text: #efebe9;
    --button-primary: #a1887f;
    --button-primary-hover: #8d6e63;
    --button-secondary: #bcaaa4;
    --button-secondary-hover: #a1887f;
    --highlight-bg: #a1887f;
    --highlight-text: #4e342e;
    --dipnot-bg: #8d6e63;
    --dipnot-text: #efebe9;
    --dipnot-border: #a1887f;
    --dipnot-btn-bg: #8d6e63;
    --dipnot-btn-hover: #5d4037;
    --note-btn-bg: #8d6e63;
    --note-btn-hover: #5d4037;
    --bismillah-bg: #5d4037;
    --english-bismillah-bg: #8d6e63;
}
.sky-theme {
    --bg-color: #0a1929;
    --card-bg: #132f4c;
    --text-color: #e1f5fe;
    --light-text: #b3e5fc;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --verse-bg: #132f4c;
    --verse-border: #4fc3f7;
    --verse-number-bg: #29b6f6;
    --verse-number-text: #ffffff;
    --arabic-text: #e1f5fe;
    --arabic-bg: #132f4c;
    --transliteration-bg: #29b6f6;
    --transliteration-text: #b3e5fc;
    --english-bg: #132f4c;
    --english-text: #e1f5fe;
    --turkish-bg: #132f4c;
    --turkish-text: #e1f5fe;
    --note-bg: #29b6f6;
    --note-text: #e1f5fe;
    --note-border: #4fc3f7;
    --ai-bg: #29b6f6;
    --ai-text: #e1f5fe;
    --ai-border: #4fc3f7;
    --meal-bg: #29b6f6;
    --meal-text: #e1f5fe;
    --meal-border: #4fc3f7;
    --settings-bg: #132f4c;
    --header-bg: #0a1929;
    --header-text: #b3e5fc;
    --sidebar-bg: #132f4c;
    --sidebar-text: #e1f5fe;
    --button-primary: #4fc3f7;
    --button-primary-hover: #29b6f6;
    --button-secondary: #81d4fa;
    --button-secondary-hover: #4fc3f7;
    --highlight-bg: #4fc3f7;
    --highlight-text: #0a1929;
    --dipnot-bg: #29b6f6;
    --dipnot-text: #e1f5fe;
    --dipnot-border: #4fc3f7;
    --dipnot-btn-bg: #29b6f6;
    --dipnot-btn-hover: #132f4c;
    --note-btn-bg: #29b6f6;
    --note-btn-hover: #132f4c;
    --bismillah-bg: #132f4c;
    --english-bismillah-bg: #29b6f6;
}
.blackyellow-theme {
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --text-color: #f5f5f5;
    --light-text: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    --verse-bg: #2d2d2d;
    --verse-border: #ffd54f;
    --verse-number-bg: #ffd54f;
    --verse-number-text: #1a1a1a;
    --arabic-text: #f5f5f5;
    --arabic-bg: #2d2d2d;
    --transliteration-bg: #424242;
    --transliteration-text: #ffecb3;
    --english-bg: #2d2d2d;
    --english-text: #f5f5f5;
    --turkish-bg: #2d2d2d;
    --turkish-text: #f5f5f5;
    --note-bg: #424242;
    --note-text: #f5f5f5;
    --note-border: #ffd54f;
    --ai-bg: #424242;
    --ai-text: #f5f5f5;
    --ai-border: #ffd54f;
    --meal-bg: #424242;
    --meal-text: #f5f5f5;
    --meal-border: #ffd54f;
    --settings-bg: #2d2d2d;
    --header-bg: #1a1a1a;
    --header-text: #ffd54f;
    --sidebar-bg: #2d2d2d;
    --sidebar-text: #f5f5f5;
    --button-primary: #ffd54f;
    --button-primary-hover: #ffecb3;
    --button-secondary: #ffecb3;
    --button-secondary-hover: #ffd54f;
    --highlight-bg: #ffd54f;
    --highlight-text: #1a1a1a;
    --dipnot-bg: #424242;
    --dipnot-text: #f5f5f5;
    --dipnot-border: #ffd54f;
    --dipnot-btn-bg: #424242;
    --dipnot-btn-hover: #2d2d2d;
    --note-btn-bg: #424242;
    --note-btn-hover: #2d2d2d;
    --bismillah-bg: #2d2d2d;
    --english-bismillah-bg: #424242;
}
.bluemaize-theme {
    --bg-color: #1a237e;
    --card-bg: #283593;
    --text-color: #f5f5f5;
    --light-text: #e8eaf6;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --verse-bg: #283593;
    --verse-border: #283593;
    --verse-number-bg: #fff59d;
    --verse-number-text: #1a237e;
    --arabic-text: #f5f5f5;
    --arabic-bg: #283593;
    --transliteration-bg: #3949ab;
    --transliteration-text: #fff9c4;
    --english-bg: #283593;
    --english-text: #f5f5f5;
    --turkish-bg: #283593;
    --turkish-text: #f5f5f5;
    --note-bg: #3949ab;
    --note-text: #f5f5f5;
    --note-border: #fff59d;
    --ai-bg: #3949ab;
    --ai-text: #f5f5f5;
    --ai-border: #fff59d;
    --meal-bg: #3949ab;
    --meal-text: #f5f5f5;
    --meal-border: #fff59d;
    --settings-bg: #283593;
    --header-bg: #1a237e;
    --header-text: #fff59d;
    --sidebar-bg: #283593;
    --sidebar-text: #f5f5f5;
    --button-primary: #fff59d;
    --button-primary-hover: #fff9c4;
    --button-secondary: #fff9c4;
    --button-secondary-hover: #fff59d;
    --highlight-bg: #fff59d;
    --highlight-text: #1a237e;
    --dipnot-bg: #3949ab;
    --dipnot-text: #f5f5f5;
    --dipnot-border: #fff59d;
    --dipnot-btn-bg: #3949ab;
    --dipnot-btn-hover: #283593;
    --note-btn-bg: #3949ab;
    --note-btn-hover: #283593;
    --bismillah-bg: #283593;
    --english-bismillah-bg: #3949ab;
}
.redpeach-theme {
    --bg-color: #8e2439;
    --card-bg: #a53245;
    --text-color: #f5f5f5;
    --light-text: #ffebee;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --verse-bg: #a53245;
    --verse-border: #ffab91;
    --verse-number-bg: #ffab91;
    --verse-number-text: #8e2439;
    --arabic-text: #f5f5f5;
    --arabic-bg: #a53245;
    --transliteration-bg: #c6335a;
    --transliteration-text: #ffccbc;
    --english-bg: #a53245;
    --english-text: #f5f5f5;
    --turkish-bg: #a53245;
    --turkish-text: #f5f5f5;
    --note-bg: #c6335a;
    --note-text: #f5f5f5;
    --note-border: #ffab91;
    --ai-bg: #c6335a;
    --ai-text: #f5f5f5;
    --ai-border: #ffab91;
    --meal-bg: #c6335a;
    --meal-text: #f5f5f5;
    --meal-border: #ffab91;
    --settings-bg: #a53245;
    --header-bg: #8e2439;
    --header-text: #ffab91;
    --sidebar-bg: #a53245;
    --sidebar-text: #f5f5f5;
    --button-primary: #ffab91;
    --button-primary-hover: #ffccbc;
    --button-secondary: #ffccbc;
    --button-secondary-hover: #ffab91;
    --highlight-bg: #ffab91;
    --highlight-text: #8e2439;
    --dipnot-bg: #c6335a;
    --dipnot-text: #f5f5f5;
    --dipnot-border: #ffab91;
    --dipnot-btn-bg: #c6335a;
    --dipnot-btn-hover: #a53245;
    --note-btn-bg: #c6335a;
    --note-btn-hover: #a53245;
    --bismillah-bg: #a53245;
    --english-bismillah-bg: #c6335a;
}
.greenolive-theme {
    --bg-color: #33691e;
    --card-bg: #558b2f;
    --text-color: #f1f8e9;
    --light-text: #dcedc8;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --verse-bg: #558b2f;
    --verse-border: #33691e;
    --verse-number-bg: #dce775;
    --verse-number-text: #33691e;
    --arabic-text: #f1f8e9;
    --arabic-bg: #558b2f;
    --transliteration-bg: #689f38;
    --transliteration-text: #e6ee9c;
    --english-bg: #558b2f;
    --english-text: #f1f8e9;
    --turkish-bg: #558b2f;
    --turkish-text: #f1f8e9;
    --note-bg: #689f38;
    --note-text: #f1f8e9;
    --note-border: #dce775;
    --ai-bg: #689f38;
    --ai-text: #f1f8e9;
    --ai-border: #dce775;
    --meal-bg: #689f38;
    --meal-text: #f1f8e9;
    --meal-border: #dce775;
    --settings-bg: #558b2f;
    --header-bg: #33691e;
    --header-text: #dce775;
    --sidebar-bg: #558b2f;
    --sidebar-text: #f1f8e9;
    --button-primary: #dce775;
    --button-primary-hover: #e6ee9c;
    --button-secondary: #e6ee9c;
    --button-secondary-hover: #dce775;
    --highlight-bg: #dce775;
    --highlight-text: #33691e;
    --dipnot-bg: #689f38;
    --dipnot-text: #f1f8e9;
    --dipnot-border: #dce775;
    --dipnot-btn-bg: #689f38;
    --dipnot-btn-hover: #558b2f;
    --note-btn-bg: #689f38;
    --note-btn-hover: #558b2f;
    --bismillah-bg: #558b2f;
    --english-bismillah-bg: #689f38;
}
* {
    box-sizing: border-box;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-color);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
}
.header-bar {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 12px 16px;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 60px;
}
.nav-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
}
.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--header-text);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}
.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}
.search-container {
    flex: 1;
    max-width: 400px;
    position: relative;
}
.search-container input {
    width: 100%;
    padding: 10px 16px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--header-text);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}
.search-container input::placeholder {
    color: var(--light-text);
}
.search-container input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--border-color);
}
#currentPageDisplay {
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    cursor: pointer;
}
#currentPageDisplay:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}
.autocomplete-suggestions div {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}
.autocomplete-suggestions div:hover {
    background: var(--transliteration-bg);
    color: var(--transliteration-text);
}
.autocomplete-suggestions div:last-child {
    border-bottom: none;
}
.auth-container {
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-btn {
    background: var(--button-secondary);
    color: var(--header-text);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}
.auth-btn:hover {
    background: var(--button-secondary-hover);
    transform: translateY(-1px);
}
.login-info {
    font-size: 12px;
    color: var(--light-text);
    font-weight: 500;
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-bg);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}
.loading-spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--button-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loading-text {
    margin-top: 16px;
    font-weight: 500;
    color: var(--button-primary);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}
.progress-container {
    width: 300px;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin-top: 16px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--button-primary), var(--button-secondary));
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}
.main-container {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 80px;
}
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 280px;
    height: calc(100% - 60px);
    background: var(--sidebar-bg);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}
.sidebar:not(.hidden) {
    transform: translateX(0);
}
.menu-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.menu-item-btn {
    width: 100%;
    background: var(--button-primary);
    color: var(--header-text);
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    display: block !important;
    text-align: left;
}
.menu-item-btn:hover {
    background: var(--button-primary-hover);
    transform: translateY(-1px);
}
#notesPage {
    background: var(--button-primary);
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    padding: 12px 20px;
}
#notesPage:hover {
    background: var(--button-primary-hover);
    transform: translateY(-1px);
}
body.blackyellow-theme .menu-item-btn {
    background: var(--dipnot-btn-bg);
}
body.blackyellow-theme .menu-item-btn:hover {
    background: var(--dipnot-btn-hover);
}
body.blackyellow-theme #notesPage {
    background: var(--dipnot-btn-bg);
}
body.blackyellow-theme #notesPage:hover {
    background: var(--dipnot-btn-hover);
}
body.bluemaize-theme .menu-item-btn {
    background: var(--dipnot-btn-bg);
}
body.bluemaize-theme .menu-item-btn:hover {
    background: var(--dipnot-btn-hover);
}
body.bluemaize-theme #notesPage {
    background: var(--dipnot-btn-bg);
}
body.bluemaize-theme #notesPage:hover {
    background: var(--dipnot-btn-hover);
}
body.redpeach-theme .menu-item-btn {
    background: var(--dipnot-btn-bg);
}
body.redpeach-theme .menu-item-btn:hover {
    background: var(--dipnot-btn-hover);
}
body.redpeach-theme #notesPage {
    background: var(--dipnot-btn-bg);
}
body.redpeach-theme #notesPage:hover {
    background: var(--dipnot-btn-hover);
}
body.greenolive-theme .menu-item-btn {
    background: var(--dipnot-btn-bg);
}
body.greenolive-theme .menu-item-btn:hover {
    background: var(--dipnot-btn-hover);
}
body.greenolive-theme #notesPage {
    background: var(--dipnot-btn-bg);
}
body.greenolive-theme #notesPage:hover {
    background: var(--dipnot-btn-hover);
}
.menu {
    padding: 20px;
}
.menu h2 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--button-primary);
}
.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu ul li {
    padding: 6px 12px;
    cursor: pointer;
    border-radius: var(--radius);
    margin-bottom: 2px;
    transition: var(--transition);
    font-weight: 500;
}
.menu ul li:hover {
    background: var(--transliteration-bg);
    color: var(--transliteration-text);
    transform: translateX(4px);
}
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
}
.sidebar-overlay:not(.hidden) {
    display: block;
}
.content-area {
    flex: 1;
    min-height: calc(100vh - 140px);
}
.content-container {
    width: 100%;
}
.iframe-container {
    width: 100%;
    height: calc(100vh - 140px);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 12px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.page-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    text-shadow: var(--text-shadow);
}
.sura {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.verse {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}
.verse:last-child {
    border-bottom: none;
}
.verse:hover {
    background: rgba(125, 211, 252, 0.1);
}
.verse-number {
    display: block;
    text-align: center;
    width: 64px;
    height: 40px;
    line-height: 40px;
    padding: 0 4px;
    background: var(--verse-number-bg);
    color: var(--verse-number-text);
    border-radius: 50%;
    font-weight: 600;
    margin: 0 auto 4px auto;
    box-shadow: 0 2px 8px rgba(125, 211, 252, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
}
.verse-arabic {
    background: var(--arabic-bg);
    padding: 4px 8px;
    border-radius: var(--radius);
    margin: 4px 0;
    text-align: right;
    direction: rtl;
    font-family: 'Scheherazade New', serif;
    font-size: 24px;
    line-height: 1.8;
    color: var(--arabic-text);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}
.bismillah {
    background: var(--bismillah-bg);
    padding: 4px 8px;
    border-radius: var(--radius);
    margin: 4px 0;
    text-align: right;
    direction: rtl;
    font-family: 'Scheherazade New', serif;
    font-size: 24px;
    line-height: 1.8;
    color: var(--arabic-text);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}
.verse-transliteration {
    background: var(--transliteration-bg);
    color: var(--transliteration-text);
    padding: 4px 8px;
    border-radius: var(--radius);
    margin: 4px 0;
    text-align: right;
    direction: rtl;
    font-style: italic;
    font-weight: 500;
    border-left: 4px solid var(--verse-border);
}
.verse-text {
    background: var(--english-bg);
    color: var(--english-text);
    padding: 4px 8px;
    border-radius: var(--radius);
    margin: 4px 0;
    line-height: 1.7;
    border-left: 4px solid var(--verse-border);
}
.verse-text-tr {
    background: var(--turkish-bg);
    color: var(--turkish-text);
    padding: 4px 8px;
    border-radius: var(--radius);
    margin: 4px 0;
    font-weight: 500;
    line-height: 1.7;
    border-left: 4px solid var(--verse-border);
}
.passage-title {
    background: var(--verse-border);
    color: var(--text-color);
    padding: 4px 8px;
    margin: 4px 0;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow);
}
.passage-title-tr {
    background: var(--transliteration-bg);
    color: var(--transliteration-text);
    padding: 4px 8px;
    margin: 4px 0;
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
    border: 1px solid var(--verse-border);
}
.buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.toggle-btn {
    background: var(--button-primary);
    color: var(--header-text);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.toggle-btn:hover {
    background: var(--button-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
body.sky-theme .toggle-btn,
body.blackyellow-theme .toggle-btn,
body.bluemaize-theme .toggle-btn,
body.redpeach-theme .toggle-btn,
body.greenolive-theme .toggle-btn {
    background: var(--dipnot-btn-bg);
}
body.sky-theme .toggle-btn:hover,
body.blackyellow-theme .toggle-btn:hover,
body.bluemaize-theme .toggle-btn:hover,
body.redpeach-theme .toggle-btn:hover,
body.greenolive-theme .toggle-btn:hover {
    background: var(--dipnot-btn-hover);
}
.dipnot-btn {
    background: var(--dipnot-btn-bg);
}
.dipnot-btn:hover {
    background: var(--dipnot-btn-hover);
}
.note-btn {
    background: var(--note-btn-bg);
}
.note-btn:hover {
    background: var(--note-btn-hover);
}
.note-box {
    background: var(--note-bg);
    color: var(--note-text);
    padding: 4px 8px;
    border-radius: var(--radius);
    margin: 4px 0;
    border-left: 4px solid var(--note-border);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}
.dipnot {
    background: var(--dipnot-bg);
    color: var(--dipnot-text);
    padding: 4px 8px;
    border-radius: var(--radius);
    margin: 4px 0;
    border-left: 4px solid var(--dipnot-border);
    box-shadow: var(--shadow);
}
.ai-translation {
    background: var(--ai-bg);
    color: var(--ai-text);
    padding: 4px 8px;
    border-radius: var(--radius);
    margin: 4px 0;
    border-left: 4px solid var(--ai-border);
    font-weight: 500;
}
.meal-container {
    background: var(--meal-bg);
    color: var(--meal-text);
    padding: 4px 8px;
    border-radius: var(--radius);
    margin: 4px 0;
    border-left: 4px solid var(--meal-border);
}
.note-input-box {
    background: var(--card-bg);
    padding: 4px 8px;
    border-radius: var(--radius);
    margin: 4px 0;
    border: 2px solid var(--border-color);
}
.note-input-box textarea {
    width: 100%;
    min-height: 80px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text-color);
    resize: vertical;
}
.note-input-box button {
    margin-top: 4px;
    background: var(--button-primary);
    color: var(--header-text);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}
.note-input-box button:hover {
    background: var(--button-primary-hover);
    transform: translateY(-1px);
}
.word-tooltip {
    position: absolute;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
    max-width: 250px;
    color: #2d3748;
}
.hidden {
    display: none !important;
}
.highlight-verse {
    background: var(--highlight-bg) !important;
    color: var(--highlight-text) !important;
    border: 2px solid var(--button-primary) !important;
}
.page-footer {
    margin-top: 20px;
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        padding: 10px;
    }
    .sidebar {
        width: 100%;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        height: calc(100% - 60px);
        background: var(--sidebar-bg);
        box-shadow: none;
        border: none;
        z-index: 1001;
    }
}
@media (max-width: 768px) {
    .header-bar {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }
    .nav-controls {
        width: 100%;
        justify-content: space-between;
    }
    .search-container {
        max-width: none;
        flex: 1;
        margin: 0 8px;
    }
    .sidebar {
        width: 100%;
        background: var(--sidebar-bg);
        box-shadow: none;
        border: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        z-index: 1001;
        padding: 10px;
    }
    .sidebar:not(.hidden) {
        display: block !important;
    }
    .menu-section {
        background: var(--sidebar-bg);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 15px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .menu-item-btn {
        font-size: 16px;
        padding: 12px 20px;
        margin-bottom: 0;
        display: block !important;
        background: var(--button-primary);
        color: var(--header-text);
        border: none;
        border-radius: var(--radius);
        cursor: pointer;
        transition: var(--transition);
    }
    .menu-item-btn:hover {
        background: var(--button-primary-hover);
        transform: translateY(-1px);
    }
    #notesPage, #settingsPage, #closeMenu {
        display: block !important;
    }
    #notesPage {
        background: var(--button-primary);
        font-weight: 500;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        font-size: 16px;
        padding: 12px 20px;
    }
    #notesPage:hover {
        background: var(--button-primary-hover);
        transform: translateY(-1px);
    }
    body.sky-theme .menu-item-btn,
    body.blackyellow-theme .menu-item-btn,
    body.bluemaize-theme .menu-item-btn,
    body.redpeach-theme .menu-item-btn,
    body.greenolive-theme .menu-item-btn {
        background: var(--dipnot-btn-bg);
    }
    body.sky-theme .menu-item-btn:hover,
    body.blackyellow-theme .menu-item-btn:hover,
    body.bluemaize-theme .menu-item-btn:hover,
    body.redpeach-theme .menu-item-btn:hover,
    body.greenolive-theme .menu-item-btn:hover {
        background: var(--dipnot-btn-hover);
    }
    body.sky-theme #notesPage,
    body.blackyellow-theme #notesPage,
    body.bluemaize-theme #notesPage,
    body.redpeach-theme #notesPage,
    body.greenolive-theme #notesPage {
        background: var(--dipnot-btn-bg);
    }
    body.sky-theme #notesPage:hover,
    body.blackyellow-theme #notesPage:hover,
    body.bluemaize-theme #notesPage:hover,
    body.redpeach-theme #notesPage:hover,
    body.greenolive-theme #notesPage:hover {
        background: var(--dipnot-btn-hover);
    }
}
.notes-section {
    background: var(--note-bg);
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--note-border);
    margin-top: 12px;
}
.notes-section .note-box {
    margin: 8px 0;
    padding: 8px;
    border-left: 4px solid var(--note-border);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.verse {
    animation: fadeIn 0.3s ease-out;
}
.theme-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin: 10px 0;
}
.theme-option {
    cursor: pointer;
}
.theme-option input {
    display: none;
}
.theme-preview {
    padding: 4px 8px;
    border-radius: var(--radius);
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    background: var(--card-bg);
    color: var(--text-color);
}
.theme-option input:checked + .theme-preview {
    border-color: var(--button-primary);
    box-shadow: 0 0 0 2px rgba(125, 211, 252, 0.2);
}
.theme-option input:checked + .theme-preview::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 8px;
    color: var(--button-primary);
    font-weight: bold;
    font-size: 16px;
}
.settings-section {
    padding: 8px;
    background: var(--settings-bg);
    border-radius: var(--radius);
}
.settings-section h2 {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid var(--button-primary);
    padding-bottom: 4px;
}
.setting-item {
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.setting-item label {
    font-weight: 500;
    color: var(--text-color);
}
.setting-item select {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--text-color);
}
.setting-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--button-primary);
}
.verse-preview {
    background: var(--verse-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 4px 8px;
    margin: 4px 0;
    border-left: 4px solid var(--verse-border);
}
.verse-preview .verse-number {
    background: var(--verse-number-bg);
    color: var(--verse-number-text);
}
.verse-preview .verse-arabic {
    background: var(--arabic-bg);
    color: var(--arabic-text);
}
.verse-preview .verse-text {
    background: var(--english-bg);
    color: var(--english-text);
}
.verse-preview .verse-text-tr {
    background: var(--turkish-bg);
    color: var(--turkish-text);
}
.verse-preview .note-box {
    background: var(--note-bg);
    color: var(--note-text);
}
.about-section {
    text-align: left;
    padding: 8px;
}
.about-section p {
    margin: 4px 0;
    color: var(--light-text);
}
.about-section strong {
    color: var(--text-color);
    font-weight: 600;
}
.about-section ul {
    margin: 8px 0;
    padding-left: 20px;
    list-style-type: disc;
}
.about-section li {
    margin-bottom: 8px;
}
body.sky-theme .verse-box,
body.blackyellow-theme .verse-box,
body.bluemaize-theme .verse-box,
body.redpeach-theme .verse-box,
body.greenolive-theme .verse-box {
    background: var(--gradient-start);
    padding: 4px 8px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(125, 211, 252, 0.3);
    color: var(--highlight-text);
    line-height: 1.75;
    border-left: 5px solid var(--verse-border);
    transition: all 0.3s ease;
}
body.sky-theme .verse-box:hover,
body.blackyellow-theme .verse-box:hover,
body.bluemaize-theme .verse-box:hover,
body.redpeach-theme .verse-box:hover,
body.greenolive-theme .verse-box:hover {
    box-shadow: 0 6px 28px rgba(125, 211, 252, 0.45);
}
.verse-line {
    margin: 4px 0;
    font-weight: 500;
}
.verse-line strong {
    color: var(--highlight-text);
}
#suraMenu {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding: 10px;
}
body.sidebar-open {
    overflow: hidden;
}
.verse-arabic,
.verse-transliteration {
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3) !important;
}
/* Tüm temalarda başlık okunabilirliğini artır */
.passage-title {
    font-weight: 600 !important;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3) !important;
}
.passage-title-tr {
    font-weight: 500 !important;
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2) !important;
}
/* Özellikle açık temalarda */
.light-theme .passage-title,
.green-theme .passage-title,
.brown-theme .passage-title {
    color: #1a237e !important; /* Koyu mavi metin */
}
/* Özellikle koyu temalarda */
.dark-theme .passage-title,
.indigo-theme .passage-title,
.sky-theme .passage-title,
.blackyellow-theme .passage-title,
.bluemaize-theme .passage-title,
.redpeach-theme .passage-title,
.greenolive-theme .passage-title {
    color: #ffffff !important; /* Beyaz metin */
}
.intro-verse-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #111;
    color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    opacity: 1;
    transition: opacity 1s ease-out;
    font-family: 'Inter', sans-serif;
    padding: 20px;
}
.intro-verse-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}
.intro-verse-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #00ffc8;
}
.intro-verse-content p {
    font-size: 1.2rem;
    margin: 0.3rem 0;
    color: #f0f0f0;
}

/* İçerik alanı padding'ini kaldır */
.content-area {
    padding: 0 !important;
}

/* Main container padding'ini kaldır */
.main-container {
    padding: 0 !important;
}