:root {
    --primary-color: #0b7261;
    --bg-color: #f5f7fa;
    --text-color: #333;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

header p {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 300px;
    background-color: white;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    padding: 1rem;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.2rem;
}

#chapters-list {
    flex: 1;
    overflow-y: auto;
}

.chapter-item {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.chapter-item:hover {
    background-color: #f8fafc;
}

.chapter-item.active {
    background-color: #e6f6f4;
    border-left: 4px solid var(--primary-color);
}

.chapter-number {
    font-weight: bold;
    color: #64748b;
    margin-right: 0.5rem;
}

.chapter-name-arabic {
    font-size: 1.2rem;
    font-family: 'Amiri', 'Traditional Arabic', serif;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 2rem;
    overflow-y: auto;
}

.controls {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

#verses-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.verse {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

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

.verse-header {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.verse-arabic {
    font-size: 1.8rem;
    line-height: 2.5;
    text-align: right;
    font-family: 'Amiri', 'Traditional Arabic', serif;
    margin-bottom: 1rem;
    color: #1a202c;
}

.verse-translation {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a5568;
}

.placeholder {
    text-align: center;
    color: #94a3b8;
    margin-top: 2rem;
}


/* Tajweed Colors */
tajweed {
    font-weight: inherit;
}
tajweed.ham_wasl { color: #aaaaaa; }
tajweed.laam_shamsiyah { color: #aaaaaa; }
tajweed.madda_normal { color: #537FFF; }
tajweed.madda_permissible { color: #4050FF; }
tajweed.madda_necesssary { color: #000EAA; }
tajweed.madda_obligatory { color: #2144C1; }
tajweed.qalaqah { color: #dd0008; }
tajweed.ikhafa { color: #9400a8; }
tajweed.idgham_without_ghunnah { color: #aaaaaa; }
tajweed.idgham_with_ghunnah { color: #169200; }
tajweed.iqlab { color: #26BFFD; }
tajweed.ghunnah { color: #FF7E1E; }
tajweed.ikhafa_shafawi { color: #D500B7; }
tajweed.idgham_mutajanisayn { color: #A1A1A1; }
tajweed.idgham_mutaqaribayn { color: #A1A1A1; }
tajweed.silent { color: #aaaaaa; }
