/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* صفحة تسجيل الدخول */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    backdrop-filter: blur(10px);
}

.login-header {
    margin-bottom: 30px;
}

.login-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.login-header h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-header p {
    color: #666;
    font-size: 1.1rem;
}

.google-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 20px;
    background: #4285f4;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.google-login-btn:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(66, 133, 244, 0.3);
}

.google-login-btn i {
    margin-left: 10px;
    font-size: 1.2rem;
}

.login-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.login-info p {
    color: #666;
    font-size: 0.9rem;
}

.login-info i {
    color: #667eea;
    margin-left: 5px;
}

.admin-login-section {
    margin-top: 20px;
    text-align: center;
}

.admin-login-section hr {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 20px 0;
}

.admin-login-section p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.admin-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.admin-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 53, 69, 0.3);
    color: white;
    text-decoration: none;
}

.admin-login-btn i {
    font-size: 1.1rem;
}

.login-footer {
    color: #999;
    font-size: 0.9rem;
}

/* الهيدر */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header h1 i {
    font-size: 2.5rem;
    color: #ffd700;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* المحتوى الرئيسي */
.main-content {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
}

/* آية اليوم */
.today-verse {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    text-align: center;
}

.today-verse h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.today-verse h2 i {
    color: #8b4513;
}

.verse-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.verse-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.verse-reference {
    font-size: 1rem;
    color: #667eea;
    font-weight: 600;
    font-style: italic;
}

/* المواعيد المتاحة */
.available-appointments {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.available-appointments h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.available-appointments h2 i {
    color: #667eea;
}

.appointments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.appointment-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.appointment-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.1);
}

.appointment-date, .appointment-time, .appointment-slots {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #555;
    font-weight: 500;
}

.appointment-date i, .appointment-time i, .appointment-slots i {
    color: #667eea;
    width: 20px;
}

.book-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.full-slot {
    display: block;
    text-align: center;
    background: #dc3545;
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 15px;
}

/* الحجوزات السابقة */
.previous-bookings {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.previous-bookings h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.previous-bookings h2 i {
    color: #667eea;
}

.bookings-list {
    display: grid;
    gap: 15px;
}

.booking-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.booking-date, .booking-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-weight: 500;
}

.booking-date i, .booking-time i {
    color: #667eea;
}

.status-attended {
    background: #28a745;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-pending {
    background: #ffc107;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* التدريبات الروحية */
.spiritual-exercises {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.spiritual-exercises h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spiritual-exercises h2 i {
    color: #667eea;
}

.exercises-list {
    display: grid;
    gap: 20px;
}

.exercise-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.exercise-content h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.exercise-content p {
    color: #666;
    margin-bottom: 20px;
}

.exercise-items {
    display: grid;
    gap: 10px;
}

.exercise-item-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.item-text {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.complete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.complete-btn.completed {
    background: #28a745;
}

.complete-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* نموذج الملف الشخصي */
.profile-form-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.profile-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.profile-form h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.profile-form h2 i {
    color: #667eea;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* تحسين تخطيط النموذج للشاشات الكبيرة */
@media (min-width: 1200px) {
    .profile-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: start;
    }
    
    .profile-form h2 {
        grid-column: 1 / -1;
    }
    
    .form-actions {
        grid-column: 1 / -1;
    }
    
    .marriage-fields {
        grid-column: 1 / -1;
    }
    
    .student-fields {
        grid-column: 1 / -1;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9rem;
}

.student-fields,
.marriage-fields {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    border: 2px solid #e9ecef;
}

/* تحسين مظهر النموذج للشاشات الكبيرة */
@media (min-width: 1200px) {
    .student-fields,
    .marriage-fields {
        padding: 30px;
        margin-top: 30px;
    }
    
    .form-group {
        margin-bottom: 25px;
    }
    
    .form-group label {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 15px 18px;
        font-size: 1.05rem;
    }
}

.marriage-fields h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.marriage-fields h3 i {
    color: #e91e63;
}

.children-fields {
    margin-top: 20px;
}

.child-field {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.child-field h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.image-preview {
    margin-top: 10px;
    max-width: 200px;
}

.image-preview img {
    width: 100%;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* الاستجابة للشاشات المختلفة */
/* للأجهزة اللوحية */
@media (max-width: 1024px) {
    .profile-form {
        max-width: 95%;
        padding: 30px;
    }
    
    .profile-form-container {
        padding: 0 15px;
    }
}

/* للأجهزة المحمولة */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .booking-item {
        flex-direction: column;
        text-align: center;
    }
    
    .exercise-item-detail {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .appointments-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-form {
        padding: 20px;
        max-width: 100%;
        margin: 0 10px;
    }
    
    .profile-form-container {
        padding: 0 10px;
    }
    
    .container {
        padding: 0 10px;
    }
}

/* للأجهزة الصغيرة جداً */
@media (max-width: 480px) {
    .profile-form {
        padding: 15px;
        margin: 0 5px;
    }
    
    .profile-form-container {
        padding: 0 5px;
    }
    
    .container {
        padding: 0 5px;
    }
    
    .profile-form h2 {
        font-size: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
}

/* تأثيرات إضافية */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content > * {
    animation: fadeIn 0.6s ease-out;
}

/* ألوان إضافية للتصميم المسيحي */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #ffd700;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
}
