/* ============================================
 * Cyan Sky Theme - ثيم السماوي السياني
 * خط: Tajawal | أزرار: round | حركة سايدبار: fade
 * ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

/* ===== متغيرات global.css ===== */
:root {
    --color-primary: #0e7490;
    --color-primary-dark: #155e75;
    --color-primary-light: #06b6d4;
    --color-primary-hover: #0891b2;
    --color-primary-rgb: 14, 116, 144;
    --color-secondary: #64748b;
    --color-secondary-dark: #475569;
    --color-secondary-light: #94a3b8;
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #ecfeff;
    --color-bg-tertiary: #cffafe;
    --color-bg-dark: #155e75;
    --color-text-primary: #155e75;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;
    --color-text-inverse: #ffffff;
    --color-success: #059669;
    --color-success-light: #d1fae5;
    --color-warning: #d97706;
    --color-warning-light: #fef3c7;
    --color-danger: #dc2626;
    --color-danger-light: #fee2e2;
    --color-info: #06b6d4;
    --color-info-light: #cffafe;
    --font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --shadow: 0 2px 8px rgba(14, 116, 144, 0.08);
    --shadow-lg: 0 10px 25px rgba(14, 116, 144, 0.12);
    --shadow-xl: 0 20px 40px rgba(14, 116, 144, 0.15);

    /* ===== متغيرات univ-style.css (تجاوز كامل) ===== */
    --primary-color: #0e7490;
    --secondary-color: #0891b2;
    --accent-color: #06b6d4;
    --bg-light: #ecfeff;
    --text-dark: #155e75;
    --text-muted: #475569;
    --white: #ffffff;
    --glass-navbar: rgba(255, 255, 255, 0.95);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* ===== متغيرات السايدبار ===== */
    --sidebar-bg: #155e75;
    --sidebar-accent: #06b6d4;
    --sidebar-hover: #0891b2;
    --sidebar-text: rgba(255,255,255,0.85);
    --sidebar-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Body ===== */
body {
    font-family: var(--font-family) !important;
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%) !important;
    color: #155e75 !important;
    
}

/* ===== Navbar (تجاوز univ-style + global) ===== */
.navbar {
    background: linear-gradient(135deg, #155e75, #06b6d4) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 2px solid #06b6d4 !important;
    box-shadow: 0 4px 20px rgba(14, 116, 144, 0.15) !important;
    transition: var(--transition) !important;
}
.navbar-scrolled {
    background: linear-gradient(135deg, #155e75, #0e7490) !important;
    box-shadow: 0 8px 30px rgba(14, 116, 144, 0.25) !important;
}
.navbar-brand { font-family: var(--font-family) !important; }
.navbar-brand:hover { transform: scale(1.03) !important; }
.site-name { color: #06b6d4 !important; font-family: var(--font-family) !important; }
.site-motto { color: #475569 !important; }

/* روابط القائمة */
.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-family: var(--font-family) !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    transition: var(--transition) !important;
}
.navbar-nav .nav-link:hover {
    background: rgba(14, 116, 144, 0.15) !important;
    color: #06b6d4 !important;
    transform: translateY(-2px) !important;
}
.navbar-nav .nav-link.active {
    background: rgba(14, 116, 144, 0.25) !important;
    color: #06b6d4 !important;
}
.nav-link:hover, .nav-link.active {
    background-color: rgba(14, 116, 144, 0.12) !important;
    color: #0e7490 !important;
}

/* ===== الأزرار ===== */
.btn {
    font-family: var(--font-family) !important;
    border-radius: 12px !important;
    padding: 10px 28px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}
.btn-primary {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
    border: none !important;
    color: #ffffff !important;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #0891b2, #155e75) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(14, 116, 144, 0.35) !important;
}
.btn-primary:active { transform: translateY(0) !important; }
.btn-outline-primary {
    border: 2px solid #06b6d4 !important;
    color: #0e7490 !important;
    border-radius: 12px !important;
    background: transparent !important;
}
.btn-outline-primary:hover {
    background: #06b6d4 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(14, 116, 144, 0.25) !important;
}
.btn-secondary {
    background: linear-gradient(135deg, #64748b, #475569) !important;
    border: none !important;
    border-radius: 12px !important;
}
.btn-success, .btn-danger, .btn-warning {
    border-radius: 12px !important;
    border: none !important;
}
.btn:hover { transform: translateY(-2px) !important; }
.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}
.btn:active::after { width: 200px; height: 200px; transition: 0s; }

/* أزرار univ-style */
.btn-login-new {
    background-color: transparent !important;
    border: 2px solid #0e7490 !important;
    color: #0e7490 !important;
    border-radius: 12px !important;
}
.btn-login-new:hover {
    background-color: #0e7490 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}
.btn-register-new {
    background-color: #0e7490 !important;
    border: 2px solid #0e7490 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
}
.btn-register-new:hover {
    background-color: #155e75 !important;
    border-color: #155e75 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(14, 116, 144, 0.3) !important;
}

/* ===== البطاقات ===== */
.card {
    border: 1px solid #a5f3fc !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 12px rgba(14, 116, 144, 0.08) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    
}
.card:hover {
    box-shadow: 0 12px 35px rgba(14, 116, 144, 0.18) !important;
    transform: translateY(-5px) !important;
    border-color: #06b6d4 !important;
}
.card-header {
    background: linear-gradient(135deg, #cffafe, #ecfeff) !important;
    border-bottom: 2px solid #a5f3fc !important;
    border-radius: 16px 16px 0 0 !important;
    font-family: var(--font-family) !important;
    font-weight: 700 !important;
    color: #155e75 !important;
    
}
.card-body {  }
.card-footer { background: #ecfeff !important;  }

/* ===== الجداول ===== */
.table {
    font-family: var(--font-family) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    
}
.table thead th {
    background: linear-gradient(135deg, #155e75, #0e7490) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-family: var(--font-family) !important;
    border: none !important;
    padding: 14px !important;
}
.table thead th:first-child { border-radius: 10px 0 0 10px !important; }
.table thead th:last-child { border-radius: 0 10px 10px 0 !important; }
.table tbody tr {
    transition: all 0.2s ease !important;
    
}
.table tbody tr:hover {
    background: #ecfeff !important;
    transform: translateX(3px) !important;
}
.table td {
    padding: 12px !important;
    border-bottom: 1px solid #a5f3fc !important;
    
}

/* ===== النماذج ===== */
.form-control, .form-select {
    border: 2px solid #a5f3fc !important;
    border-radius: 10px !important;
    font-family: var(--font-family) !important;
    padding: 10px 16px !important;
    transition: all 0.25s ease !important;
    
}
.form-control:focus, .form-select:focus {
    border-color: #06b6d4 !important;
    box-shadow: 0 0 0 4px rgba(14, 116, 144, 0.12) !important;
    outline: none !important;
}
.form-control::placeholder { color: #94a3b8 !important; }
.form-label {
    font-family: var(--font-family) !important;
    color: #155e75 !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

/* ===== الروابط ===== */
a { color: #0891b2; transition: color 0.2s ease !important; }
a:hover { color: #0e7490; }
.text-primary-link { color: #0e7490 !important; }

/* ===== التذييل ===== */
.footer {
    background: linear-gradient(135deg, #155e75, #0e7490) !important;
    color: #ffffff !important;
}
.footer h5 {
    color: #06b6d4 !important;
    border-bottom: 2px solid rgba(14, 116, 144, 0.3) !important;
}
.footer-links a { color: rgba(255,255,255,0.7) !important; transition: var(--transition) !important; }
.footer-links a:hover { color: #06b6d4 !important; transform: translateX(5px) !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1) !important; color: rgba(255,255,255,0.6) !important; }

/* ===== الشارات والتنبيهات ===== */
.badge {
    border-radius: 12px !important;
    font-family: var(--font-family) !important;
    font-weight: 600 !important;
    padding: 5px 14px !important;
}
.badge-primary { background: #0e7490 !important; color: #ffffff !important; }
.alert {
    border-radius: 10px !important;
    border: none !important;
    font-family: var(--font-family) !important;
    padding: 14px 20px !important;
}
.alert-success { background: #d1fae5 !important; color: #059669 !important; }
.alert-warning { background: #fef3c7 !important; color: #d97706 !important; }
.alert-danger { background: #fee2e2 !important; color: #dc2626 !important; }
.alert-info { background: #cffafe !important; color: #0e7490 !important; }

/* ===== شريط التمرير ===== */
::-webkit-scrollbar { width: 10px !important; height: 10px !important; }
::-webkit-scrollbar-track { background: #cffafe !important; border-radius: 10px !important; }
::-webkit-scrollbar-thumb {
    background: #06b6d4 !important;
    border-radius: 12px !important;
    transition: background 0.2s ease !important;
}
::-webkit-scrollbar-thumb:hover { background: #0891b2 !important; }

/* ===== السايدبار ===== */
.sidebar, .sidebar-wrapper {
    background: linear-gradient(180deg, #155e75, #155e75) !important;
    border-left: 3px solid #06b6d4 !important;
    transition: var(--sidebar-transition) !important;
}
.sidebar-menu .nav-item {
    transition: var(--sidebar-transition) !important;
    border-radius: 10px !important;
    margin: 3px 8px !important;
}
.sidebar-menu .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-family: var(--font-family) !important;
    font-weight: 500 !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    transition: var(--sidebar-transition) !important;
    position: relative !important;
}
.sidebar-menu .nav-link:hover {
    background: rgba(14, 116, 144, 0.2) !important;
    color: #06b6d4 !important;
    transform: translateX(-5px) !important;
    box-shadow: 0 4px 12px rgba(14, 116, 144, 0.15) !important;
}
.sidebar-menu .nav-link.active {
    background: rgba(14, 116, 144, 0.3) !important;
    color: #06b6d4 !important;
    font-weight: 700 !important;
}
.sidebar-menu .nav-link.active::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: #06b6d4;
    border-radius: 4px;
}
.sidebar-header {
    background: rgba(14, 116, 144, 0.15) !important;
    border-bottom: 2px solid #06b6d4 !important;
}
.sidebar-session-timer {
    border-top: 1px solid rgba(14, 116, 144, 0.2) !important;
    color: rgba(255,255,255,0.85) !important;
}
.sidebar-session-timer i { color: #06b6d4 !important; }
.sidebar-session-timer #sessionCountdown { color: #06b6d4 !important; }

/* أقسام السايدبار */
.sidebar-menu.list-unstyled.mt-3.pt-3.border-top {
    border-top: 2px solid rgba(14, 116, 144, 0.2) !important;
}

/* ===== القوائم المنسدلة ===== */
.dropdown-menu {
    border: 1px solid #a5f3fc !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(14, 116, 144, 0.15) !important;
    padding: 8px !important;
    
}
.dropdown-item {
    border-radius: 8px !important;
    font-family: var(--font-family) !important;
    font-weight: 500 !important;
    padding: 10px 16px !important;
    transition: all 0.2s ease !important;
    color: #155e75 !important;
    
}
.dropdown-item:hover {
    background: #ecfeff !important;
    color: #0e7490 !important;
    transform: translateX(-4px) !important;
}
.dropdown-item i { color: #06b6d4 !important; transition: color 0.2s ease !important; }
.dropdown-item:hover i { color: #0e7490 !important; }

/* ===== النوافذ المنبثقة ===== */
.modal-content {
    border: 1px solid #a5f3fc !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(14, 116, 144, 0.2) !important;
    
}
.modal-header {
    background: linear-gradient(135deg, #cffafe, #ecfeff) !important;
    border-radius: 16px 16px 0 0 !important;
    border-bottom: 2px solid #a5f3fc !important;
    
}
.modal-footer {
    border-top: 2px solid #a5f3fc !important;
    
}
.modal-backdrop { background: rgba(14, 116, 144, 0.6) !important; backdrop-filter: blur(4px) !important; }

/* ===== أدوات مساعدة ===== */
.rounded-premium { border-radius: 16px !important; }
.shadow-premium { box-shadow: 0 4px 12px rgba(14, 116, 144, 0.12) !important; }
.text-primary { color: #0e7490 !important; }
.text-secondary { color: #475569 !important; }
.bg-primary { background-color: #0e7490 !important; }
.bg-light { background-color: #ecfeff !important;  }
.lang-btn {
    border: 1px solid #a5f3fc !important;
    color: #155e75 !important;
    border-radius: 12px !important;
    font-family: var(--font-family) !important;
    transition: var(--transition) !important;
}
.lang-btn:hover { background-color: #ecfeff !important; border-color: #06b6d4 !important; }

/* ===== حركات ===== */
@keyframes themeFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes themeSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes themePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(14, 116, 144, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(14, 116, 144, 0); }
}
.fade-in { animation: themeFadeIn 0.4s ease !important; }
.slide-up { animation: themeFadeIn 0.5s ease !important; }
.card { animation: themeFadeIn 0.3s ease !important; }
.btn-primary { animation: themePulse 2s infinite !important; }

/* ===== تجاوزات إضافية لـ univ-style ===== */
.dropdown-item:hover {
    background-color: #ecfeff !important;
    color: #0e7490 !important;
}
.dropdown-menu {
    background: #ffffff !important;
    
}
.auth-buttons .btn { border-radius: 12px !important; }

/* ===== Dark Theme Extras ===== */

