:root {
    --primary-color: #4a9eff;
    --secondary-color: #2d2d2d;
    --text-color: #fff;
    --offline-color: #ff4444;
    --online-color: #00C851;
    --quran-bg: #333;
}

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

body {
    background-color: #1a1a1a;
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #888;
    font-size: 1.1rem;
}

.status-container {
    text-align: center;
    margin-bottom: 2rem;
}

#status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #333;
    border-radius: 20px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

#status.offline {
    color: var(--offline-color);
}

#status.online {
    color: var(--online-color);
}

.zoom-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.zoom-link:hover {
    background-color: #357abd;
}

.chat-section {
    background-color: #333;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.chat-container {
    min-height: 400px;
}

.message {
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--secondary-color);
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.message:hover {
    transform: translateX(-5px);
}

.message .author {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.message .content {
    color: #ddd;
}

.quran-section {
    background-color: var(--quran-bg);
    border-radius: 15px;
    padding: 2rem;
}

.quran-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.quran-readers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.reader {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.reader h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.reader p {
    color: #888;
    font-size: 0.9rem;
}

footer {
    text-align: center;
    margin-top: 2rem;
    color: #888;
}

/* تأثيرات إضافية */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    .quran-readers {
        grid-template-columns: 1fr;
    }
}
