/* منصة التدريب - الأنماط المخصصة */

/* الألوان الأساسية */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* التصميم العام */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    text-align: right;
}

/* الشريط الجانبي */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

/* البطاقات */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 2rem 0 rgba(58, 59, 69, 0.2);
}

/* الإحصائيات */
.stats-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 2rem 0 rgba(58, 59, 69, 0.2);
}

.stats-card.border-left-primary {
    border-left-color: var(--primary-color);
}

.stats-card.border-left-success {
    border-left-color: var(--success-color);
}

.stats-card.border-left-info {
    border-left-color: var(--info-color);
}

.stats-card.border-left-warning {
    border-left-color: var(--warning-color);
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* الأزرار */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* النماذج */
.form-control {
    border-radius: 8px;
    border: 1px solid #e3e6f0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-select {
    border-radius: 8px;
    border: 1px solid #e3e6f0;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* الجداول */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--light-color);
    border-bottom: 2px solid #e3e6f0;
    font-weight: 600;
    color: var(--dark-color);
}

.table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* التنبيهات */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

/* الصفحات */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* الشريط العلوي */
.navbar {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

/* الأيقونات */
.fa {
    transition: all 0.3s ease;
}

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

.spinner-border {
    width: 1rem;
    height: 1rem;
}

/* التجاوب */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 0;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* الرسوم المتحركة */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* التخصيصات الإضافية */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-success {
    background-color: var(--success-color) !important;
}

.bg-danger {
    background-color: var(--danger-color) !important;
}

.bg-warning {
    background-color: var(--warning-color) !important;
}

.bg-info {
    background-color: var(--info-color) !important;
}

/* تحسينات إضافية */
.border-left-primary {
    border-left: 4px solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 4px solid var(--success-color) !important;
}

.border-left-info {
    border-left: 4px solid var(--info-color) !important;
}

.border-left-warning {
    border-left: 4px solid var(--warning-color) !important;
}

/* تحسينات للواجهة العربية */
.rtl {
    direction: rtl;
    text-align: right;
}

.ltr {
    direction: ltr;
    text-align: left;
}

/* تحسينات للطباعة */
@media print {
    .sidebar,
    .btn,
    .navbar {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
}

/* 🌟 كروت الطلاب + جهات التدريب جنب بعض */
#studentsList .card,
#providersList .card,
#opportunitiesList .card,
#applicationsList .card {
    width: 48%;
    /* يخلي كل كارد تاخد نص الصف تقريبًا */
    margin: 1%;
    /* مسافة بسيطة بين الكروت */
}

/* لو الشاشة صغيرة خليه ينزل تحت بعض */
@media (max-width: 768px) {

    #studentsList .card,
    #providersList .card,
    #opportunitiesList .card,
    #applicationsList .card {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* تحسين شكل الكارد */
.card {
    border-radius: 10px;
    border: 1px solid #ddd;
    transition: .3s ease-in-out;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* ===========================
   🎨 تحسين الشريط الجانبي
   =========================== */
.sidebar {
    background: #1E1E2D !important;
    min-height: 100vh;
    padding-top: 25px;
}

.sidebar .nav-link {
    color: #c7c7d1 !important;
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 8px;
    margin: 5px 10px;
    transition: 0.3s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: #2A2A3C !important;
    color: #fff !important;
    transform: translateX(-4px);
}

/* اسم الجامعة */
.sidebar .text-center h6 {
    font-weight: bold;
    font-size: 17px;
}


/* ===========================
   🎨 ستايل منطقة المحتوى الرئيسي
   =========================== */
main {
    background: #f4f4f9;
    min-height: 100vh;
    padding-top: 25px !important;
}


/* ===========================
   🎨 تحسين الهيدر
   =========================== */
h1.h2 {
    font-weight: bold;
    color: #333;
}


/* ===========================
   🎨 كروت الإحصائيات الرئيسية
   =========================== */

.stats-card {
    border-radius: 15px;
    padding: 15px;
    border: none;
    transition: 0.3s ease-in-out;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.stats-number {
    font-size: 25px;
    font-weight: bold;
    color: #222;
}


/* ===========================
   🎨 الكروت العامة لجميع الصفحات
   =========================== */

.card {
    border-radius: 12px !important;
    border: 1px solid #ddd !important;
    transition: .3s ease-in-out;
}

.card:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}


/* ===========================
   🧑‍🎓 كروت الطلاب + جهات التدريب + الفرص + الطلبات
   =========================== */

#studentsList .card,
#providersList .card,
#applicationsList .card {
    width: 48% !important;
    margin: 1%;
}

#opportunitiesList .card{
    width: 100%;
        margin: 1%;
    
}
/* موبايل */
@media (max-width: 768px) {

    #studentsList .card,
    #providersList .card,
    #opportunitiesList .card,
    #applicationsList .card {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* محتوى داخل الكارت */
.card-body p {
    margin: 6px 0;
    color: #444;
}

.card-title {
    font-weight: bold;
    margin-bottom: 10px;
}


/* ===========================
   🎨 صفحة البروفايدر (جهات التدريب)
   =========================== */

.provider-card {
    border-left: 5px solid #4e73df;
}

.provider-card h5 {
    font-size: 18px;
    font-weight: bold;
}

.provider-card .badge {
    font-size: 13px;
    padding: 5px 10px;
}


/* ===========================
   🎨 صفحة التقارير
   =========================== */

#reportsList .card {
    width: 100%;
    margin-bottom: 15px;
}

#reportsList .badge {
    font-size: 14px;
    padding: 5px 12px;
}


/* ===========================
   🎨 أزرار عامة
   =========================== */

button,
.btn {
    border-radius: 10px !important;
    padding: 8px 18px !important;
}

.btn-primary {
    background: #4e73df !important;
    border: none !important;
}

.btn-primary:hover {
    background: #355ad2 !important;
}

.btn-outline-secondary:hover {
    background: #ddd;
}


/* ===========================
   🎨 جداول الطلبات والفرص
   =========================== */

.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background: #4e73df;
    color: #fff;
}

.table-hover tbody tr:hover {
    background: #eef2ff;
}


/* ===========================
   🎨 عناصر نصوص عامة
   =========================== */

p,
label,
span {
    font-size: 15px;
}

.alert {
    border-radius: 10px;
}
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@500;700&display=swap');

.tagline-premium {
  font-family: 'Cairo', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  direction: rtl;

  padding: 12px 28px;

  /* Glass panel */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);

  /* --- Gradient text --- */
  background-image: linear-gradient(90deg, #004aad, #1a8cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.35s ease;
  cursor: pointer;

  display: flex;
  align-items: center;
}

/* Icon also gradient */
.tagline-premium i {
  font-size: 1.3rem;
  background-image: linear-gradient(90deg, #007bff, #1a8cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Hover Animation --- */
.tagline-premium:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.22);

  /* Soft blue glow */
  box-shadow: 
    0 6px 20px rgba(0,0,0,0.15),
    0 0 14px rgba(0, 128, 255, 0.35);
}
