﻿/* ===== إعدادات عامة ===== */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #0ea5e9;
    --gradient-main: linear-gradient(135deg, #4f46e5, #0ea5e9);
    --gradient-card: linear-gradient(145deg, #ffffff, #f8fafc);
    --shadow-sm: 0 2px 8px rgba(79, 70, 229, 0.1);
    --shadow-md: 0 8px 30px rgba(79, 70, 229, 0.15);
    --shadow-lg: 0 15px 50px rgba(79, 70, 229, 0.2);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f1f5f9;
    min-height: 100vh;
    color: #1e293b;
}

/* ===== شريط التنقل العصري ===== */
.navbar-custom {
    background: var(--gradient-main) !important;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

    .navbar-custom .navbar-brand {
        font-size: 1.8rem;
        font-weight: 800;
        color: white !important;
        text-shadow: 0 2px 10px rgba(0,0,0,0.2);
        transition: var(--transition);
    }

        .navbar-custom .navbar-brand:hover {
            transform: scale(1.05);
        }

    .navbar-custom .nav-link {
        color: rgba(255,255,255,0.9) !important;
        font-weight: 600;
        padding: 0.5rem 1.2rem !important;
        border-radius: 50px;
        transition: var(--transition);
        position: relative;
    }

        .navbar-custom .nav-link:hover {
            color: white !important;
            background: rgba(255,255,255,0.2);
            transform: translateY(-2px);
        }

        .navbar-custom .nav-link::after {
            content: '';
            position: absolute;
            bottom: 5px;
            left: 50%;
            width: 0;
            height: 3px;
            background: white;
            border-radius: 10px;
            transition: var(--transition);
            transform: translateX(-50%);
        }

        .navbar-custom .nav-link:hover::after {
            width: 60%;
        }

/* ===== بطاقات المراحل ===== */
.grade-card {
    background: var(--gradient-card);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    position: relative;
}

    .grade-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: var(--gradient-main);
    }

    .grade-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
    }

    .grade-card .card-header {
        background: white !important;
        border: none;
        padding: 1.5rem;
        text-align: center;
    }

        .grade-card .card-header h3 {
            font-weight: 800;
            color: var(--primary-color);
            margin: 0;
            font-size: 1.5rem;
        }

    .grade-card .card-body {
        padding: 1.5rem;
    }

/* ===== أزرار الفصول ===== */
.btn-class {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    font-weight: 600;
    color: #1e293b;
    transition: var(--transition);
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .btn-class:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
        transform: translateY(-3px);
        box-shadow: var(--shadow-sm);
    }

    .btn-class::before {
        content: '📖';
        margin-left: 8px;
    }

/* ===== استبيان التقييم ===== */
.feedback-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: var(--transition);
}

    .feedback-card:hover {
        border-color: var(--primary-color);
        box-shadow: var(--shadow-md);
    }

    .feedback-card h5 {
        font-size: 1.3rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 1.5rem;
    }

    .feedback-card .form-select {
        border: 2px solid #e2e8f0;
        border-radius: var(--radius-sm);
        padding: 0.8rem 1.2rem;
        font-weight: 500;
        transition: var(--transition);
        background-color: white;
    }

        .feedback-card .form-select:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
        }

.btn-primary-custom {
    background: var(--gradient-main);
    border: none;
    color: white;
    font-weight: 700;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

    .btn-primary-custom:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
        color: white;
    }

/* ===== بطاقات المقررات ===== */
.material-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
}

    .material-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
        border-color: var(--primary-color);
    }

    .material-card .card-body {
        padding: 1.5rem;
        text-align: center;
    }

    .material-card .card-title {
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }

    .material-card .btn-pdf {
        background: linear-gradient(135deg, #dc2626, #b91c1c);
        border: none;
        color: white;
        font-weight: 600;
        padding: 0.6rem 1.5rem;
        border-radius: 50px;
        transition: var(--transition);
        box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    }

        .material-card .btn-pdf:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
        }

    .material-card video {
        border-radius: var(--radius-sm);
        width: 100%;
        max-height: 200px;
        object-fit: cover;
    }

/* ===== لوحة التحكم ===== */
.dashboard-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: var(--transition);
    overflow: hidden;
}

    .dashboard-card:hover {
        border-color: var(--primary-color);
        box-shadow: var(--shadow-md);
    }

    .dashboard-card .card-header {
        background: var(--gradient-main) !important;
        color: white !important;
        padding: 1.2rem 1.5rem;
        border: none;
    }

        .dashboard-card .card-header h5 {
            font-weight: 700;
            margin: 0;
        }

    .dashboard-card .table {
        margin-bottom: 0;
    }

        .dashboard-card .table th {
            border-top: none;
            font-weight: 700;
            color: #475569;
        }

/* ===== أزرار الأدمن ===== */
.btn-admin {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-admin-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

    .btn-admin-danger:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
        color: white;
    }

.btn-admin-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

    .btn-admin-success:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
        color: white;
    }

/* ===== شريط التمرير مع تأثير ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

    .scroll-animate.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ===== تذييل الصفحة ===== */
.footer-custom {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: rgba(255,255,255,0.8);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 4px solid var(--primary-color);
}

    .footer-custom a {
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        transition: var(--transition);
    }

        .footer-custom a:hover {
            color: white;
        }

/* ===== تأثيرات إضافية ===== */
.glow-effect {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(79, 70, 229, 0.2);
    }

    to {
        box-shadow: 0 0 30px rgba(79, 70, 229, 0.4);
    }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}
