@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    direction: rtl;
}

.auth-container {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.auth-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #007bff;
    outline: none;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #0056b3;
}

.alert {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.alert-success { background: #d4edda; color: #155724; }
.alert-danger { background: #f8d7da; color: #721c24; }
/* ستايل الـ Dock السفلي العائم - حصري للمنصة */
.futuristic-dock {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: rgba(255, 255, 255, 0.65); /* زجاج شفاف */
    backdrop-filter: blur(20px) saturate(180%); /* فلتر ضبابي بلوري ثقيل */
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 10px 25px;
    border-radius: 30px; /* أطراف دائرية بالكامل لكبسولة عائمة */
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 99999; /* لضمان ظهوره فوق أي محتوى */
    direction: rtl;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* تأثير عند تمرير الماوس على الـ Navbar نفسه بيخليه يرتفع وينبض خفيف */
.futuristic-dock:hover {
    bottom: 28px;
    box-shadow: 0 20px 45px rgba(0, 75, 255, 0.12);
    background: rgba(255, 255, 255, 0.75);
}

/* ستايل العنصر أو الأيقونة داخل الشريط */
.dock-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* حجم وحركة الأيقونة الإيموجي أو الفيكتور */
.dock-item .icon-wrapper {
    font-size: 22px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

/* النص اللي تحت الأيقونة بيظهر بأنيميشن ناعم جداً */
.dock-text {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-top: 2px;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 2;
}

/* --- هنا السحر والأنيميشن الحصري الحركي الحسي (Micro-interactions) --- */
.dock-item:hover .icon-wrapper {
    transform: translateY(-12px) scale(1.35); /* الأيقونة بتطير لفوق وتكبر بشكل مبهج */
}

.dock-item:hover .dock-text {
    color: #004bff;
    opacity: 1;
    transform: scale(1.05);
}

/* ستايل العنصر النشط (Active) الصفحة المفتوحة حالياً */
.dock-item.active .icon-wrapper {
    transform: translateY(-6px) scale(1.15);
}

.dock-item.active .dock-text {
    color: #004bff;
    font-weight: bold;
}

/* تأثير الـ المضيء خلف العنصر النشط */
.dock-item.active::before {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 6px;
    height: 6px;
    background: #004bff;
    border-radius: 50%;
    box-shadow: 0 0 10px #004bff, 0 0 20px #004bff;
    animation: pulseGlow 2s infinite;
}

/* حركة نبض النيون النقطي */
@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.4); opacity: 1; }
    100% { transform: scale(1); opacity: 0.6; }
}

/* تحسينات إضافية لزر الخروج */
.dock-item.logout-item:hover .dock-text { color: #ef4444; }

/* متجاوب تماماً مع شاشات الموبايل الصغيرة */
@media (max-width: 480px) {
    .futuristic-dock {
        bottom: 15px;
        padding: 8px 15px;
        gap: 8px;
        width: 90%; /* بياخد شكل كبسولة عريضة على الموبايل */
        justify-content: space-around;
        border-radius: 24px;
    }
    .dock-item .icon-wrapper { font-size: 20px; }
    .dock-item:hover .icon-wrapper { transform: translateY(-8px) scale(1.2); }
}
.course-card {
    /* الأكواد القديمة بتاعتك زي ما هي، بس ضيف دول معاهم */
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
}
.course-card:hover {
    transform: translateY(-8px) rotateX(4deg) rotateY(-4deg); /* كارت الكورس بيميل بزاوية 3D حية ومعاها ظل نيون */
    box-shadow: 0 20px 40px rgba(0, 75, 255, 0.08);
}