/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    min-height: 100vh;
}

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

/* الهيدر */
.header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.main-title i {
    margin-left: 15px;
    color: #ffd700;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* المحتوى الرئيسي */
.main-content {
    padding: 2rem 0;
    background: rgba(255,255,255,0.95);
    min-height: calc(100vh - 200px);
}

/* لوحة القيادة */
.dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* عداد المياه */
.water-counter {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    border-radius: 15px;
    color: white;
}

.water-counter h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.water-counter h3 i {
    margin-left: 10px;
    color: #00cec9;
}

.water-display {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
}

.water-progress {
    width: 100%;
    height: 20px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    margin: 1rem 0;
    overflow: hidden;
}

.water-fill {
    height: 100%;
    background: linear-gradient(90deg, #00cec9, #55efc4);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

/* التذكيرات */
.reminders {
    padding: 1rem;
}

.reminders h3 {
    margin-bottom: 1rem;
    color: #2d3436;
    font-size: 1.3rem;
}

.reminders h3 i {
    margin-left: 10px;
    color: #e17055;
}

.reminder-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.reminder-item:hover {
    background: #e9ecef;
}

.reminder-checkbox {
    margin-left: 15px;
    width: 20px;
    height: 20px;
    accent-color: #00b894;
}

.reminder-item label {
    cursor: pointer;
    color: #2d3436;
    font-weight: 500;
}

/* أزرار */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,184,148,0.4);
}

.btn-favorite {
    background: linear-gradient(135deg, #fd79a8, #fdcb6e);
    color: white;
    padding: 8px 15px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.btn-favorite.active {
    background: linear-gradient(135deg, #e84393, #fd79a8);
    transform: scale(1.05);
}

/* عناوين الأقسام */
.section-title {
    font-size: 2rem;
    color: #2d3436;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.section-title i {
    margin-left: 15px;
    color: #e17055;
}

/* الجدول الأسبوعي */
.weekly-schedule {
    margin-bottom: 3rem;
}

.days-container {
    display: grid;
    gap: 2rem;
}

.day-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.day-header {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.day-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.day-date {
    opacity: 0.9;
    font-size: 1rem;
}

.meals-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.meal-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.meal-card:hover {
    border-color: #74b9ff;
    transform: scale(1.02);
}

.meal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 1rem;
    text-align: center;
}

.breakfast .meal-title {
    color: #e17055;
}

.lunch .meal-title {
    color: #00b894;
}

.meal-title i {
    margin-left: 10px;
}

.meal-content {
    line-height: 1.8;
    color: #636e72;
}

.lunch-options {
    margin-top: 1rem;
}

.lunch-option {
    background: white;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-radius: 10px;
    border-right: 4px solid #00b894;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.lunch-option:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.lunch-option.selected {
    background: #d1f2eb;
    border-right-color: #00b894;
}

.lunch-option::before {
    content: counter(option-counter);
    counter-increment: option-counter;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #00b894;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.lunch-options {
    counter-reset: option-counter;
}

/* الملاحظات المهمة */
.important-notes {
    margin-bottom: 3rem;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.note-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-top: 4px solid transparent;
}

.note-card:nth-child(1) { border-top-color: #fdcb6e; }
.note-card:nth-child(2) { border-top-color: #74b9ff; }
.note-card:nth-child(3) { border-top-color: #fd79a8; }
.note-card:nth-child(4) { border-top-color: #00b894; }
.note-card:nth-child(5) { border-top-color: #6c5ce7; }
.note-card:nth-child(6) { border-top-color: #e17055; }

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

.note-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #6c5ce7;
}

.note-card h3 {
    font-size: 1.3rem;
    color: #2d3436;
    margin-bottom: 1rem;
    font-weight: 600;
}

.note-card p {
    color: #636e72;
    line-height: 1.6;
}

/* الفوتر */
.footer {
    background: #2d3436;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .meals-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .notes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .day-card {
        padding: 1rem;
    }
    
    .lunch-option::before {
        position: static;
        margin-bottom: 10px;
        transform: none;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .day-name {
        font-size: 1.5rem;
    }
}

/* تأثيرات الحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.day-card {
    animation: fadeInUp 0.6s ease forwards;
}

.day-card:nth-child(1) { animation-delay: 0.1s; }
.day-card:nth-child(2) { animation-delay: 0.2s; }
.day-card:nth-child(3) { animation-delay: 0.3s; }
.day-card:nth-child(4) { animation-delay: 0.4s; }
.day-card:nth-child(5) { animation-delay: 0.5s; }
.day-card:nth-child(6) { animation-delay: 0.6s; }
.day-card:nth-child(7) { animation-delay: 0.7s; }

/* تأثيرات التفاعل */
.lunch-option:active {
    transform: scale(0.98);
}

.btn:active {
    transform: scale(0.95);
}

/* تحسينات إضافية */
.special-note {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    color: #2d3436;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 10px;
    font-weight: 500;
}

.psyllium-note {
    background: linear-gradient(135deg, #81ecec, #74b9ff);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    font-weight: 500;
    text-align: center;
}

.psyllium-note i {
    margin-left: 8px;
}