/* assets/css/style.css - Premium Islamic Dashboard CSS */
:root {
    --primary-color: #006644;
    --primary-dark: #004d33;
    --primary-light: #009966;
    --gold-color: #D4AF37;
    --gold-light: #e8c84a;
    --white-color: #ffffff;
    --light-bg: #f5f5f5;
    --dark-bg: #1a1a1a;
    --dark-text: #e0e0e0;
    --text-color: #333333;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --font-arabic: 'Amiri', 'Scheherazade', 'Traditional Arabic', serif;
    --font-english: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --overlay-opacity: 0.55;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    --glass-blur: 12px;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #006644, #004d33);
    --gradient-gold: linear-gradient(135deg, #D4AF37, #e8c84a);
    --gradient-green: linear-gradient(135deg, #00a86b, #006644);
    --gradient-blue: linear-gradient(135deg, #4a90d9, #357abd);
    --gradient-purple: linear-gradient(135deg, #9b59b6, #8e44ad);
    --gradient-orange: linear-gradient(135deg, #f39c12, #e67e22);
    --gradient-red: linear-gradient(135deg, #e74c3c, #c0392b);
    
    /* Card radius */
    --card-radius: 20px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --light-bg: #1a1a1a;
    --white-color: #2d2d2d;
    --text-color: #e0e0e0;
    --border-color: #444;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    --overlay-opacity: 0.7;
    --glass-bg: rgba(30, 30, 30, 0.25);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BACKGROUND ===== */
html {
    height: 100%;
}

body {
    font-family: var(--font-english);
    color: var(--text-color);
    transition: var(--transition);
    line-height: 1.6;
    min-height: 100vh;
    background-image: url('uploads/makkah.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    background-color: #003322;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, var(--overlay-opacity));
    backdrop-filter: blur(2px);
    z-index: 0;
    pointer-events: none;
}

/* ===== GLASSMORPHISM UTILITY ===== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--card-radius);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--glass-shadow);
    border-radius: var(--card-radius);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background: rgba(0, 40, 20, 0.85) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--white-color);
    padding: 0.8rem 2rem;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(0, 40, 20, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.logo span {
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--white-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--gold-color);
}

.nav-links a i {
    font-size: 1rem;
}

.nav-links .btn-login {
    background: var(--gradient-gold);
    color: var(--primary-dark) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
}

.nav-links .btn-login:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

/* Dark Mode Toggle */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white-color);
    padding: 0.5rem 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: rotate(20deg);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* ===== CARDS ===== */
.card {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.12);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Dark mode cards */
[data-theme="dark"] .card {
    background: rgba(25, 25, 25, 0.85) !important;
    border: 1px solid rgba(212, 175, 55, 0.08);
}

[data-theme="dark"] .card:hover {
    background: rgba(40, 40, 40, 0.95) !important;
}

/* ===== GRID LAYOUTS ===== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ===== WELCOME CARD ===== */
.welcome-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.85), rgba(0, 50, 0, 0.85)) !important;
    color: white;
    border: 2px solid var(--gold-color) !important;
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent);
    border-radius: 50%;
}

.welcome-card h1 {
    color: var(--gold-color);
    font-size: 2.2rem;
    font-weight: 700;
}

.welcome-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
}

.welcome-card .developer-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    padding: 0.2rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gold-light);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* ===== STATISTICS CARDS ===== */
.stat-card {
    text-align: center;
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.stat-card .stat-icon {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-color);
    display: block;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* ===== HADITH CARD ===== */
.hadith-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.92), rgba(232, 200, 74, 0.92)) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: var(--card-radius);
    color: var(--primary-dark);
    text-align: center;
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 25px rgba(212, 175, 55, 0.3);
    transition: var(--transition);
}

.hadith-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(212, 175, 55, 0.4);
}

[data-theme="dark"] .hadith-card {
    background: linear-gradient(135deg, rgba(180, 140, 40, 0.92), rgba(160, 120, 30, 0.92)) !important;
}

.hadith-card .hadith-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.8;
    font-style: italic;
    padding: 0.5rem 1rem;
    border-left: 3px solid var(--primary-dark);
}

.hadith-card .hadith-source {
    font-style: italic;
    color: #555;
}

/* ===== FEATURES CARD ===== */
.features-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.85), rgba(180, 150, 40, 0.85)) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: var(--card-radius);
    padding: 1.5rem;
}

.features-card h3 {
    color: var(--primary-dark);
    text-align: center;
}

[data-theme="dark"] .features-card {
    background: linear-gradient(135deg, rgba(180, 140, 40, 0.85), rgba(160, 120, 30, 0.85)) !important;
}

/* ===== FEATURE ITEMS ===== */
.feature-item {
    text-align: center;
    padding: 1.2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-3px);
    background: rgba(212, 175, 55, 0.05);
}

.feature-item .feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 0.2rem;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== QURAN READER ===== */
.quran-reader {
    font-size: 1.1rem;
}

.ayah-container {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.ayah-container:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.ayah-arabic {
    font-family: var(--font-arabic);
    font-size: 1.8rem;
    line-height: 2.2;
    text-align: right;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.ayah-transliteration {
    color: #666;
    font-style: italic;
    margin-bottom: 0.3rem;
}

.ayah-translation {
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.ayah-number {
    display: inline-block;
    background: var(--gold-color);
    color: white;
    padding: 0.1rem 0.6rem;
    border-radius: 50%;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* ===== TRANSLATION TOGGLE ===== */
.translation-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.translation-toggle label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.3rem 0.8rem;
    background: var(--light-bg);
    border-radius: 20px;
    transition: var(--transition);
}

.translation-toggle label:hover {
    background: var(--gold-color);
    color: white;
}

/* ===== AUDIO PLAYER ===== */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 2rem;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    border-top: 2px solid var(--gold-color);
    transition: var(--transition);
}

.audio-player.active {
    display: block;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.audio-player .audio-controls {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-player audio {
    flex: 1;
    width: 100%;
}

.audio-player .audio-info {
    color: white;
    font-size: 0.85rem;
    min-width: 120px;
}

/* ===== CHAT SYSTEM ===== */
.chat-container {
    height: 500px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(245, 245, 245, 0.7);
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

[data-theme="dark"] .chat-container {
    background: rgba(30, 30, 30, 0.7);
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .chat-message {
    background: rgba(50, 50, 50, 0.9);
}

.chat-message.own {
    background: var(--primary-color);
    color: white;
    margin-left: 20%;
}

.chat-message .sender {
    font-weight: bold;
    color: var(--gold-color);
    margin-right: 0.5rem;
}

.chat-message .time {
    font-size: 0.8rem;
    color: #999;
    float: right;
}

.chat-input {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
}

.chat-input input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .chat-input input {
    background: rgba(50, 50, 50, 0.9);
    color: white;
}

.chat-input button {
    padding: 0.8rem 2rem;
    background: var(--gold-color);
    color: var(--primary-dark);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.chat-input button:hover {
    background: var(--gold-light);
    transform: scale(1.02);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .form-group input {
    background: rgba(50, 50, 50, 0.9);
    color: white;
}

.form-group input:focus {
    border-color: var(--gold-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: var(--gradient-primary);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 100, 68, 0.4);
}

.btn-glass {
    padding: 0.5rem 1.2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-glass:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.05);
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
}

.btn-gold:hover {
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

/* ===== PROFILE ===== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
    flex-shrink: 0;
    position: relative;
}

.profile-avatar .online-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background: #51cf66;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.profile-info h2 {
    margin-bottom: 0.5rem;
}

/* ===== PRAYER TIMES ===== */
.prayer-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.prayer-item {
    text-align: center;
    padding: 1rem;
    background: rgba(245, 245, 245, 0.7);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--gold-color);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.prayer-item:hover {
    transform: translateY(-3px);
    background: rgba(212, 175, 55, 0.1);
}

[data-theme="dark"] .prayer-item {
    background: rgba(40, 40, 40, 0.7);
}

.prayer-item .prayer-name {
    font-weight: 600;
    color: var(--gold-color);
}

.prayer-item .prayer-time {
    font-size: 1.2rem;
    font-weight: 700;
}

/* ===== SURAH SELECTOR ===== */
.surah-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.surah-selector select {
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    flex: 1;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .surah-selector select {
    background: rgba(50, 50, 50, 0.9);
    color: white;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-bar input {
    width: 100%;
    padding: 0.8rem 1rem;
    padding-right: 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .search-bar input {
    background: rgba(50, 50, 50, 0.9);
    color: white;
}

.search-bar .search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* ===== TASBIH ===== */
.tasbih-container {
    text-align: center;
    padding: 1.5rem;
}

.tasbih-counter {
    font-size: 4rem;
    font-weight: 700;
    color: var(--gold-color);
    margin: 1rem 0;
    font-family: 'Amiri', serif;
}

.tasbih-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
    position: relative;
    user-select: none;
}

.tasbih-circle:active {
    transform: scale(0.92);
}

.tasbih-circle .tasbih-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.tasbih-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== LOADING SPINNER ===== */
.spinner {
    border: 3px solid var(--light-bg);
    border-top: 3px solid var(--gold-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-bg);
    border-top: 4px solid var(--gold-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ===== TOAST MESSAGES ===== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    color: white;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    max-width: 400px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.toast-success {
    background: rgba(81, 207, 102, 0.95);
}

.toast-error {
    background: rgba(255, 107, 107, 0.95);
}

.toast-info {
    background: rgba(77, 171, 247, 0.95);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== SKELETON LOADING ===== */
.skeleton {
    background: linear-gradient(90deg, var(--light-bg) 25%, var(--border-color) 50%, var(--light-bg) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== DEVELOPER CREDIT ===== */
.developer-credit {
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    border-top: 2px solid var(--gold-color);
    color: var(--gold-color);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.55);
    border-radius: var(--card-radius);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.developer-credit a {
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 600;
}

.developer-credit a:hover {
    text-decoration: underline;
}

.developer-credit .heart {
    color: #ff4444;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

[data-theme="dark"] .developer-credit {
    background: rgba(0, 0, 0, 0.7);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
    
    .header {
        padding: 0.5rem 1rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .nav-links a {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .nav-links a span {
        display: none;
    }
    
    .container {
        padding: 0 0.8rem;
        margin: 1rem auto;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .chat-message.own {
        margin-left: 10%;
    }
    
    .quran-reader {
        font-size: 0.9rem;
    }
    
    .ayah-arabic {
        font-size: 1.4rem;
    }
    
    .welcome-card h1 {
        font-size: 1.5rem;
    }
    
    .stat-card .stat-number {
        font-size: 1.5rem;
    }
    
    .prayer-times {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .audio-player {
        padding: 0.5rem 1rem;
    }
    
    .audio-player .audio-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .audio-player .audio-info {
        min-width: auto;
        font-size: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stat-card .stat-number {
        font-size: 1.2rem;
    }
    
    .prayer-times {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .prayer-item {
        padding: 0.6rem;
    }
    
    .prayer-item .prayer-time {
        font-size: 0.9rem;
    }
    
    .hadith-card .hadith-text {
        font-size: 1rem;
    }
    
    .tasbih-circle {
        width: 120px;
        height: 120px;
    }
    
    .tasbih-counter {
        font-size: 3rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}
/* assets/css/style.css - Add these styles */

/* Audio Player Styles */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white-color);
    padding: 0.8rem 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    border-top: 3px solid var(--gold-color);
    transition: all 0.3s ease;
}

.audio-player.hidden {
    transform: translateY(100%);
}

.audio-player audio {
    width: 100%;
    max-width: 600px;
    height: 40px;
    border-radius: 20px;
}

.audio-player audio::-webkit-media-controls-panel {
    background: var(--light-bg);
}

.audio-player .audio-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.audio-player .audio-info .title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    min-width: 150px;
}

.audio-player .audio-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.audio-player .audio-controls button {
    padding: 0.3rem 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    background: var(--light-bg);
    color: var(--text-color);
}

.audio-player .audio-controls button:hover {
    transform: scale(1.05);
    background: var(--gold-color);
    color: white;
}

.audio-player .audio-controls .btn-download {
    background: var(--primary-color);
    color: white;
}

.audio-player .audio-controls .btn-download:hover {
    background: var(--primary-dark);
}

/* Audio button on ayahs */
.audio-btn {
    padding: 0.2rem 0.8rem !important;
    font-size: 0.8rem !important;
    border-radius: 20px !important;
}

.audio-btn:hover {
    transform: scale(1.05);
}

/* Playlist progress */
.audio-progress {
    font-size: 0.8rem;
    color: #999;
    margin-left: 0.5rem;
}

/* Loading spinner for audio */
.audio-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-bg);
    border-top: 2px solid var(--gold-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive audio player */
@media (max-width: 768px) {
    .audio-player {
        padding: 0.5rem 1rem;
    }
    
    .audio-player .audio-info {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .audio-player .audio-info .title {
        font-size: 0.8rem;
        min-width: auto;
        text-align: center;
    }
    
    .audio-player audio {
        height: 35px;
    }
    
    .audio-player .audio-controls button {
        padding: 0.2rem 0.5rem;
        font-size: 0.9rem;
    }
}

.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.3s; }