﻿/* ملف CSS منفصل للـ Layout */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f8f9fa;
    line-height: 1.8;
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ffffff, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white !important;
        transform: translateY(-2px);
    }

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    }

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #219653 100%);
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-success:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    }

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    margin-bottom: 1.5rem;
}

    .card:hover {
        transform: translateY(-5px);
    }

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    border-radius: 15px 15px 0 0 !important;
    padding: 1.5rem;
    border-bottom: none;
}

.alert {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-right: 5px solid var(--success-color);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-right: 5px solid var(--danger-color);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-right: 5px solid #17a2b8;
    color: #0c5460;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-right: 5px solid var(--warning-color);
    color: #856404;
}

.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
        transform: translateY(-2px);
    }

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: white;
    padding: 2.5rem 0 2rem 0;
    margin-top: 3rem;
}

.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    animation: fadeInAnimation 0.3s ease;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .dropdown-item:hover {
        background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
        color: white;
        transform: translateX(-5px);
    }

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-left: 0.5rem;
}

.badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    border-radius: 50px;
}

/* أيقونات التواصل الاجتماعي */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

    .social-icon:hover {
        transform: translateY(-4px) scale(1.1);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
        border-color: white;
    }

.social-facebook {
    background: linear-gradient(135deg, #1877F2, #0D5CB6);
}

.social-instagram {
    background: linear-gradient(135deg, #E4405F, #C13584, #833AB4, #5851DB);
}

.social-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

/* تصميم بطاقات الاتصال */
.contact-card {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .contact-card:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(-5px);
    }

.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info {
    flex-grow: 1;
}

.contact-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 3px;
}

.contact-value {
    font-weight: 600;
    font-size: 15px;
}

.btn-whatsapp-direct {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
    text-align: center;
    display: block;
    color: white;
    text-decoration: none;
}

    .btn-whatsapp-direct:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
        color: white;
    }

/* تصحيح اسم keyframe */
@@keyframes fadeInAnimation {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-alert {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    min-width: 300px;
    animation: slideInAnimation 0.5s ease;
}

@@keyframes slideInAnimation {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.progress-indicator {
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--success-color));
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    z-index: 9999;
    transition: width 0.3s ease;
}

.required-field::after {
    content: " *";
    color: var(--danger-color);
    font-weight: bold;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #e0e0e0;
}

/* تحسينات للهواتف */
@@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.4rem;
    }

    .card {
        margin: 1rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .floating-alert {
        left: 10px;
        right: 10px;
        min-width: auto;
    }

    .social-icons {
        justify-content: center;
    }

    .contact-card {
        padding: 10px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        margin-left: 10px;
        font-size: 18px;
    }

    .contact-value {
        font-size: 14px;
    }
}
