/* css/style.css - Updated for Memorization Workflow */
:root {
    --primary-color: #0d6e3e;
    --primary-dark: #0a5632;
    --primary-light: #128c49;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --radius: 12px;
}

[dir="rtl"] {
    text-align: right;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: var(--primary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.nav-logo h2 {
    color: white;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}



/* Merged Selection Card */
.selection-card {
    grid-column: 1 / -1; /* Make it span full width */
    max-width: 600px;
    margin: 0 auto;
}

.selection-controls {
    margin-top: 1.5rem;
}

.selection-group {
    margin-bottom: 1.5rem;
}

.selection-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.surah-select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.surah-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Enhanced Range Inputs */
.range-inputs {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.input-group {
    position: relative;
    flex: 1;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    text-align: center;
    background: white;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.input-label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 600;
}

.range-separator {
    color: var(--text-light);
    font-weight: 600;
    padding: 0 0.5rem;
}

.ayah-info {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    background: #f8f9fa;
    padding: 8px;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

/* Load Range Button */
.btn-load-range {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 62, 0.3);
}

.btn-load-range:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 62, 0.4);
}

.btn-load-range:active {
    transform: translateY(0);
}

/* Quran Display Header */
.display-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.display-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.verse-count {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Placeholder Message */
.placeholder-message {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
    background: #f8f9fa;
    border-radius: var(--radius);
    border: 2px dashed var(--border-color);
}

/* Responsive Design for Merged Card */
@media (max-width: 768px) {
    .selection-card {
        margin: 0 1rem;
    }
    
    .range-inputs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .range-separator {
        padding: 0.5rem 0;
    }
    
    .input-group input {
        padding: 12px;
        text-align: center;
    }
    
    .input-label {
        position: static;
        display: block;
        margin-bottom: 0.25rem;
        transform: none;
    }
    
    .display-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Enhanced Feature Cards Layout */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .selection-card {
        grid-column: 1 / -1;
    }
}

/* Verse Styling */
.verse {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: white;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.verse:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.verse.current-verse {
    background: #fff9e6;
    border-color: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
    transform: scale(1.02);
}

.verse-arabic {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'Traditional Arabic', 'Scheherazade', serif;
    line-height: 2.5;
}

.verse-number {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 15px;
    display: inline-block;
    margin: 0 auto;
}





/* Range Controls */
.range-controls {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--radius);
}

.range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.ayah-input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-align: center;
}

.ayah-info {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.btn-load {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-load:hover {
    background: var(--primary-dark);
}

/* Audio Player */

/* Inline Player Controls */
.player-controls-full {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.mode-controls {
    display: flex;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: var(--radius);
}

.mode-controls .mode-btn {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

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

.mode-controls .mode-btn:hover {
    transform: scale(1.1);
}

.playback-controls {
    display: flex;
    gap: 0.5rem;
}

.speed-control-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}

.speed-control-inline label {
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    font-size: 0.9rem;
}

.speed-select {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: white;
    font-size: 0.9rem;
}

/* Progress Container */
.progress-container {
    margin: 1rem 0;
}

.time-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .player-controls-full {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mode-controls, .playback-controls, .speed-control-inline {
        width: 100%;
        justify-content: center;
    }
}



.audio-controls {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.audio-player {
    text-align: center;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.player-header h4 {
    margin: 0;
    color: var(--primary-color);
}

.current-verse-display {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Progress Bar */
.progress-container {
    margin: 1rem 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.progress-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Player Controls */
.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-control {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-control:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.play-pause {
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-pause:hover {
    background: var(--primary-dark);
}

/* Current Verse Highlight */
.verse.current-verse {
    background: #fff9e6 !important;
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.verse-number {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 600;
}



/* Memorization Mode Selector */
.mode-selector {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 2px solid var(--border-color);
}

.mode-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.mode-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.mode-btn:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

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

.mode-settings {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

/* Speed Control */
.speed-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: var(--radius);
}

.speed-control label {
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.speed-select {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: white;
}

/* Enhanced Player Controls */
.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    position: relative;
}

/* Inline Record Button */
.record-btn {
    background: #dc3545 !important;
    color: white !important;
    margin-left: 2rem !important; /* Separate from play controls */
    position: relative;
}

.record-btn::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 30px;
    background: var(--border-color);
}

.record-btn.recording {
    background: #28a745 !important;
    animation: pulse 1.5s infinite;
}

/* Repeat Mode Controls */
.repeat-controls {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff9e6;
    border-radius: var(--radius);
    border: 1px solid #ffc107;
}

.repeat-settings {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.repeat-settings label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #856404;
    cursor: pointer;
}

.repeat-settings input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

/* Test Mode Styles */
.test-mode .verse-arabic {
    visibility: hidden;
    position: relative;
}

.test-mode .verse-arabic::after {
    content: "بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ";
    visibility: visible;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    width: 100%;
}

.test-mode .verse {
    background: #f8f9fa !important;
    border-color: #e9ecef !important;
}

.test-mode .verse.current-verse {
    background: #fff9e6 !important;
    border-color: #ffc107 !important;
}

/* Recording Overlay */
.recording-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    color: white;
}

.recording-indicator {
    background: #dc3545;
    color: white;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    animation: pulse 1.5s infinite;
}

.recording-indicator h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.recording-timer {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
}

.recording-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mode-buttons {
        flex-direction: column;
    }
    
    .mode-btn {
        min-width: auto;
    }
    
    .repeat-settings {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .player-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .record-btn {
        margin-left: 0 !important;
        order: 1;
        width: 100%;
        margin-top: 1rem;
    }
    
    .record-btn::before {
        display: none;
    }
}

/* Animation for recording */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}






/* Add smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Fix navigation active states */
.nav-link {
    cursor: pointer;
}

.nav-link:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* Button hover effects */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Recording button animation */
.btn-record.recording {
    background: #dc3545;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Course card hover effects */
.course-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Form input focus states */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 62, 0.1);
    outline: none;
}


/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.btn-record {
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-record.recording {
    background: #28a745;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Sections */
.section {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Surah Selection */
.surah-select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    margin-top: 1rem;
    background: white;
}

/* Quran Display */
.quran-display {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-top: 2rem;
}

.verse-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.verse {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: white;
}

.verse-arabic {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'Traditional Arabic', 'Scheherazade', serif;
    line-height: 2.5;
}

.verse-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-play, .btn-record-verse {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-play {
    background: var(--primary-color);
    color: white;
}

.btn-record-verse {
    background: #ffc107;
    color: #333;
}

/* Progress Circle */
.progress-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0%, #e0e0e0 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    position: relative;
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
}

.progress-circle span {
    position: relative;
    font-weight: bold;
    color: var(--primary-color);
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.course-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
}

.course-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.course-card ul {
    list-style: none;
    margin: 1.5rem 0;
}

.course-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.course-card li:before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 0.5rem;
}

.btn-enroll {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: background 0.3s ease;
}

.btn-enroll:hover {
    background: var(--primary-dark);
}

/* Contact Form */
.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    background: white;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.course-selection {
    margin-bottom: 1.5rem;
}

.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

.btn-submit:disabled {
    background: var(--text-light);
    cursor: not-allowed;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float img {
    width: 24px;
    height: 24px;
}

.whatsapp-text {
    font-weight: 600;
}

/* MEMORIZATION WORKFLOW STYLES */

/* Range Selection Page */
.range-selection {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 2rem auto;
}

.option-card {
    background: white;
    padding: 2rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.option-card.active {
    border-color: var(--primary-color);
    background: #f0f9f4;
}

.range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.range-inputs input {
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
}

.ayah-info {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.mode-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

/* Recite Mode */
.recite-mode .verse-arabic {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.recite-mode.hidden-text .verse-arabic {
    visibility: hidden;
}

.recite-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recite-mic {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recite-mic.recording {
    background: #28a745;
    animation: pulse 1.5s infinite;
}

/* Listen Mode */
.listen-mode .verse {
    transition: all 0.3s ease;
}

.listen-mode .verse.highlighted {
    background: #fff9e6;
    border-color: #ffc107;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.audio-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

/* Navigation between modes */
.mode-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .range-inputs {
        grid-template-columns: 1fr;
    }
    
    .mode-buttons {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        bottom: 15px;
        left: 15px;
        padding: 10px 16px;
    }
    
    .whatsapp-text {
        display: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --card-bg: #2d2d2d;
        --text-color: #ffffff;
        --text-light: #cccccc;
        --border-color: #404040;
    }
}