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

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.logo {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    animation: float 3s ease-in-out infinite;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    animation: slideInRight 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #f8f9fa;
    font-weight: 300;
    margin-bottom: 2rem;
    animation: slideInRight 1s ease-out 0.2s both;
}

.hero-content {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    animation: slideInLeft 1s ease-out 0.4s both;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(-10px);
}

.feature-item i {
    font-size: 1.5rem;
    margin-left: 1rem;
    min-width: 30px;
}

.feature-item span {
    color: white;
    font-weight: 500;
}

/* Rules Section */
.rules-section {
    background: #f8f9fa;
    position: relative;
}

.rules-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

.rules-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.rules-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

.rules-card h3 {
    color: #495057;
    font-weight: 700;
    margin-bottom: 2rem;
}

.rules-card h3 i {
    margin-left: 0.5rem;
}

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

.rule-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.rule-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.rule-item.warning {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
}

.rule-item i {
    font-size: 1.5rem;
    margin-left: 1rem;
    margin-top: 0.25rem;
    min-width: 30px;
}

.rule-item p {
    margin: 0;
    font-weight: 500;
    color: #495057;
    line-height: 1.6;
}

/* Form Section */
.form-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #f8f9fa;
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 0);
}

.form-card {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

.form-card h3 {
    color: #495057;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.form-card h3 i {
    margin-left: 0.5rem;
    color: #667eea;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.form-label i {
    margin-left: 0.5rem;
    color: #667eea;
    min-width: 20px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: white;
}

.form-control::placeholder {
    color: #adb5bd;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-check-label {
    color: #495057;
    font-weight: 500;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-primary i {
    margin-left: 0.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
    text-align: center;
}

.footer p {
    font-weight: 500;
}

.footer i {
    margin-left: 0.5rem;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Modal Customization */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.modal-header {
    border-radius: 20px 20px 0 0;
    border-bottom: none;
}

.modal-footer {
    border-top: none;
    border-radius: 0 0 20px 20px;
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .rules-card,
    .form-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .btn-primary {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .rules-card,
    .form-card {
        padding: 1.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* Hover Effects */
.form-check:hover .form-check-label {
    color: #667eea;
}

.rule-item:hover i {
    transform: scale(1.1);
}

/* Focus States */
.form-control:focus,
.form-check-input:focus {
    outline: none;
}

/* Activities Grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.activity-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.activity-header h6 {
    color: #495057;
    font-weight: 700;
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.duration {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.activity-content {
    margin-bottom: 1rem;
}

.activity-content p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

.activity-content strong {
    color: #495057;
}

.activity-card .form-check {
    margin: 0;
    padding: 0;
}

.activity-card .form-check-input {
    margin-left: 0;
    margin-right: 0.5rem;
}

.activity-card .form-check-label {
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.activity-card .form-check-input:checked + .form-check-label {
    color: #495057;
}

/* Activity Card Animations */
.activity-card {
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.activity-card:nth-child(1) { animation-delay: 0.1s; }
.activity-card:nth-child(2) { animation-delay: 0.2s; }
.activity-card:nth-child(3) { animation-delay: 0.3s; }
.activity-card:nth-child(4) { animation-delay: 0.4s; }
.activity-card:nth-child(5) { animation-delay: 0.5s; }
.activity-card:nth-child(6) { animation-delay: 0.6s; }
.activity-card:nth-child(7) { animation-delay: 0.7s; }
.activity-card:nth-child(8) { animation-delay: 0.8s; }
.activity-card:nth-child(9) { animation-delay: 0.9s; }
.activity-card:nth-child(10) { animation-delay: 1s; }
.activity-card:nth-child(11) { animation-delay: 1.1s; }
.activity-card:nth-child(12) { animation-delay: 1.2s; }
.activity-card:nth-child(13) { animation-delay: 1.3s; }
.activity-card:nth-child(14) { animation-delay: 1.4s; }
.activity-card:nth-child(15) { animation-delay: 1.5s; }
.activity-card:nth-child(16) { animation-delay: 1.6s; }
.activity-card:nth-child(17) { animation-delay: 1.7s; }
.activity-card:nth-child(18) { animation-delay: 1.8s; }
.activity-card:nth-child(19) { animation-delay: 1.9s; }
.activity-card:nth-child(20) { animation-delay: 2.0s; }
.activity-card:nth-child(21) { animation-delay: 2.1s; }
.activity-card:nth-child(22) { animation-delay: 2.2s; }
.activity-card:nth-child(23) { animation-delay: 2.3s; }
.activity-card:nth-child(24) { animation-delay: 2.4s; }
.activity-card:nth-child(25) { animation-delay: 2.5s; }
.activity-card:nth-child(26) { animation-delay: 2.6s; }

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

/* Print Styles */
@media print {
    .hero-section,
    .footer {
        display: none;
    }
    
    .rules-section,
    .form-section {
        background: white;
    }
    
    .rules-card,
    .form-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
} 

/* أنماط إضافية للفورم */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.has-restored-data {
    border-color: #28a745;
    background-color: #f8fff9;
}

.form-control.has-restored-data:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.invalid-feedback i {
    margin-left: 0.25rem;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-label i {
    margin-left: 0.5rem;
    color: #007bff;
}

/* أنماط الأنشطة */
.activity-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.activity-card.selected {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.activity-card.selected .activity-header h6 {
    color: #007bff;
}

.activity-card.has-restored-data {
    border-color: #28a745;
    background-color: #f8fff9;
}

.activity-card.has-restored-data .activity-header h6 {
    color: #28a745;
}

/* أنماط الاختيارات */
.form-check {
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 2px solid transparent;
}

.form-check:hover {
    background-color: #f8f9fa;
}

.form-check.selected {
    border-color: #007bff;
    background-color: #e7f3ff;
}

.form-check.has-restored-data {
    border-color: #28a745;
    background-color: #f8fff9;
}

.form-check-input:checked + .form-check-label {
    color: #007bff;
    font-weight: 600;
}

/* أنماط الأزرار */
.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* أنماط الرسائل */
.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
    margin: -0.75rem -0.75rem -0.75rem auto;
}

.alert i {
    margin-left: 0.5rem;
}

.alert small {
    font-size: 0.875em;
    opacity: 0.8;
}

/* أنماط التحميل */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #007bff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* أنماط متجاوبة */
@media (max-width: 768px) {
    .activity-card {
        margin-bottom: 1rem;
    }
    
    .form-check {
        margin-bottom: 0.5rem;
    }
    
    .btn-primary,
    .btn-outline-secondary {
        width: 100%;
        margin-top: 1rem;
    }
    
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9em;
    }
}

/* أنماط للطباعة */
@media print {
    .btn-primary,
    .btn-outline-secondary,
    .form-check-input,
    .alert {
        display: none;
    }
    
    .activity-card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }
} 

/* أنماط إضافية للتحقق من صحة البيانات */
.form-control:valid {
    border-color: #28a745;
}

.form-control:valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* تأثيرات بصرية للحقول */
.form-control {
    transition: all 0.3s ease;
}

.form-control:focus {
    transform: translateY(-1px);
}

/* أنماط للرسائل المخصصة */
.custom-error {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.custom-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.custom-info {
    background: linear-gradient(45deg, #17a2b8, #138496);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
} 

/* أنماط خاصة بالبيانات المستعادة */
.restored-data-indicator {
    position: relative;
}

.restored-data-indicator::before {
    content: '🔄';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    z-index: 10;
}

/* تأثيرات للبيانات المستعادة */
.form-control.has-restored-data,
.activity-card.has-restored-data,
.form-check.has-restored-data {
    animation: restoredDataPulse 2s ease-in-out;
}

@keyframes restoredDataPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
} 