/**
 * ============================================================================
 * نظام بناء الجداول الدراسية الذكي - ملف الأنماط الرئيسي
 * ============================================================================
 * 
 * تصميم احترافي مستوحى من التصميم العربي الحديث
 * يدعم RTL بشكل كامل مع تأثيرات بصرية متقدمة
 * 
 * @package     SmartScheduleBuilder
 * @version     1.0.0
 * ============================================================================
 */

/* ============================================================================
   0. استيراد الخطوط
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

/* ============================================================================
   1. المتغيرات والثوابت
   ============================================================================ */

:root {
    --primary-900: #1a365d;
    --primary-800: #234876;
    --primary-700: #2c5a8f;
    --primary-600: #3672a8;
    --primary-500: #4299e1;
    --primary-400: #63b3ed;
    --primary-300: #90cdf4;
    --primary-200: #bee3f8;
    --primary-100: #ebf8ff;
    
    --secondary-900: #744210;
    --secondary-800: #975a16;
    --secondary-700: #b7791f;
    --secondary-600: #d69e2e;
    --secondary-500: #ecc94b;
    --secondary-400: #f6e05e;
    --secondary-300: #faf089;
    --secondary-200: #fefcbf;
    --secondary-100: #fffff0;
    
    --success-600: #2f855a;
    --success-500: #48bb78;
    --success-400: #68d391;
    --success-100: #f0fff4;
    
    --warning-600: #c05621;
    --warning-500: #ed8936;
    --warning-400: #f6ad55;
    --warning-100: #fffaf0;
    
    --danger-600: #c53030;
    --danger-500: #f56565;
    --danger-400: #fc8181;
    --danger-100: #fff5f5;
    
    --gray-900: #1a202c;
    --gray-800: #2d3748;
    --gray-700: #4a5568;
    --gray-600: #718096;
    --gray-500: #a0aec0;
    --gray-400: #cbd5e0;
    --gray-300: #e2e8f0;
    --gray-200: #edf2f7;
    --gray-100: #f7fafc;
    --gray-50: #fafbfc;
    
    --bg-primary: linear-gradient(135deg, #1a365d 0%, #2c5a8f 50%, #234876 100%);
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.1);
    
    --font-primary: 'Tajawal', 'Segoe UI', sans-serif;
    --font-heading: 'Cairo', 'Tajawal', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(66, 153, 225, 0.3);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ============================================================================
   2. إعادة التعيين والأساسيات
   ============================================================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.7;
    color: var(--gray-800);
    background: var(--bg-primary);
    min-height: 100vh;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(66, 153, 225, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 201, 75, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(72, 187, 120, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* ============================================================================
   3. الحاوية الرئيسية
   ============================================================================ */

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

.app-wrapper {
    min-height: 100vh;
    padding: 2rem 1rem;
}

/* ============================================================================
   4. الترويسة
   ============================================================================ */

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

.header__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-500) 0%, var(--secondary-600) 100%);
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(236, 201, 75, 0.3);
    animation: float 3s ease-in-out infinite;
    font-size: 2.5rem;
}

.header__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.5rem;
}

.header__subtitle {
    font-size: 1.125rem;
    color: var(--primary-200);
    font-weight: 400;
}

/* ============================================================================
   5. البطاقات
   ============================================================================ */

.card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.card__header {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    padding: 1.5rem 2rem;
    color: white;
}

.card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card__title-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
}

.card__body {
    padding: 2rem;
}

.card__footer {
    padding: 1.5rem 2rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================================================
   6. النماذج
   ============================================================================ */

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-700);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section__title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--secondary-500);
    border-radius: var(--radius-full);
}

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

.form-group {
    position: relative;
}

.form-group__label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group__label--required::after {
    content: '*';
    color: var(--danger-500);
    margin-right: 0.25rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--gray-800);
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    appearance: none;
}

.form-control:hover {
    border-color: var(--gray-400);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.15);
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234a5568'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 1.25rem;
    padding-left: 3rem;
    cursor: pointer;
}

.form-check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    border: 2px solid transparent;
}

.form-check:hover {
    background: var(--gray-100);
}

.form-check--selected {
    background: var(--primary-100);
    border-color: var(--primary-500);
}

.form-check__input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-500);
    cursor: pointer;
}

.form-check__label {
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
}

.form-range-wrapper {
    padding: 0.5rem 0;
}

.form-range {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    outline: none;
    appearance: none;
}

.form-range::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-500);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast);
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.form-range-value {
    display: inline-block;
    background: var(--primary-500);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-help {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

/* ============================================================================
   7. الأزرار
   ============================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.5);
}

.btn--secondary {
    background: linear-gradient(135deg, var(--secondary-500) 0%, var(--secondary-600) 100%);
    color: var(--gray-900);
    box-shadow: 0 4px 15px rgba(236, 201, 75, 0.4);
}

.btn--secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 201, 75, 0.5);
}

.btn--success {
    background: linear-gradient(135deg, var(--success-500) 0%, var(--success-600) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--primary-600);
    border: 2px solid var(--primary-500);
}

.btn--outline:hover {
    background: var(--primary-500);
    color: white;
}

.btn--lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn--block {
    width: 100%;
}

.btn--loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn--loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================================================
   8. خطوات النموذج (Stepper)
   ============================================================================ */

.stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.stepper__step {
    display: flex;
    align-items: center;
    position: relative;
}

.stepper__circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.stepper__step--active .stepper__circle {
    background: var(--secondary-500);
    border-color: var(--secondary-400);
    color: var(--gray-900);
    box-shadow: 0 0 20px rgba(236, 201, 75, 0.5);
    transform: scale(1.1);
}

.stepper__step--completed .stepper__circle {
    background: var(--success-500);
    border-color: var(--success-400);
    color: white;
}

.stepper__label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    font-weight: 500;
}

.stepper__step--active .stepper__label {
    color: white;
    font-weight: 600;
}

.stepper__line {
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 0.5rem;
    border-radius: var(--radius-full);
}

.stepper__line--completed {
    background: var(--success-500);
}

/* ============================================================================
   9. الجدول الدراسي
   ============================================================================ */

.schedule {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.schedule__header {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.schedule__day-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.schedule__day-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.schedule__day-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.schedule__day-btn--active {
    background: var(--secondary-500);
    color: var(--gray-900);
}

.schedule__body {
    padding: 2rem;
}

.schedule__timeline {
    position: relative;
    padding-right: 3rem;
}

.schedule__timeline::before {
    content: '';
    position: absolute;
    right: 12px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-300) 0%, var(--primary-500) 50%, var(--primary-300) 100%);
    border-radius: var(--radius-full);
}

/* ============================================================================
   10. عناصر الجدول الزمني
   ============================================================================ */

.timeline-item {
    position: relative;
    padding: 1rem 0;
    padding-right: 3.5rem;
    animation: slideInRight 0.5s ease forwards;
    opacity: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.15s; }
.timeline-item:nth-child(3) { animation-delay: 0.2s; }
.timeline-item:nth-child(4) { animation-delay: 0.25s; }
.timeline-item:nth-child(5) { animation-delay: 0.3s; }
.timeline-item:nth-child(6) { animation-delay: 0.35s; }
.timeline-item:nth-child(7) { animation-delay: 0.4s; }
.timeline-item:nth-child(8) { animation-delay: 0.45s; }
.timeline-item:nth-child(9) { animation-delay: 0.5s; }
.timeline-item:nth-child(10) { animation-delay: 0.55s; }

.timeline-item__dot {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    z-index: 1;
}

.timeline-item--study .timeline-item__dot {
    background: var(--primary-500);
    border-color: var(--primary-400);
}

.timeline-item--break .timeline-item__dot {
    background: var(--success-500);
    border-color: var(--success-400);
}

.timeline-item--prayer .timeline-item__dot {
    background: var(--secondary-500);
    border-color: var(--secondary-400);
}

.timeline-item--school .timeline-item__dot {
    background: var(--gray-600);
    border-color: var(--gray-500);
}

.timeline-item--rest .timeline-item__dot {
    background: var(--success-400);
    border-color: var(--success-300);
}

.timeline-item__content {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    border-right: 4px solid var(--primary-500);
    transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-item__content {
    background: var(--primary-100);
    transform: translateX(-4px);
}

.timeline-item--study .timeline-item__content { border-color: var(--primary-500); }
.timeline-item--break .timeline-item__content { border-color: var(--success-500); }
.timeline-item--prayer .timeline-item__content { border-color: var(--secondary-500); }
.timeline-item--rest .timeline-item__content { border-color: var(--success-400); }

.timeline-item__time {
    font-weight: 700;
    color: var(--primary-700);
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.timeline-item__activity {
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-item__icon {
    font-size: 1.25rem;
}

.timeline-item__duration {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.timeline-item__note {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-style: italic;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--gray-300);
}

/* ============================================================================
   11. ملخص اليوم
   ============================================================================ */

.day-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed var(--gray-200);
}

.summary-card {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-fast);
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.summary-card__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.summary-card__value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-700);
}

.summary-card__label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.summary-card--primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    border: none;
}

.summary-card--primary .summary-card__value,
.summary-card--primary .summary-card__label {
    color: white;
}

/* ============================================================================
   12. التوصيات والتحذيرات
   ============================================================================ */

.recommendations {
    margin-top: 2rem;
}

.recommendations__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommendation-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    border-right: 4px solid var(--gray-300);
    transition: all var(--transition-fast);
}

.recommendation-item:hover {
    background: white;
    box-shadow: var(--shadow-md);
}

.recommendation-item--warning {
    background: var(--warning-100);
    border-color: var(--warning-500);
}

.recommendation-item--important {
    background: var(--danger-100);
    border-color: var(--danger-500);
}

.recommendation-item--success {
    background: var(--success-100);
    border-color: var(--success-500);
}

.recommendation-item--tip {
    background: var(--primary-100);
    border-color: var(--primary-500);
}

.recommendation-item__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.recommendation-item__content {
    flex: 1;
}

.recommendation-item__category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.recommendation-item__message {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.recommendation-item__action {
    font-size: 0.9rem;
    color: var(--gray-600);
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    display: inline-block;
}

/* ============================================================================
   13. شريط التقدم
   ============================================================================ */

.progress-bar {
    height: 12px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-500) 0%, var(--success-500) 100%);
    border-radius: var(--radius-full);
    transition: width 1s ease;
    position: relative;
}

.progress-bar__fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

/* ============================================================================
   14. التحميل والحالات
   ============================================================================ */

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.loading__spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.loading__text {
    font-size: 1.125rem;
    color: var(--gray-600);
    font-weight: 500;
}

.loading__subtext {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-top: 0.5rem;
}

.success-state {
    text-align: center;
    padding: 3rem 2rem;
}

.success-state__icon {
    width: 80px;
    height: 80px;
    background: var(--success-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.5s ease;
    font-size: 2.5rem;
}

.success-state__title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.success-state__message {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* ============================================================================
   15. الحركات والأنيميشن
   ============================================================================ */

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

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================================================
   16. الاستجابة للشاشات
   ============================================================================ */

@media (max-width: 768px) {
    .container { padding: 1rem; }
    .header__title { font-size: 1.75rem; }
    .card__body { padding: 1.25rem; }
    .form-grid { grid-template-columns: 1fr; }
    .stepper { flex-wrap: wrap; gap: 1rem; }
    .stepper__line { display: none; }
    .schedule__header { flex-direction: column; gap: 1rem; text-align: center; }
    .schedule__day-selector { justify-content: center; }
    .day-summary { grid-template-columns: repeat(2, 1fr); }
    .timeline-item__content { padding: 0.875rem; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .header__logo { width: 60px; height: 60px; }
    .btn--lg { padding: 1rem 1.5rem; font-size: 1rem; }
    .stepper__circle { width: 40px; height: 40px; font-size: 1rem; }
    .day-summary { grid-template-columns: 1fr; }
}

/* ============================================================================
   17. طباعة
   ============================================================================ */

@media print {
    body { background: white; color: black; }
    .header, .stepper, .btn, .card__footer { display: none; }
    .card { box-shadow: none; border: 1px solid #ddd; }
    .schedule__timeline::before { background: #333; }
    .timeline-item__content { border-color: #333; }
}
