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

:root {
    --primary-color: #1a5f3f;
    --secondary-color: #d4af37;
    --accent-color: #ff6b35;
    --teal-color: #009688;
    --dark-color: #0d1b2a;
    --light-color: #f8f9fa;
    --text-color: #2d3748;
    --border-color: rgba(212, 175, 55, 0.2);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.15);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.2);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
    --gradient-1: linear-gradient(135deg, #1a5f3f 0%, #2d8659 50%, #3da875 100%);
    --gradient-2: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
    --gradient-3: linear-gradient(135deg, #009688 0%, #26a69a 100%);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #0d1b2a, #1a2332, #2c3e50);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 90px; /* مساحة للناف بار السفلي */
    direction: rtl;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
    overflow-x: hidden;
    font-display: swap; /* تجنب تأخير عرض الخط */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='0.8' opacity='0.2'%3E%3Ccircle cx='50' cy='50' r='15'/%3E%3Ccircle cx='50' cy='50' r='25'/%3E%3Cpath d='M50 25 L50 75 M25 50 L75 50'/%3E%3Cpath d='M35 35 L65 65 M65 35 L35 65'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(circle at 15% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(0, 150, 136, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundFlow 20s ease-in-out infinite;
}

@keyframes backgroundFlow {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 40% 30%, rgba(212, 175, 55, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 60% 70%, rgba(0, 150, 136, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: lightFlow 15s ease-in-out infinite alternate;
}

@keyframes lightFlow {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.8;
    }
}

/* Dark Mode */
body.dark-mode {
    background: linear-gradient(to bottom, #000000, #0a0a0a, #1a1a1a);
    background-attachment: fixed;
    color: #e4e4e4;
}

body.dark-mode::before {
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='1' opacity='0.25'%3E%3Ccircle cx='50' cy='50' r='15'/%3E%3Ccircle cx='50' cy='50' r='25'/%3E%3Cpath d='M50 25 L50 75 M25 50 L75 50'/%3E%3Cpath d='M35 35 L65 65 M65 35 L35 65'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(circle at 20% 40%, rgba(212, 175, 55, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(0, 150, 136, 0.18) 0%, transparent 50%);
}

body.dark-mode::after {
    background: 
        radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(0, 150, 136, 0.12) 0%, transparent 50%);
}

body.dark-mode .main-content {
    background: linear-gradient(145deg, rgba(26, 35, 50, 0.95) 0%, rgba(15, 24, 37, 0.98) 100%);
    color: #e4e4e4;
    border: 3px solid rgba(212, 175, 55, 0.4);
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.5),
        0 0 40px rgba(212, 175, 55, 0.2);
}

body.dark-mode .header-content {
    background: var(--gradient-1);
    border: 3px solid rgba(212, 175, 55, 0.5);
    box-shadow: var(--shadow-lg), 0 0 50px rgba(26, 95, 63, 0.4);
}

body.dark-mode .custom-select {
    background: #1a2332;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 18px;
    color: #ffffff;
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    background-color: #1a2332;
}

body.dark-mode .custom-select:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
    background-color: #1a2332;
}

body.dark-mode .custom-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2), 0 6px 16px rgba(212, 175, 55, 0.4);
    background-color: #1a2332;
}

body.dark-mode .custom-select option {
    background: #1a2332;
    color: #ffffff;
}

body.dark-mode .select-group label {
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

body.dark-mode .audio-player-container {
    background: linear-gradient(145deg, rgba(26, 35, 50, 0.5) 0%, rgba(15, 24, 37, 0.5) 100%);
    border-color: rgba(212, 175, 55, 0.2);
}

body.dark-mode .btn-radio {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    border-color: rgba(39, 174, 96, 0.5);
}

body.dark-mode .btn-radio.playing {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-color: rgba(231, 76, 60, 0.6);
}


body.dark-mode .instructions {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(0, 150, 136, 0.15) 100%);
    color: var(--secondary-color);
    border-color: rgba(212, 175, 55, 0.4);
    border-right-color: var(--secondary-color);
}

body.dark-mode .instructions p {
    color: #f4d03f;
}



body.dark-mode .loading-overlay {
    background: rgba(0, 0, 0, 0.9);
}

body.dark-mode .notification {
    background: #2a2a3e;
    color: #e4e4e4;
}

body.dark-mode .notification.success {
    background: linear-gradient(135deg, #06c766 0%, #05a855 100%);
}

body.dark-mode .notification.error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

body.dark-mode .notification.info {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header Styles */
/* Navigation Bottom Bar */
.nav-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(26, 95, 63, 0.98) 0%, rgba(45, 134, 89, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(212, 175, 55, 0.2);
    padding: 8px 10px;
    transition: var(--transition);
}

.nav-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 5px;
}

.nav-sidebar-item {
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-sidebar-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 8px;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.75rem;
    position: relative;
    overflow: hidden;
    min-height: 60px;
}

.nav-sidebar-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: rgba(212, 175, 55, 0.2);
    transition: width 0.3s ease;
    z-index: -1;
}

.nav-sidebar-link:hover::before,
.nav-sidebar-link.active::before {
    width: 100%;
}

.nav-sidebar-link:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
}

.nav-sidebar-link.active {
    background: rgba(212, 175, 55, 0.3);
    color: #d4af37;
}

.nav-sidebar-link i {
    font-size: 1.1rem;
    transition: var(--transition);
}

.nav-sidebar-link:hover i,
.nav-sidebar-link.active i {
    transform: scale(1.1);
    color: #d4af37;
}

.nav-sidebar-text {
    font-family: 'Cairo', sans-serif;
    font-size: 0.7rem;
    line-height: 1.2;
    text-align: center;
}

/* Dark Mode for Bottom Bar */
body.dark-mode .nav-sidebar {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.98) 0%, rgba(15, 24, 37, 0.98) 100%);
    border-top-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.3);
}

body.dark-mode .nav-sidebar-link {
    color: #e4e4e4;
}

body.dark-mode .nav-sidebar-link:hover,
body.dark-mode .nav-sidebar-link.active {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.25);
}

.header {
    text-align: center;
    margin-bottom: 0;
    animation: fadeInDown 0.8s ease;
    position: relative;
}

.header-content {
    background: var(--gradient-1);
    padding: 45px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(26, 95, 63, 0.3);
    color: white;
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(212, 175, 55, 0.4);
}

.header-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    animation: headerGlow 8s ease-in-out infinite;
    pointer-events: none;
}

.header-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-2);
    box-shadow: 0 -2px 15px rgba(212, 175, 55, 0.6);
}

@keyframes headerGlow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md), inset 0 1px 1px rgba(255,255,255,0.5);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 100;
}

.dark-mode-toggle:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: var(--shadow-gold);
    border-color: var(--secondary-color);
}

.dark-mode-toggle:active {
    transform: scale(0.9) rotate(0deg);
}

.dark-mode-toggle .icon-sun {
    display: none;
}

body.dark-mode .dark-mode-toggle {
    background: linear-gradient(145deg, #1a2332 0%, #0f1825 100%);
    border-color: rgba(212, 175, 55, 0.5);
}

body.dark-mode .dark-mode-toggle .icon-moon {
    display: none;
}

body.dark-mode .dark-mode-toggle .icon-sun {
    display: block;
    animation: sunSpin 4s linear infinite;
}

.icon-moon {
    animation: moonFloat 3s ease-in-out infinite;
}

@keyframes sunSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes moonFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(15deg);
    }
}

.main-title {
    font-family: 'Amiri', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3), 0 0 20px rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

.icon-animated {
    font-size: 3rem;
    animation: mosqueGlow 3s ease-in-out infinite;
    color: var(--secondary-color);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
}

@keyframes mosqueGlow {
    0%, 100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
    }
    50% {
        transform: translateY(-8px);
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.9));
    }
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.subtitle i {
    animation: headphoneBounce 2s ease-in-out infinite;
}

@keyframes headphoneBounce {
    0%, 100% {
        transform: translateY(0) rotate(-10deg);
    }
    50% {
        transform: translateY(-5px) rotate(10deg);
    }
}

/* Main Content */
.main-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(30px);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.15),
        0 0 40px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.8);
    animation: fadeInUp 0.8s ease;
    border: 3px solid rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-2);
    box-shadow: 0 2px 15px rgba(212, 175, 55, 0.6);
}

.main-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-3);
    box-shadow: 0 -2px 15px rgba(0, 150, 136, 0.4);
}

/* Selection Section */
.selection-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.select-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.select-group label {
    font-weight: 600;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    padding-right: 5px;
}

.label-icon {
    font-size: 1.2rem;
    display: inline-block;
    color: var(--secondary-color);
}

.custom-select {
    width: 100%;
    padding: 16px 40px 16px 18px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    font-size: 1.05rem;
    font-family: 'Cairo', sans-serif;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-weight: 600;
    color: var(--text-color);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 18px;
    background-color: #ffffff;
}

.custom-select:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.25);
    background-color: #ffffff;
}

.custom-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15), 0 6px 16px rgba(212, 175, 55, 0.3);
    background-color: #ffffff;
}

.custom-select option {
    background: #ffffff;
    color: var(--text-color);
    padding: 12px;
    font-weight: 600;
}


/* Radio Container */
/* Radio Floating Button */
.btn-radio-floating {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: 2px solid rgba(39, 174, 96, 0.5);
    border-radius: 22px;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: auto;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-radio-floating:hover {
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.6);
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
    transform: translateY(-3px);
}

.btn-radio-floating.playing {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-color: rgba(231, 76, 60, 0.6);
    animation: radioPulse 2s ease-in-out infinite;
}

.btn-radio-floating.playing .fa-broadcast-tower {
    animation: radioBroadcast 1.5s ease-in-out infinite;
}

.radio-floating-text {
    font-family: 'Cairo', sans-serif;
}

/* Old Radio Container (kept for compatibility) */
.radio-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-radio {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border-color: rgba(39, 174, 96, 0.3);
    padding: 18px 40px;
    font-size: 1.1rem;
    min-width: 400px;
    max-width: 500px;
}

.btn-radio:not(:disabled):hover {
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.4);
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
}

.btn-radio.playing {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-color: rgba(231, 76, 60, 0.5);
    animation: radioPulse 2s ease-in-out infinite;
}

.btn-radio.playing .btn-icon {
    animation: radioBroadcast 1.5s ease-in-out infinite;
}

@keyframes radioPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(231, 76, 60, 0.5), 0 0 30px rgba(231, 76, 60, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(231, 76, 60, 0.8), 0 0 50px rgba(231, 76, 60, 0.5);
    }
}

@keyframes radioBroadcast {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* Audio Player */
.audio-player-container {
    margin-bottom: 35px;
    padding: 25px;
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 25px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05), var(--shadow-md);
    border: 2px solid rgba(212, 175, 55, 0.15);
}

#audio-player {
    width: 100%;
    height: 70px;
    border-radius: 35px;
    box-shadow: var(--shadow-md), 0 0 20px rgba(0, 150, 136, 0.1);
    outline: none;
    border: 2px solid rgba(0, 150, 136, 0.2);
    filter: saturate(1.2);
}


/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    padding: 16px 28px;
    border: 2px solid transparent;
    border-radius: 15px;
    font-size: 1.05rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:not(:disabled):active::before {
    width: 300px;
    height: 300px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(50%);
    position: relative;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.btn:not(:disabled):hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.btn:not(:disabled):active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn:not(:disabled):hover .btn-icon {
    animation: iconRotate 0.6s ease;
}

@keyframes iconRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.btn-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: rgba(102, 126, 234, 0.3);
}

.btn-download:not(:disabled):hover {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-share {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-color: rgba(240, 147, 251, 0.3);
}

.btn-share:not(:disabled):hover {
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.4);
}

.btn-repeat {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border-color: rgba(0, 184, 148, 0.3);
}

.btn-repeat:not(:disabled):hover {
    box-shadow: 0 10px 30px rgba(0, 184, 148, 0.4);
}

.btn-repeat.active {
    background: var(--gradient-2);
    color: var(--dark-color);
    font-weight: bold;
    animation: repeatPulse 2s ease-in-out infinite;
    border-color: var(--secondary-color);
}

.btn-repeat.active .btn-icon {
    animation: repeatSpin 2s linear infinite;
}

@keyframes repeatPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.6), 0 0 30px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.9), 0 0 50px rgba(212, 175, 55, 0.5);
    }
}

@keyframes repeatSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Instructions */
.instructions {
    text-align: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(0, 150, 136, 0.1) 100%);
    border-radius: var(--border-radius);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-right: 6px solid var(--secondary-color);
    box-shadow: var(--shadow-md), inset 0 1px 1px rgba(255,255,255,0.5);
    transition: opacity 0.5s ease, height 0.5s ease, transform 0.3s ease;
    animation: pulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.instructions::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    animation: instructionsShine 3s infinite;
}

@keyframes instructionsShine {
    to {
        left: 100%;
    }
}

.instructions.hidden {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    animation: none;
}

.instructions p {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.instructions i {
    animation: infoBlink 2s ease-in-out infinite;
    font-size: 1.3rem;
}

@keyframes infoBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-md);
    }
    50% {
        transform: scale(1.01);
        box-shadow: var(--shadow-gold);
    }
}


/* Loading Overlay - معطل */
.loading-overlay {
    display: none !important; /* مخفي تماماً */
}

.loading-overlay.active {
    display: none !important; /* مخفي حتى عند التفعيل */
}

.spinner-container {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-icon {
    font-size: 60px;
    color: var(--secondary-color);
    animation: spin 1s linear infinite;
    position: absolute;
}

.spinner-ring {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(151, 193, 96, 0.3);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    box-shadow: 0 0 20px rgba(151, 193, 96, 0.5);
}

.loading-overlay p {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

.loading-overlay p i {
    font-size: 1.6rem;
    animation: downloadBounce 1s ease-in-out infinite;
}

@keyframes downloadBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Notification - معطل */
.notification {
    display: none !important; /* مخفي تماماً */
}

.notification.show {
    display: none !important; /* مخفي حتى عند الإظهار */
}

@keyframes notificationBounce {
    0% {
        transform: translateX(-50%) translateY(-150px) scale(0.8);
    }
    50% {
        transform: translateX(-50%) translateY(10px) scale(1.05);
    }
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.notification.success {
    background: linear-gradient(135deg, #06c766 0%, #05a855 100%);
    color: white;
    border-color: rgba(6, 199, 102, 0.5);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(6, 199, 102, 0.3);
}

.notification.error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border-color: rgba(244, 67, 54, 0.5);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(244, 67, 54, 0.3);
}

.notification.info {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border-color: rgba(33, 150, 243, 0.5);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(33, 150, 243, 0.3);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Install Button */
.install-button {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--gradient-2);
    color: var(--dark-color);
    border: 2px solid rgba(212, 175, 55, 0.5);
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
    z-index: 9998;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: installPulse 2s ease-in-out infinite;
    white-space: nowrap;
    max-width: 90%;
}

.install-button.show {
    transform: translateX(-50%) translateY(0);
}

.install-button-close {
    margin-right: 10px;
    cursor: pointer;
    font-size: 1.5rem !important;
    font-weight: 700;
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.2s;
    padding: 4px 8px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px !important;
    min-height: 30px !important;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.install-button-close:hover {
    opacity: 1;
    transform: scale(1.15);
    background: rgba(0, 0, 0, 0.15);
}

.install-button:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 50%, #f4d03f 100%);
}

.install-button:active {
    transform: translateX(-50%) translateY(0);
}

.install-button i {
    font-size: 1.3rem;
    animation: mobileShake 1s ease-in-out infinite;
}

@keyframes installPulse {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 8px 40px rgba(212, 175, 55, 0.6);
    }
}

@keyframes mobileShake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

/* Prayer Times Section */
.prayer-times-section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(30px);
    padding: 10px;
    border-radius: var(--border-radius);
    margin-top: 10px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.15),
        0 0 40px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.8);
    border: 2px solid rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.prayer-times-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-3);
    box-shadow: 0 2px 15px rgba(0, 150, 136, 0.6);
}

.prayer-header {
    text-align: center;
    margin-bottom: 8px;
}

.prayer-header h2 {
    font-family: 'Amiri', serif;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.prayer-header h2 i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    animation: mosqueGlow 3s ease-in-out infinite;
}

.prayer-location {
    color: var(--teal-color);
    font-size: 0.8rem;
    font-weight: 600;
}

.prayer-location i {
    color: var(--accent-color);
}

/* Next Prayer */
.next-prayer-container {
    background: var(--gradient-2);
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 8px;
    text-align: center;
    box-shadow: var(--shadow-gold);
}

.next-prayer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.next-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-color);
}

.next-prayer-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-color);
    font-family: 'Amiri', serif;
}

.next-prayer-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-color);
    background: rgba(255, 255, 255, 0.5);
    padding: 3px 8px;
    border-radius: 5px;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.countdown-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    font-family: 'Cairo', sans-serif;
    background: rgba(255, 255, 255, 0.5);
    padding: 4px 8px;
    border-radius: 6px;
    min-width: 40px;
}

.countdown-label {
    font-size: 0.65rem;
    color: var(--dark-color);
    font-weight: 600;
}

.countdown-separator {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 2px;
}

/* Prayer Times Grid */
.prayer-times-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.prayer-time-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.8));
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    border: 1.5px solid rgba(0, 150, 136, 0.2);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prayer-time-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 150, 136, 0.2);
    border-color: var(--teal-color);
}

.prayer-time-card.active {
    background: var(--gradient-3);
    border-color: var(--teal-color);
    box-shadow: 0 0 20px rgba(0, 150, 136, 0.4);
}

.prayer-time-card i {
    font-size: 1rem;
    color: var(--teal-color);
}

.prayer-time-card.active i {
    color: white;
    animation: prayerPulse 2s ease-in-out infinite;
}

.prayer-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.prayer-time-card.active .prayer-name {
    color: white;
}

.prayer-time {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--teal-color);
    font-family: 'Cairo', sans-serif;
}

.prayer-time-card.active .prayer-time {
    color: white;
}

.prayer-date {
    text-align: center;
    padding: 6px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(0, 150, 136, 0.1) 100%);
    border-radius: 6px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.6;
}

.prayer-date i {
    color: var(--secondary-color);
    margin-left: 8px;
}

@keyframes prayerPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Dark Mode for Prayer Times */
body.dark-mode .prayer-times-section {
    background: linear-gradient(145deg, rgba(26, 35, 50, 0.95) 0%, rgba(15, 24, 37, 0.98) 100%);
    border: 3px solid rgba(212, 175, 55, 0.4);
}

body.dark-mode .prayer-header h2 {
    color: var(--secondary-color);
}

body.dark-mode .prayer-location {
    color: var(--secondary-color);
}

body.dark-mode .prayer-time-card {
    background: linear-gradient(145deg, rgba(26, 35, 50, 0.8), rgba(15, 24, 37, 0.9));
    border-color: rgba(0, 150, 136, 0.3);
}

body.dark-mode .prayer-time-card .prayer-name,
body.dark-mode .prayer-time-card .prayer-time {
    color: var(--secondary-color);
}

body.dark-mode .prayer-time-card.active {
    background: var(--gradient-3);
}

body.dark-mode .prayer-date {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(0, 150, 136, 0.15) 100%);
    color: var(--secondary-color);
    border-color: rgba(212, 175, 55, 0.4);
}

/* Azkar Section */
.azkar-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 8px;
    margin-top: 10px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.azkar-header {
    text-align: center;
    margin-bottom: 6px;
}

.azkar-header h2 {
    font-size: 1.1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.azkar-header h2 i {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.azkar-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.azkar-tab {
    flex: 1;
    min-width: 100px;
    padding: 6px 8px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(0, 150, 136, 0.1) 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.azkar-tab:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(0, 150, 136, 0.2) 100%);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.azkar-tab.active {
    background: var(--gradient-1);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-gold);
}

.azkar-tab i {
    display: none;
}

.azkar-content {
    display: grid;
    gap: 6px;
}

.azkar-item {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(0, 150, 136, 0.05) 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 8px;
    transition: var(--transition);
    position: relative;
}

.azkar-item:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.azkar-text {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 6px;
    font-weight: 500;
    text-align: right;
}

.azkar-reference {
    font-size: 0.7rem;
    color: var(--teal-color);
    margin-bottom: 6px;
    font-style: italic;
    text-align: right;
}

.azkar-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1.5px solid rgba(212, 175, 55, 0.2);
}

.azkar-count-btn {
    flex: 1;
    padding: 6px 10px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 35px;
}

.azkar-count-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.azkar-count-btn:active {
    transform: scale(0.98);
}

.azkar-count-btn.completed {
    background: var(--gradient-3);
}

.azkar-count-display {
    min-width: 45px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1.5px solid var(--secondary-color);
}

.azkar-reset-btn {
    padding: 5px 10px;
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent-color);
    border: 1.5px solid var(--accent-color);
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.azkar-reset-btn:hover {
    background: var(--accent-color);
    color: white;
}

/* Dark Mode for Azkar */
body.dark-mode .azkar-section {
    background: linear-gradient(145deg, rgba(26, 35, 50, 0.95) 0%, rgba(15, 24, 37, 0.98) 100%);
    border: 3px solid rgba(212, 175, 55, 0.4);
}

body.dark-mode .azkar-header h2 {
    color: var(--secondary-color);
}

body.dark-mode .azkar-tab {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(0, 150, 136, 0.15) 100%);
    border-color: rgba(0, 150, 136, 0.3);
    color: var(--secondary-color);
}

body.dark-mode .azkar-tab.active {
    background: var(--gradient-3);
    color: white;
}

body.dark-mode .azkar-item {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(0, 150, 136, 0.1) 100%);
    border-color: rgba(0, 150, 136, 0.3);
}

body.dark-mode .azkar-text {
    color: #e4e4e4;
}

body.dark-mode .azkar-count-display {
    color: var(--secondary-color);
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--secondary-color);
}

/* Quran Reader Section */
.quran-reader-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: 0;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.quran-share-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.share-icon-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.share-icon-btn:nth-child(1) {
    background: #25D366;
    color: white;
}

.share-icon-btn:nth-child(2) {
    background: #000000;
    color: white;
}

.share-icon-btn:nth-child(3) {
    background: #1877F2;
    color: white;
}

.share-icon-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-md);
}

.quran-main-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .quran-main-controls {
        grid-template-columns: repeat(4, 1fr);
    }
}

.quran-surah-nav-btn {
    padding: 12px 20px;
    background: var(--gradient-3);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.quran-surah-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quran-surah-nav-btn:active {
    transform: translateY(0);
}

.quran-surah-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.quran-select-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quran-select-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.quran-select-label i {
    color: var(--secondary-color);
}

.quran-select {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.quran-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.quran-select:hover {
    border-color: var(--teal-color);
}

.quran-reader-header {
    text-align: center;
    margin-bottom: 25px;
}

.quran-reader-header h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.quran-reader-header h2 i {
    color: var(--secondary-color);
    font-size: 1.6rem;
}

.quran-reader-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.quran-nav-btn {
    padding: 12px 25px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.quran-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quran-nav-btn:active {
    transform: translateY(0);
}

.quran-page-info {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 100px;
    text-align: center;
}

.quran-page-separator {
    margin: 0 5px;
    color: var(--teal-color);
}

.quran-page-input {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    width: 120px;
    color: var(--primary-color);
    transition: var(--transition);
}

.quran-page-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.quran-page-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    background: #f5f5f5;
    border-radius: 15px;
    padding: 20px;
    min-height: 600px;
    position: relative;
}

.quran-page-wrapper {
    position: relative;
    display: inline-block;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 0;
}

body.dark-mode .quran-page-wrapper {
    background: #e8e8e8;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.quran-page-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background: #f5f5f5;
}

body.dark-mode .quran-page-image {
    background: #e8e8e8;
    padding: 0;
    box-shadow: var(--shadow-lg), 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.quran-page-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 95, 63, 0.95);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

body.dark-mode .quran-page-number {
    background: rgba(212, 175, 55, 0.95);
    color: #0d1b2a;
}

.quran-page-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(26, 95, 63, 0.9);
    color: white;
    border: 2px solid rgba(212, 175, 55, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.quran-page-arrow:hover {
    background: rgba(26, 95, 63, 1);
    border-color: #d4af37;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.quran-page-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.quran-page-arrow-left {
    right: 10px;
}

.quran-page-arrow-right {
    left: 10px;
}

/* Dark Mode for Arrows */
body.dark-mode .quran-page-arrow {
    background: rgba(15, 24, 37, 0.9);
    border-color: rgba(212, 175, 55, 0.6);
}

body.dark-mode .quran-page-arrow:hover {
    background: rgba(15, 24, 37, 1);
    border-color: #d4af37;
}

.quran-page-image:hover {
    transform: scale(1.02);
}

.quran-page-container.loading {
    position: relative;
}

.quran-page-container.loading::after {
    content: 'جاري تحميل الصفحة...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Dark Mode for Quran Reader */
body.dark-mode .quran-reader-section {
    background: linear-gradient(145deg, rgba(26, 35, 50, 0.95) 0%, rgba(15, 24, 37, 0.98) 100%);
    border: 3px solid rgba(212, 175, 55, 0.4);
}

body.dark-mode .quran-reader-header h2 {
    color: var(--secondary-color);
}

body.dark-mode .quran-page-info {
    color: var(--secondary-color);
}

body.dark-mode .quran-page-input {
    background: rgba(26, 35, 50, 0.8);
    border-color: rgba(0, 150, 136, 0.3);
    color: var(--secondary-color);
}

body.dark-mode .quran-page-container {
    background: rgba(15, 24, 37, 0.5);
}

body.dark-mode .quran-select {
    background: rgba(26, 35, 50, 0.8);
    border-color: rgba(0, 150, 136, 0.3);
    color: var(--secondary-color);
}

body.dark-mode .quran-select-label {
    color: var(--secondary-color);
}

/* Quran Control Bar (New Design) */
.quran-control-bar {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 12px 15px;
    margin-top: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.quran-control-bar-top {
    margin-bottom: 10px;
}

.quran-control-bar-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.quran-control-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.quran-control-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.quran-control-item-small {
    flex: 1;
    min-width: 0;
}

.quran-control-item i {
    color: #d4af37;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.quran-control-select {
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
    width: 100%;
}

.quran-control-select-small {
    padding: 6px 10px;
    font-size: 0.8rem;
    min-width: 120px;
}

.quran-control-select:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.15);
}

.quran-control-select:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.quran-control-select option {
    background: #1a1a1a;
    color: #fff;
    padding: 10px;
}

.quran-audio-player-wrapper {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

.quran-audio-player {
    width: 100%;
    height: 40px;
    outline: none;
    border-radius: 8px;
}

/* Force show all controls in WebKit browsers */
.quran-audio-player::-webkit-media-controls-enclosure {
    display: flex !important;
    align-items: center;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.quran-audio-player::-webkit-media-controls {
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.quran-audio-player::-webkit-media-controls-panel {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex !important;
    align-items: center;
}

.quran-audio-player::-webkit-media-controls-play-button,
.quran-audio-player::-webkit-media-controls-pause-button {
    background-color: rgba(212, 175, 55, 0.8);
    border-radius: 50%;
    margin: 0 5px;
}

.quran-audio-player::-webkit-media-controls-current-time-display,
.quran-audio-player::-webkit-media-controls-time-remaining-display {
    color: #fff !important;
    font-size: 0.75rem !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 5px;
}

.quran-audio-player::-webkit-media-controls-timeline {
    display: inline-block !important;
    visibility: visible !important;
    flex: 1;
    margin: 0 10px;
}

.quran-audio-player::-webkit-media-controls-volume-slider {
    display: inline-block !important;
    visibility: visible !important;
    margin: 0 5px;
}

.quran-audio-player::-webkit-media-controls-mute-button {
    display: inline-block !important;
    visibility: visible !important;
    margin: 0 5px;
}

/* Firefox */
.quran-audio-player::-moz-media-controls-time-display {
    color: #fff;
    font-size: 0.75rem;
}

/* Ensure controls are visible */
.quran-audio-player[controls] {
    display: block;
}

.quran-audio-player[controls]::-webkit-media-controls {
    display: flex !important;
    align-items: center;
}

.quran-control-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quran-share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.quran-share-btn.whatsapp {
    background: #25D366;
}

.quran-share-btn.messenger {
    background: #0084FF;
}

.quran-share-btn.telegram {
    background: #0088cc;
}

.quran-share-btn.facebook {
    background: #1877F2;
}

.quran-share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* تم حذف .quran-controls-top */

.quran-controls-bottom {
    margin: 0;
    padding: 8px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.quran-surah-nav-btn {
    font-size: 0.9rem;
    padding: 10px 15px;
}

.quran-surah-nav-btn-small {
    font-size: 0.75rem;
    padding: 6px 12px;
    flex: 1;
    max-width: 150px;
}

.quran-page-container {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.quran-page-container:active {
    cursor: grabbing;
}

/* Dark Mode for Quran Control Bar */
body.dark-mode .quran-control-bar {
    background: #0f0f0f;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

body.dark-mode .quran-control-select {
    background: rgba(26, 35, 50, 0.6);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--secondary-color);
}

body.dark-mode .quran-control-select:focus {
    border-color: var(--secondary-color);
    background: rgba(26, 35, 50, 0.8);
}

body.dark-mode .quran-control-select option {
    background: #1a1a1a;
    color: var(--secondary-color);
}

/* Responsive for Quran Control Bar */
@media (max-width: 768px) {
    .quran-control-bar {
        padding: 10px 12px;
    }
    
    .quran-control-bar-bottom {
        flex-direction: column;
        gap: 10px;
    }
    
    .quran-control-bar-left {
        width: 100%;
        gap: 8px;
    }
    
    .quran-control-item {
        flex: 1;
    }
    
    .quran-control-select {
        font-size: 0.75rem;
        padding: 6px 8px;
    }
    
    .quran-control-select-small {
        font-size: 0.7rem;
        padding: 5px 8px;
        min-width: 100px;
    }
    
    .quran-audio-player-wrapper {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        margin: 0;
    }
    
    .quran-audio-player {
        height: 35px;
    }
    
    .quran-control-bar-right {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    
    .quran-share-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .quran-surah-nav-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

/* Quran Bottom Bar (Old - Keep for compatibility) */
.quran-bottom-bar {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 15px 20px;
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.quran-bottom-share-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.quran-bottom-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.quran-bottom-share-btn:nth-of-type(1) {
    background: #25D366;
}

.quran-bottom-share-btn:nth-of-type(2) {
    background: #FFFC00;
    color: #000;
}

.quran-bottom-share-btn:nth-of-type(3) {
    background: #000000;
}

.quran-bottom-share-btn:nth-of-type(4) {
    background: #1877F2;
}

.quran-bottom-share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.quran-bottom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.quran-bottom-control-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.quran-bottom-control-item i {
    color: #d4af37;
    font-size: 1rem;
}

.quran-bottom-control-item label {
    cursor: pointer;
}

.quran-bottom-select {
    padding: 10px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
    min-width: 150px;
}

.quran-bottom-select:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.15);
}

.quran-bottom-select:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.quran-bottom-select option {
    background: #1a1a1a;
    color: #fff;
    padding: 10px;
}

.quran-index-btn {
    padding: 10px 20px;
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cairo', sans-serif;
}

.quran-index-btn:hover {
    background: rgba(212, 175, 55, 0.3);
    border-color: #d4af37;
    transform: translateY(-2px);
}

.quran-index-btn i {
    font-size: 1rem;
}

/* Dark Mode for Quran Bottom Bar */
body.dark-mode .quran-bottom-bar {
    background: #0f0f0f;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

body.dark-mode .quran-bottom-select {
    background: rgba(26, 35, 50, 0.6);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--secondary-color);
}

body.dark-mode .quran-bottom-select:focus {
    border-color: var(--secondary-color);
    background: rgba(26, 35, 50, 0.8);
}

body.dark-mode .quran-bottom-select option {
    background: #1a1a1a;
    color: var(--secondary-color);
}

body.dark-mode .quran-index-btn {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--secondary-color);
}

body.dark-mode .quran-index-btn:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: var(--secondary-color);
}

/* Responsive for Quran Bottom Bar */
@media (max-width: 768px) {
    .quran-bottom-bar {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .quran-bottom-share-icons {
        gap: 10px;
    }
    
    .quran-bottom-share-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .quran-bottom-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .quran-bottom-select {
        width: 100%;
        min-width: auto;
    }
    
    .quran-index-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 80px;
    left: 20px;
    padding: 10px 16px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    white-space: nowrap;
    min-width: 160px;
}

.back-to-top-btn.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: var(--gradient-2);
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-gold);
}

.back-to-top-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.back-to-top-text {
    font-family: 'Cairo', sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-sidebar {
        padding: 6px 8px;
    }
    
    .nav-sidebar-link {
        padding: 5px 6px;
        font-size: 0.7rem;
        gap: 3px;
        min-height: 55px;
    }
    
    .nav-sidebar-link i {
        font-size: 1rem;
    }
    
    .nav-sidebar-text {
        font-size: 0.65rem;
    }
    
    body {
        padding-bottom: 75px;
    }
    
    .back-to-top-btn {
        bottom: 70px;
        left: 15px;
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .btn-radio-floating {
        bottom: 70px;
        right: 15px;
        padding: 7px 11px;
        font-size: 0.7rem;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .icon {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 25px;
    }
    
    .selection-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .dark-mode-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .select-group {
        padding: 15px;
    }
    
    .btn-radio {
        min-width: 100%;
        font-size: 1rem;
        padding: 16px 30px;
    }
    
    .prayer-times-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .countdown-value {
        font-size: 1.5rem;
        min-width: 50px;
        padding: 6px 12px;
    }
    
    .countdown-separator {
        font-size: 1.2rem;
    }
    
    .prayer-times-section {
        padding: 6px;
        margin-top: 8px;
    }
    
    .prayer-header {
        margin-bottom: 6px;
    }
    
    .prayer-header h2 {
        font-size: 1rem;
        gap: 5px;
    }
    
    .prayer-header h2 i {
        font-size: 1rem;
    }
    
    .prayer-location {
        font-size: 0.75rem;
    }
    
    .next-prayer-container {
        padding: 6px;
        margin-bottom: 6px;
    }
    
    .next-prayer-name {
        font-size: 0.9rem;
    }
    
    .next-prayer-time {
        font-size: 0.8rem;
    }
    
    .prayer-time-card {
        padding: 6px;
    }
    
    .prayer-name {
        font-size: 0.7rem;
    }
    
    .prayer-time {
        font-size: 0.75rem;
    }
    
    .prayer-date {
        padding: 5px;
        font-size: 0.8rem;
    }
    
    .prayer-times-grid {
        gap: 5px;
    }
    
    .countdown-value {
        font-size: 1rem;
        min-width: 35px;
        padding: 3px 6px;
    }
    
    .countdown-separator {
        font-size: 0.95rem;
    }
    
    .azkar-section {
        padding: 6px;
        margin-top: 8px;
    }
    
    .azkar-header {
        margin-bottom: 4px;
    }
    
    .azkar-header h2 {
        font-size: 1rem;
        gap: 5px;
        margin-bottom: 3px;
    }
    
    .azkar-header h2 i {
        font-size: 0.85rem;
    }
    
    .azkar-tabs {
        gap: 3px;
        margin-bottom: 4px;
    }
    
    .azkar-tab {
        min-width: auto;
        font-size: 0.7rem;
        padding: 5px 7px;
        gap: 3px;
    }
    
    .azkar-tab i {
        display: none;
    }
    
    .azkar-content {
        gap: 5px;
    }
    
    .azkar-item {
        padding: 7px;
    }
    
    .azkar-text {
        font-size: 0.8rem;
        line-height: 1.35;
        margin-bottom: 5px;
    }
    
    .azkar-reference {
        font-size: 0.68rem;
        margin-bottom: 5px;
    }
    
    .azkar-counter {
        gap: 5px;
        margin-top: 5px;
        padding-top: 5px;
    }
    
    .azkar-count-btn {
        font-size: 0.75rem;
        padding: 5px 9px;
        min-height: 32px;
        gap: 3px;
    }
    
    .azkar-count-display {
        font-size: 0.9rem;
        padding: 3px 7px;
        min-width: 42px;
    }
    
    .azkar-reset-btn {
        padding: 4px 9px;
        font-size: 0.68rem;
    }
    
    .dua-section {
        padding: 20px 15px;
    }
    
    .dua-header h2 {
        font-size: 1.5rem;
    }
    
    .dua-tabs {
        gap: 8px;
    }
    
    .dua-tab {
        min-width: 120px;
        font-size: 0.85rem;
        padding: 10px 15px;
    }
    
    .dua-text {
        font-size: 1.05rem;
        line-height: 1.8;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .header-content {
        padding: 25px 20px;
    }
    
    .main-title {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .main-content {
        padding: 25px 20px;
    }
    
    .dark-mode-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        top: 10px;
        left: 10px;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .select-group {
        padding: 12px;
    }
    
    .audio-player-container {
        padding: 20px;
    }
    
    .install-button {
        font-size: 0.75rem;
        padding: 8px 16px;
        bottom: 100px;
        max-width: 95%;
        white-space: normal;
        text-align: center;
        line-height: 1.4;
    }
    
    .install-button i {
        font-size: 0.85rem;
    }
    
    .install-button-close {
        font-size: 1.3rem !important;
        min-width: 26px !important;
        min-height: 26px !important;
        margin-right: 8px;
        padding: 3px 6px;
    }
    
    .btn-radio {
        min-width: 100%;
        font-size: 0.9rem;
        padding: 14px 20px;
    }
    
    .azkar-section {
        padding: 6px;
        margin-top: 8px;
    }
    
    .azkar-header {
        margin-bottom: 4px;
    }
    
    .azkar-header h2 {
        font-size: 0.95rem;
        gap: 4px;
        margin-bottom: 3px;
    }
    
    .azkar-header h2 i {
        font-size: 0.8rem;
    }
    
    .azkar-tabs {
        flex-direction: row;
        gap: 3px;
        margin-bottom: 4px;
    }
    
    .azkar-tab {
        min-width: auto;
        font-size: 0.65rem;
        padding: 4px 6px;
        gap: 3px;
    }
    
    .azkar-tab i {
        display: none;
    }
    
    .azkar-content {
        gap: 4px;
    }
    
    .azkar-item {
        padding: 6px;
        border-radius: 6px;
    }
    
    .azkar-text {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 4px;
    }
    
    .azkar-reference {
        font-size: 0.65rem;
        margin-bottom: 4px;
    }
    
    .azkar-counter {
        flex-direction: row;
        gap: 4px;
        margin-top: 4px;
        padding-top: 4px;
    }
    
    .azkar-count-btn {
        width: auto;
        font-size: 0.7rem;
        padding: 5px 8px;
        min-height: 30px;
        gap: 3px;
    }
    
    .azkar-count-display {
        width: auto;
        font-size: 0.85rem;
        padding: 3px 6px;
        min-width: 40px;
    }
    
    .azkar-reset-btn {
        width: auto;
        padding: 4px 8px;
        font-size: 0.65rem;
    }
    
    .dua-section {
        padding: 20px 15px;
    }
    
    .dua-header h2 {
        font-size: 1.4rem;
    }
    
    .dua-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .dua-tab {
        min-width: 100%;
        font-size: 0.9rem;
        padding: 12px 15px;
    }
    
    .dua-text {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .dua-item {
        padding: 20px;
    }
    
    .quran-reader-section {
        padding: 20px 15px;
    }
    
    .quran-main-controls {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .quran-share-icons {
        gap: 10px;
    }
    
    .share-icon-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .quran-page-container {
        min-height: 400px;
        padding: 15px;
    }
    
    .quran-page-arrow {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .quran-page-arrow-left {
        right: 5px;
    }
    
    .quran-page-arrow-right {
        left: 5px;
    }
    
    .quran-nav-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .quran-page-input {
        width: 100px;
        padding: 10px 15px;
    }
    
    .back-to-top-btn {
        padding: 8px 14px;
        bottom: 15px;
        left: 5px;
        font-size: 0.85rem;
        min-width: 120px;
        gap: 5px;
    }
    
    .nav-sidebar {
        padding: 5px 6px;
    }
    
    .nav-sidebar-link {
        padding: 4px 5px;
        font-size: 0.65rem;
        min-height: 50px;
    }
    
    .nav-sidebar-link i {
        font-size: 0.9rem;
    }
    
    .nav-sidebar-text {
        font-size: 0.6rem;
    }
    
    body {
        padding-bottom: 70px;
    }
    
    .back-to-top-btn {
        bottom: 65px;
        left: 10px;
        padding: 7px 10px;
        font-size: 0.7rem;
    }
    
    .btn-radio-floating {
        bottom: 65px;
        right: 10px;
        padding: 6px 9px;
        font-size: 0.65rem;
    }
    
    .radio-floating-text {
        display: inline;
    }
    
    .back-to-top-text {
        display: inline;
    }
    
    .prayer-times-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
    
    .prayer-time-card {
        padding: 5px;
    }
    
    .countdown-value {
        font-size: 0.95rem;
        min-width: 32px;
        padding: 3px 5px;
    }
    
    .countdown-separator {
        font-size: 0.9rem;
    }
    
    .countdown-label {
        font-size: 0.65rem;
    }
    
    .next-prayer-name {
        font-size: 0.85rem;
    }
    
    .next-label {
        font-size: 0.75rem;
    }
    
    .prayer-header {
        margin-bottom: 4px;
    }
    
    .prayer-header h2 {
        font-size: 0.9rem;
        gap: 4px;
    }
    
    .prayer-header h2 i {
        font-size: 0.9rem;
    }
    
    .prayer-location {
        font-size: 0.7rem;
    }
    
    .prayer-times-section {
        padding: 5px;
        margin-top: 6px;
    }
    
    .next-prayer-container {
        padding: 5px;
        margin-bottom: 5px;
    }
    
    .next-prayer-time {
        font-size: 0.75rem;
    }
    
    .prayer-name {
        font-size: 0.65rem;
    }
    
    .prayer-time {
        font-size: 0.7rem;
    }
    
    .prayer-date {
        padding: 4px;
        font-size: 0.75rem;
    }
}

