/* ====================================
   RAMADAN 2026 - COMPLETE STYLES
   ==================================== */

/* CSS Variables - Light Theme (Default) */
:root {
    --primary-color: #4fd1c5;
    --primary-light: #e6fffa;
    --primary-dark: #38b2ac;
    --secondary-color: #81e6d9;
    --accent-color: #90cdf4;

    --bg-light: #f7fafc;
    --bg-card: #ffffff;
    --bg-hover: #edf2f7;

    --text-dark: #2d3748;
    --text-medium: #4a5568;
    --text-light: #718096;
    --text-white: #ffffff;

    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-color: #4fd1c5;
    --primary-light: #234e52;
    --primary-dark: #81e6d9;
    --secondary-color: #38b2ac;
    --accent-color: #63b3ed;

    --bg-light: #1a202c;
    --bg-card: #2d3748;
    --bg-hover: #4a5568;

    --text-dark: #f7fafc;
    --text-medium: #e2e8f0;
    --text-light: #a0aec0;
    --text-white: #ffffff;

    --border-color: #4a5568;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

[data-theme="dark"] .card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .app-header {
    background: linear-gradient(135deg, var(--primary-light), var(--bg-card));
}

[data-theme="dark"] .app-footer {
    background: var(--bg-card);
    border-color: var(--border-color);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Noto Naskh Arabic', 'Amiri', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #DBD7D2 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 80px;
    direction: rtl;
    transition: var(--transition);
}
[data-theme="dark"] .ayahs-container {
    background: rgba(35, 78, 82, 0.3); /* Lighter background for better contrast */
}

[data-theme="dark"] .ayah-text {
    color: var(--text-medium); /* Use medium text color for better readability */
}

[data-theme="dark"] .ayah-item {
    border-bottom-color: rgba(255, 255, 255, 0.1); /* Softer border in dark theme */
}

/* Also fix surah list items in dark theme */
[data-theme="dark"] .surah-item {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .surah-item:hover,
[data-theme="dark"] .surah-item.completed {
    background: rgba(35, 78, 82, 0.4);
}

[data-theme="dark"] .surah-name {
    color: var(--text-medium);
}

[data-theme="dark"] .surah-details {
    color: var(--text-light);
}
/* ====================================
   INSTALL MODAL
   ==================================== */
.install-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.install-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.install-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-light);
}

.install-header {
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.install-header i {
    font-size: 40px;
    margin-bottom: 10px;
}

.install-header h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.install-content p {
    color: var(--text-medium);
    margin-bottom: 20px;
    font-size: 16px;
}

.install-instructions {
    background: var(--primary-light);
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    text-align: right;
    border-right: 4px solid var(--primary-color);
}

.install-instructions p {
    margin-bottom: 8px;
    font-size: 14px;
}

.share-icon {
    background: var(--text-dark);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin: 0 4px;
}

.install-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.install-btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.install-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.install-btn.secondary {
    background: var(--bg-hover);
    color: var(--text-medium);
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ====================================
   SETTINGS MODAL
   ==================================== */
.settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.settings-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.settings-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
    margin-bottom: 20px;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--primary-light);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 10;
}

.settings-header h3 {
    color: var(--primary-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-body {
    padding: 20px;
}

.settings-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.settings-section h4 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

/* Settings Menu Button */
.settings-menu-btn {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-light);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary-color);
    z-index: 101;
}

.settings-menu-btn i {
    font-size: 20px;
}

.settings-menu-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) rotate(90deg);
}

/* Theme Options */
.theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.theme-btn {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-family: inherit;
}

.theme-btn i {
    font-size: 24px;
    color: var(--primary-color);
}

.theme-btn.active {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Toggle Switch */
.switch-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    font-weight: 500;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Settings Select */
.settings-select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.settings-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.settings-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Settings Buttons */
.settings-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    font-family: inherit;
}

.settings-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.settings-btn.secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.settings-btn.danger {
    background: #fc8181;
    color: white;
}

.settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Adjustment Controls in Settings */
.adjustment-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.adjustment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.adjustment-row .prayer-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.adjustment-row .controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.adjustment-row .value {
    min-width: 50px;
    text-align: center;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 16px;
}

.adjust-btn-small {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 14px;
}

.adjust-btn-small:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* App Info */
.app-info {
    text-align: center;
    color: var(--text-light);
}

.app-info .version {
    font-size: 14px;
    margin-bottom: 20px;
    margin-top: 5px;
}

/* Color Picker Styles */
.color-picker-container {
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
}

.color-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
}

.color-option:hover {
    transform: scale(1.1);
    border-color: var(--text-dark);
}

.color-option.active {
    border-color: var(--text-dark);
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--text-dark);
}

.color-option.custom-color {
    background: linear-gradient(45deg, var(--primary-light), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    border: 2px dashed var(--border-color);
}

.custom-color-picker {
    width: 100%;
    height: 50px;
    margin-bottom: 15px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.current-color-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
}

.current-color-display span {
    font-weight: 600;
    color: var(--text-dark);
}

.current-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    margin-right: auto;
}

/* ====================================
   HEADER
   ==================================== */
.app-header {
    background: linear-gradient(135deg, var(--primary-light), white);
    padding: 20px 16px;
    text-align: center;
    border-bottom: 2px solid var(--primary-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    position: relative;
}

.header-content h1 {
    color: var(--primary-dark);
    font-size: 28px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.header-content .subtitle {
    color: var(--text-light);
    font-size: 14px;
}

.location-refresh {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-light);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary-color);
}

.location-refresh:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) rotate(180deg);
}

/* ====================================
   MAIN CONTENT
   ==================================== */
.main-content {
    padding: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    display: none;
    animation: slideUp 0.3s ease;
}

.content-section.active {
    display: block;
}

/* ====================================
   CARDS
   ==================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
    flex-wrap: wrap;
}

.card-header i {
    color: var(--primary-color);
    font-size: 20px;
}

.card-header h3 {
    color: var(--primary-dark);
    font-size: 18px;
    flex-grow: 1;
}

.progress-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

#quranProgressPercent {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

/* ====================================
   DATE & TIME
   ==================================== */
.date-card .card-body {
    text-align: center;
}

.gregorian-date {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.hijri-date {
    font-size: 20px;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 16px;
    background: var(--primary-light);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    display: inline-block;
    border-right: 4px solid var(--primary-color);
}

.time-display {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    margin-top: 10px;
}

/* ====================================
   COUNTDOWN TIMER
   ==================================== */
.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.flip-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 2px;
}

.flip-card {
    width: 50px;
    height: 60px;
    perspective: 1000px;
    position: relative;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flip-card.flipping .flip-card-inner {
    transform: rotateX(90deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: white;
}

.flip-card-front {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    transform: rotateX(0deg);
}

.flip-card-back {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: rotateX(90deg);
}

.flip-label {
    text-align: center;
    margin-top: 6px;
    font-size: 10px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flip-separator {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 300;
    margin-top: 15px;
    margin: 0 2px;
}

/* ====================================
   QURAN PROGRESS
   ==================================== */
.quran-progress {
    margin-top: 20px;
    padding: 20px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.quran-progress:hover {
    background: var(--primary-color);
    color: white;
}

.quran-progress:hover h4 {
    color: white;
}

.progress-summary {
    cursor: pointer;
    transition: var(--transition);
    padding: 10px;
    border-radius: var(--radius-md);
}

.progress-summary:hover {
    background: var(--primary-light);
}

.progress-summary h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar.large {
    height: 16px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 6px;
    transition: width 1s ease;
}

.progress-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.progress-item {
    text-align: center;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.progress-item:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.progress-item span {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.progress-item strong {
    display: block;
    font-size: 24px;
    color: var(--primary-dark);
}

/* Juz Grid */
.juz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    margin-top: 15px;
}

.juz-btn {
    aspect-ratio: 1;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-family: inherit;
}

.juz-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.juz-btn.completed {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: var(--primary-dark);
}

/* ====================================
   PRAYER TIMES
   ==================================== */
.prayer-times {
    display: grid;
    gap: 8px;
}

.prayer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.prayer-item.current {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    border-right: 4px solid var(--primary-color);
    transform: scale(1.02);
}

.prayer-item:hover {
    background: var(--primary-light);
}

.prayer-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.prayer-time {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 18px;
}

.location-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
}

.location-display i {
    color: var(--primary-color);
}

/* ====================================
   WEATHER
   ==================================== */
.weather-card .card-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: var(--text-dark);
}

.weather-info i {
    color: var(--primary-color);
    font-size: 32px;
}

/* ====================================
   HADITH
   ==================================== */
.hadith-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-style: italic;
}

.hadith-reference {
    text-align: left;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

/* ====================================
   QURAN READING
   ==================================== */
.surah-list-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-light);
}

#currentJuzTitle {
    color: var(--primary-dark);
    font-size: 18px;
    margin: 0;
}

.surah-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.surah-item {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 8px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border-right: 3px solid transparent;
}

.surah-item:hover {
    background: var(--primary-light);
    border-right-color: var(--primary-color);
    transform: translateX(-4px);
}

.surah-item.completed {
    background: var(--primary-light);
    border-right-color: var(--primary-color);
}

.surah-item.completed .surah-number {
    background: var(--primary-dark);
}

.surah-number {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin-left: 16px;
    flex-shrink: 0;
}

.surah-info {
    flex-grow: 1;
}

.surah-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.surah-details {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    gap: 16px;
}

/* Surah View */
.surah-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-light);
}

.surah-info h3 {
    color: var(--primary-dark);
    font-size: 24px;
    margin-bottom: 5px;
}

.ayahs-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 25px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
    text-align: right;
    border: 2px solid var(--border-color);
}

.ayah-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
    transition: var(--transition);
}

.ayah-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.ayah-item.playing {
    background: rgba(79, 209, 197, 0.2);
    border-right: 4px solid var(--primary-color);
    padding-right: 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.ayah-text {
    font-size: 28px;
    line-height: 2.2;
    color: var(--text-dark);
    font-family: 'Amiri', 'Noto Naskh Arabic', serif;
    margin-bottom: 15px;
    text-align: right;
}

.ayah-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    margin-left: 15px;
    font-family: Arial, sans-serif;
}

/* Audio Controls */
.audio-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.audio-btn {
    padding: 14px 28px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    font-family: inherit;
}

.audio-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.audio-btn.playing {
    background: #dc3545;
}

.audio-btn.playing:hover {
    background: #c82333;
}

/* Quran Controls */
.quran-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
}

.btn-control {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    font-family: inherit;
}

.btn-control:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ayah-counter {
    background: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 18px;
    border: 2px solid var(--primary-light);
}

.page-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
}

.page-info {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 16px;
    background: white;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: 2px solid var(--primary-light);
}

/* Loading State */
.loading-ayahs {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 18px;
}

.loading-ayahs i {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: block;
}

/* ====================================
   TASBIH
   ==================================== */
.tasbih-display-container {
    text-align: center;
    margin-bottom: 30px;
}

.tasbih-display {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.tasbih-display:active {
    transform: scale(0.95);
}

.tasbih-display:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(255,255,255,0.2) 70%);
    border-radius: 50%;
}

#tasbihCount {
    font-size: 64px;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.tasbih-label {
    font-size: 20px;
    color: var(--primary-dark);
    font-weight: 600;
    margin-top: 10px;
}

.tasbih-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.tasbih-btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 140px;
    font-family: inherit;
}

.tasbih-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.tasbih-btn.secondary {
    background: var(--bg-hover);
    color: var(--text-dark);
}

.tasbih-btn.danger {
    background: #fc8181;
    color: white;
}

.tasbih-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tasbih-history {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
}

.tasbih-history h4 {
    color: var(--primary-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border-right: 3px solid var(--primary-light);
}

.history-item:hover {
    border-right-color: var(--primary-color);
}

/* ====================================
   ADHKAR
   ==================================== */
.adhkar-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.adhkar-tabs::-webkit-scrollbar {
    display: none;
}

.adhkar-tab {
    flex-shrink: 0;
    padding: 12px 20px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-weight: 600;
    white-space: nowrap;
    font-family: inherit;
    font-size: 14px;
}

.adhkar-tab i {
    color: var(--primary-color);
}

.adhkar-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: var(--primary-color);
}

.adhkar-tab.active i {
    color: white;
}

.adhkar-tab:hover:not(.active) {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.adhkar-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.adhkar-item {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    border-right: 4px solid var(--primary-color);
    transition: var(--transition);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.adhkar-item:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow-md);
}

.adhkar-item.completed {
    background: var(--primary-light);
    opacity: 0.8;
}

.adhkar-item.completed .adhkar-text {
    text-decoration: line-through;
    opacity: 0.7;
}

.adhkar-text {
    font-size: 20px;
    line-height: 2;
    margin-bottom: 15px;
    text-align: right;
    font-family: 'Amiri', 'Noto Naskh Arabic', serif;
    flex-grow: 1;
}

.adhkar-translation {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    font-style: italic;
}

.adhkar-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.adhkar-count {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.adhkar-reference {
    font-size: 12px;
    color: var(--text-light);
}

.adhkar-fadl {
    background: var(--bg-card);
    padding: 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--primary-dark);
    border-right: 3px solid var(--primary-color);
}

.adhkar-fadl i {
    color: var(--primary-color);
    margin-left: 5px;
}

.adhkar-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    justify-content: center;
}

.counter-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.counter-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.counter-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.counter-display {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    min-width: 80px;
    text-align: center;
}

.adhkar-progress {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
}

.adhkar-progress-bar {
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.adhkar-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 5px;
    transition: width 0.3s ease;
}

.adhkar-progress-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-medium);
    font-weight: 600;
}

.adhkar-card .card-body {
    max-height: 600px;
    overflow-y: auto;
}

.adhkar-content {
    min-height: 400px;
}

/* ====================================
   AGENDA
   ==================================== */
.daily-agenda {
    background: var(--primary-light);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.agenda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.agenda-header h4 {
    color: var(--primary-dark);
    font-size: 18px;
}

.day-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

#dayInput {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    font-family: inherit;
}

#dayInput:focus {
    outline: none;
    border-color: var(--primary-color);
}

.agenda-items {
    display: grid;
    gap: 12px;
}

.agenda-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.agenda-item:hover {
    border-color: var(--primary-color);
    transform: translateX(-4px);
}

.agenda-item.completed {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.agenda-item.completed .agenda-icon {
    background: var(--primary-dark);
    color: white;
}

.agenda-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: var(--transition);
}

.agenda-content {
    flex-grow: 1;
}

.agenda-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.agenda-description {
    font-size: 14px;
    color: var(--text-light);
}

.agenda-time {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

.monthly-goals {
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.monthly-goals h4 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.goal-item {
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.goal-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.goal-item.completed {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.goal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.goal-icon {
    color: var(--primary-color);
    font-size: 20px;
}

.goal-title {
    font-weight: 600;
    color: var(--text-dark);
    flex-grow: 1;
}

.goal-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
}

.goal-item.completed .goal-checkbox {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.goal-item.completed .goal-checkbox:after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.goal-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ====================================
   FOOTER NAVIGATION
   ==================================== */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid var(--primary-light);
    z-index: 100;
    padding: 12px 0;
    backdrop-filter: blur(10px);
}

.footer-nav {
    display: flex;
    justify-content: space-around;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

.nav-item {
    background: none;
    border: none;
    padding: 12px 16px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 12px;
}

.nav-item:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

.nav-item.active {
    color: var(--primary-dark);
    background: var(--primary-light);
}

.nav-item.active:after {
    content: '';
    position: absolute;
    top: -4px;
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.nav-item i {
    font-size: 20px;
}

/* ====================================
   UTILITY CLASSES
   ==================================== */
.btn-icon {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
    font-size: 14px;
}

.btn-icon:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

/* ====================================
   ANIMATIONS
   ==================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from { 
        transform: translateX(-50%) translateY(-20px); 
        opacity: 0; 
    }
    to { 
        transform: translateX(-50%) translateY(0); 
        opacity: 1; 
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes countAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 24px;
    }

    .time-display {
        font-size: 36px;
    }

    .flip-card {
        width: 40px;
        height: 50px;
    }

    .flip-card-front, .flip-card-back {
        font-size: 20px;
    }

    .flip-separator {
        font-size: 18px;
    }

    .flip-label {
        font-size: 9px;
    }

    .progress-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .goals-grid {
        grid-template-columns: 1fr;
    }

    .tasbih-display {
        width: 150px;
        height: 150px;
    }

    #tasbihCount {
        font-size: 48px;
    }

    .ayah-text {
        font-size: 24px;
    }

    .footer-nav {
        padding: 0 8px;
    }

    .nav-item {
        padding: 10px 12px;
        font-size: 11px;
    }

    .nav-item i {
        font-size: 18px;
    }

    .prayer-time {
        font-size: 16px;
    }

    .juz-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 6px;
    }

    .juz-btn {
        font-size: 14px;
    }

    .theme-options {
        grid-template-columns: 1fr;
    }

    .quran-controls {
        flex-direction: column;
    }

    .btn-control {
        width: 100%;
        justify-content: center;
    }

    .ayah-counter {
        order: -1;
        width: 100%;
        text-align: center;
    }

    .page-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .page-navigation .btn-icon {
        width: 100%;
        justify-content: center;
    }

    .page-info {
        order: -1;
    }
    
    .adhkar-text {
        font-size: 18px;
        line-height: 1.8;
    }
    
    .adhkar-item {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .install-buttons {
        flex-direction: column;
    }

    .countdown-timer {
        gap: 4px;
    }

    .flip-card {
        width: 35px;
        height: 45px;
    }

    .flip-card-front, .flip-card-back {
        font-size: 18px;
    }

    .flip-separator {
        font-size: 16px;
        margin: 0 1px;
    }

    .tasbih-btn {
        min-width: 120px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .header-content h1 {
        font-size: 20px;
    }

    .time-display {
        font-size: 32px;
    }

    .location-refresh,
    .settings-menu-btn {
        width: 35px;
        height: 35px;
    }

    .prayer-item {
        padding: 10px 12px;
    }

    .prayer-time {
        font-size: 14px;
    }

    .weather-info {
        font-size: 16px;
    }

    .weather-info i {
        font-size: 24px;
    }

    .ayah-text {
        font-size: 22px;
    }

    .adhkar-tab {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .adhkar-text {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .color-options {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .color-option {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 360px) {
    .flip-card {
        width: 30px;
        height: 40px;
    }

    .flip-card-front, .flip-card-back {
        font-size: 16px;
    }

    .flip-label {
        font-size: 8px;
    }

    .header-content h1 {
        font-size: 18px;
    }

    .time-display {
        font-size: 28px;
    }

    .tasbih-display {
        width: 130px;
        height: 130px;
    }

    #tasbihCount {
        font-size: 40px;
    }
}
/* ====================================
   RECITER SELECTOR STYLES
   ==================================== */

.reciter-selector-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 5px;
}

.reciter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reciter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.reciter-option:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    transform: translateX(-4px);
}

.reciter-option.selected {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    border-color: var(--primary-color);
    border-right: 4px solid var(--primary-color);
}

.reciter-option.selected i {
    color: var(--primary-color);
    font-size: 22px;
}

.reciter-info {
    flex-grow: 1;
}

.reciter-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.reciter-description {
    font-size: 13px;
    color: var(--text-light);
}

/* Current Reciter Bar in Quran Section */
.current-reciter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary-light), var(--bg-light));
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-right: 3px solid var(--primary-color);
}

.reciter-info-display {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
    font-weight: 600;
}

.reciter-info-display i {
    font-size: 22px;
    color: var(--primary-color);
}

/* Dark theme adjustments */
[data-theme="dark"] .reciter-option {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .reciter-option:hover {
    background: rgba(79, 209, 197, 0.2);
}

[data-theme="dark"] .reciter-option.selected {
    background: rgba(79, 209, 197, 0.3);
}

[data-theme="dark"] .current-reciter-bar {
    background: rgba(35, 78, 82, 0.4);
}

/* Pulse animation for highlighting */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(79, 209, 197, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(79, 209, 197, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 209, 197, 0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reciter-option {
        padding: 12px;
    }
    
    .reciter-name {
        font-size: 15px;
    }
    
    .reciter-description {
        font-size: 12px;
    }
    
    .current-reciter-bar {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .reciter-option {
        padding: 10px;
    }
    
    .reciter-name {
        font-size: 14px;
    }
    
    .reciter-description {
        font-size: 11px;
    }
    
    .reciter-info-display i {
        font-size: 18px;
    }
}