



/* -------------------------- */
/*    تعريف المتغيرات العامة   */
/* -------------------------- */
:root {
  --primary-color: #00172D;
  --secondary-color: #003A5D;
  --accent-color: #FFD700;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  
  --font-primary: 'Cairo', sans-serif;
  --font-secondary: 'Tajawal', sans-serif;
  --font-code: 'Fira Code', monospace;
  
  --border-radius: 12px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* -------------------------- */
/*       تعيين الأساسيات     */
/* -------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--primary-color);
  color: var(--light-color);
  direction: rtl;
  line-height: 1.6;
}
/* إخفاء قائمة اللغة في صفحة التسجيل */
.login #language-switcher {
    display: none !important;
}
/* -------------------------- */
/*  لوحة التحكم – الحاوية الرئيسية  */
/* -------------------------- */
.tawkid-dashboard-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* في ملف dashboard-style.css */
.tawkid-form {
    direction: rtl;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
}

.form-section {
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
}

.live-error {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 5px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
/* -------------------------- */
/*     شريط التنقل العلوي      */
/* -------------------------- */
.tawkid-top-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--secondary-color);
  padding: 1rem 2rem;
  box-shadow: var(--box-shadow);
}

.tawkid-top-navbar .navbar-brand {
  display: flex;
  align-items: center;
}

.tawkid-top-navbar .logo-hologram {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 1rem;
}

.tawkid-top-navbar .logo-hologram .hologram-effect {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.2), transparent);
  top: -5px;
  left: -5px;
  z-index: -1;
  filter: blur(8px);
}

.tawkid-top-navbar .navbar-search {
  flex: 1;
  margin: 0 2rem;
}

.tawkid-top-navbar .navbar-search .search-form {
  position: relative;
}

.tawkid-top-navbar .navbar-search input[type="text"] {
  width: 100%;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.tawkid-top-navbar .navbar-search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--dark-color);
  cursor: pointer;
  font-size: 1rem;
}

.tawkid-top-navbar .navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* قائمة الإشعارات */
.tawkid-top-navbar .notification-bell {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
}

.tawkid-top-navbar .notification-bell::after {
    content: attr(data-count);
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--danger-color);
    color: #fff;
    padding: 0 5px;
    border-radius: var(--border-radius);
    font-size: 0.7rem;
}

/* تنسيق القائمة الفرعية */
.user-profile {
    position: relative;
}

.profile-submenu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    min-width: 180px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.2s ease;
    display: block; /* مهم لإبقاء العنصر موجودًا للتحكم فيه عبر opacity */
}

.profile-submenu.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.tawkid-top-navbar .profile-submenu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: none;
    z-index: 999;
}

.tawkid-top-navbar .user-profile:hover .profile-submenu {
    display: block;
}
/* تنسيق الـ Header */
.tawkid-top-navbar .user-profile {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.tawkid-top-navbar .user-profile .profile-avatar {
    margin-right: 0.5rem;
    border-radius: 50%;
    overflow: hidden;
}

.tawkid-top-navbar .user-profile .profile-info {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.tawkid-top-navbar .user-profile .profile-dropdown {
    margin-left: 0.5rem;
}
/* -------------------------- */
/*         الشريط الجانبي       */
/* -------------------------- */
.tawkid-sidebar {
  width: 250px;
  background-color: var(--secondary-color);
  min-height: 100vh;
  box-shadow: var(--box-shadow);
  padding: 1rem;
}

.tawkid-sidebar .sidebar-menu {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.tawkid-sidebar .menu-items {
  list-style: none;
}

.tawkid-sidebar .menu-item {
  margin-bottom: 1rem;
}

.tawkid-sidebar .menu-item a {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--light-color);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.tawkid-sidebar .menu-item a:hover,
.tawkid-sidebar .menu-item.active a {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

/* تذييل الشريط الجانبي */

.tawkid-sidebar .sidebar-footer {
 padding: 0.0rem 0;
  border-top: 1px solid var(--dark-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top:-20px;
 
}
/* إخفاء الشريط الجانبي افتراضيًا على الشاشات الصغيرة */
@media screen and (max-width: 768px) {
    .tawkid-sidebar {
        position: fixed;
        top: 0;
        right: -100%; /* خارج الشاشة */
        width: 250px;
        height: 100%;
        background: #fff;
        z-index: 9999;
        transition: right 0.3s ease;
        box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    }

    .tawkid-sidebar.mobile-open {
        right: 0; /* إظهار القائمة */
    }

    /* إخفاء زر الطي الموجود داخل القائمة في الموبايل */
    .tawkid-sidebar .sidebar-toggle {
        display: none;
    }
    
    
}
@media (min-width: 992px) { /* يبدأ من الشاشات المتوسطة إلى الأعلى (سطح المكتب) */
    .sidebar-toggle {
        display: none;
    }
}

/* لتصميم الأزرار وعناصر القائمة على موبايل */
.tawkid-sidebar .sidebar-toggle .toggle-btn {
 
    border: none;
    padding: 10px;
    cursor: pointer;
    background-color:#000;
}
.system-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.system-status .status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color:green;
 /* background-color: var(--success-color);*/
}

.quick-action-btn {
  background-color: var(--accent-color);
  color: var(--dark-color);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
}

.quick-action-btn:hover {
  background-color: var(--warning-color);
  color: var(--light-color);
}

/* -------------------------- */
/*       المحتوى الرئيسي       */
/* -------------------------- */
.dashboard-main-content {
  display: flex;
  width: 100%;
}

/* في شاشات الموبايل نخفف عرض الشريط الجانبي */
@media (max-width: 768px) {
  .dashboard-main-content {
    flex-direction: column;
  }
  
  .tawkid-sidebar {
    width: 100%;
    order: 2;
    background-color:green;
  }
  
  .close-sidebar-btn { display: block; }


  .dashboard-content-area {
    order: 1;
    padding: 1rem;
  }
  
  .tawkid-top-navbar {
    flex-direction: column;
    padding: 0.75rem 1rem;
  }
  
  .tawkid-top-navbar .navbar-search {
    margin: 0.5rem 0;
  }
}

/* -------------------------- */
/*      منطقة المحتوى         */
/* -------------------------- */
.dashboard-content-area {
  flex: 1;
  padding: 2rem;
/*  background-color: var(--primary-color);*/
}

/* -------------------------- */
/*      بطاقات الإحصائيات      */
/* -------------------------- */
.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
   background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    min-height: 180px; /* تجنب الانهيار عند عدم وجود محتوى */

}


.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--card-accent, #00172D);
}

/*.stat-card.warning { --card-accent: #FFD700; }
.stat-card.danger { --card-accent: #dc3545; }
.stat-card.success { --card-accent: #f00f0f; }
.stat-card.primary { --card-accent: #000f0f; }
*/

/* منع الاختفاء المفاجئ */
.stat-card {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card .card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-card .card-content h3 {
  margin-bottom: 0.5rem;
  font-family: Cairo;
  color:var(--accent-color);
}

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-card .stat-trend {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/*.stat-card.primary {
  background-color: rgba(125, 250, 25, 0.1);
  border-top: 5px;
}

.stat-card.success {
  background-color: rgba(40, 16, 69, 0.1);
}

.stat-card.warning {
  background-color: rgba(255, 193, 7, 0.1);
}

.stat-card.danger {
  background-color: rgba(220, 53, 69, 0.1);
}
*/


/* -------------------------- */
/*      قسم الرسوم البيانية     */
/* -------------------------- */
.charts-section {
  margin-bottom: 2rem;
}

.charts-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  color:#fff;
}

.charts-section .time-filters button {
  background: none;
  border: none;
  color: var(--light-color);
  margin-left: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
}

.charts-section .time-filters button.active,
.charts-section .time-filters button:hover {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top:20px;
}

.chart-card {
  background-color: var(--card-bg-color);
  color: var(--card-text-color);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin-bottom: 20px;
  transition: background-color 0.3s, color 0.3s;
}


.chart-card.full-width {
  grid-column: 1/-1;

}

.chart-card:hover {
  transform: translateY(-5px);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.chart-header h3 {
  font-family: var(--font-secondary);
  font-size: 1.2rem;
}

.chart-filter {
 /* background: rgba(255,255,255,0.1);*/
  border: none;
  padding: 0.3rem 0.5rem;
  border-radius: var(--border-radius);
  color: var(--light-color);
  font-size: 0.9rem;
  transition: var(--transition);
}

.chart-filter:focus {
  outline: none;
  background-color: var(--accent-color);
  color: var(--dark-color);
}

.chart-container {
  position: relative;
  height: 250px;
}

/* حل مشكلة الرسم الدائري */
.chart-card.full-width .chart-container {
  position: relative;
  height: 400px; /* زيادة الارتفاع للرسم الكامل العرض */
  overflow: hidden; /* منع الخروج عن الحدود */
}

#systemActivityChart {
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1; /* الحفاظ على نسبة مربعة */
  margin: 0 auto;
  display: block;
}

@media (max-width: 768px) {
  .chart-card.full-width .chart-container {
    height: 300px;
  }
}

.chart-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
}
/* -------------------------- */
/*      قسم النشاطات الأخيرة    */
/* -------------------------- */
.activities-section {
  margin-bottom: 2rem;
}

.activities-section .section-header
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  color:#fff;
}
.view-all-btn {
  background: var(--accent-color);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  color: var(--dark-color);
  cursor: pointer;
  transition: var(--transition);
}

.view-all-btn:hover {
  background: var(--warning-color);
}

.activities-table-container {
  overflow-x: auto;
}

/* CSS */
.tawkid-data-table {
    width: 100%;
    border-collapse: collapse;
}

.tawkid-data-table th,
.tawkid-data-table td {
    padding: 12px 15px;
    text-align: right;
}

.tawkid-data-table th:nth-child(1),
.tawkid-data-table td:nth-child(1) { /* المعرف */
    width: 15%;
}

.tawkid-data-table th:nth-child(2),
.tawkid-data-table td:nth-child(2) { /* الطالب */
    width: 35%;
}

.tawkid-data-table th:nth-child(3),
.tawkid-data-table td:nth-child(3) { /* حالة الطلب */
    width: 30%;
}

.tawkid-data-table th:nth-child(4),
.tawkid-data-table td:nth-child(4) { /* الإجراءات */
    width: 20%;
    min-width: 120px;
}

.action-buttons {
    display: flex;
    gap: 7px;
    justify-content: flex-end;
  /*  color: var(--bg-color);*/
}

/*.action-buttons button:hover {
  color: var(--warning-color);
}
*/
/* -------------------------- */
/*      نموذج الإشعارات        */
/* -------------------------- */
.tawkid-modal {
  display: none; /* إخفاء النموذج بشكل افتراضي */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.tawkid-modal.active {
  display: block;
}

.tawkid-modal .modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.tawkid-modal .modal-container {
  position: relative;
  width: 90%;
  max-width: 500px;
  margin: 100px auto;
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.tawkid-modal .modal-header,
.tawkid-modal .modal-footer {
  padding: 1rem;
  background-color: var(--dark-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tawkid-modal .modal-header h3,
.tawkid-modal .modal-footer button {
  color: var(--light-color);
  font-family: var(--font-secondary);
}

.tawkid-modal .modal-body {
  padding: 1rem;
  color: var(--light-color);
}

.close-modal {
  background: none;
  border: none;
  color: var(--accent-color);
  cursor: pointer;
  font-size: 1.2rem;
}

.mark-all-read {
  background: var(--accent-color);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  color: var(--dark-color);
  cursor: pointer;
  transition: var(--transition);
}

.mark-all-read:hover {
  background: var(--warning-color);
}

/* -------------------------- */
/*   تحسينات للإستجابة – الأجهزة الصغيرة  */
/* -------------------------- */
@media (max-width: 480px) {
  .tawkid-top-navbar {
    padding: 0.5rem 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .tawkid-top-navbar .navbar-search {
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .tawkid-sidebar {
    width: 100%;
    padding: 0.5rem;
  }
  
  .tawkid-sidebar .menu-item a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .dashboard-content-area {
    padding: 1rem;
  }
  
  .charts-section .section-header,
  .activities-section .section-header {
    flex-direction: column;
    align-items: flex-start;
 
  }
  
  .charts-section .time-filters button,
  .view-all-btn {
    margin-top: 0.5rem;
  }
  
  .tawkid-data-table th,
  .tawkid-data-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
}

/* CSS */
.profile-submenu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.profile-submenu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.profile-dropdown {
    cursor: pointer;
    padding: 8px;
    transition: transform 0.3s ease;
}

.profile-dropdown.active {
    transform: rotate(180deg);
}
/* تنسيق خاص للرسم المشكلة */
#specialActivityChart {
    max-height: 500px !important; /* تجاوز الإرث */
    min-height: 300px;
}

.custom-filter { /* عنصر الفلتر المخصص */
    position: absolute;
    right: 20px;
    z-index: 100; /* قد يحجب جزءًا من الرسم */
}

.students-table {
    overflow-x: auto;
    margin: 20px 0;
}

.students-table table {
    width: 100%;
    border-collapse: collapse;
}

.students-table th {
    background: #0073aa;
    color: white;
    padding: 12px;
    text-align: right;
}

.students-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

@media (max-width: 768px) {
    .students-table td, 
    .students-table th {
        padding: 8px;
        font-size: 14px;
    }
}

/* صفحة الباركودات */
.tawkid-barcode-page {
    max-width: 1200px;
    margin: 20px auto;
}

.tawkid-barcode-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tawkid-barcode-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .tawkid-barcode-actions {
        grid-template-columns: 1fr 1fr;
    }
}

/* النموذج */
.tawkid-barcode-form {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tawkid-barcode-form .form-group {
    margin-bottom: 20px;
}

.tawkid-barcode-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.tawkid-barcode-form input[type="number"],
.tawkid-barcode-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* سجل الطلبات */
.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.9em;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.approved {
    background: #d4edda;
    color: #155724;
}

.status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}
/* هيكل البطاقة الرئيسية */
.tawkid-card.request-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    max-width: 800px;
    margin: 2rem auto;
}

.card-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    padding: 2rem;
    color: white;
    text-align: center;
}

.icon-header {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.form-title {
    margin: 0;
    font-weight: 500;
}

/* أقسام النموذج */
.form-section {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
}

.section-title {
    color: #2c3e50;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* حقل التحميل الملفات */
.file-upload-label {
    display: block;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.file-upload-label:hover {
    border-color: #3498db;
    background: #f8f9ff;
}

.upload-area i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 0.5rem;
}

/* Stepper خاص بالكمية */
.quantity-stepper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.step-btn:hover {
    background: #3498db;
    color: white;
}

.quantity-input {
    width: 100px;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}


/* التنسيقات الأساسية */
.tawkid-academic-form {
    font-family: 'Cairo', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    background: #f9f9f9;
    color: #333;
}

.university-header {
    background: linear-gradient(135deg, #00172D 0%, #003A5D 100%);
    padding: 2rem;
    text-align: center;
    color: white;
    border-radius: 8px 8px 0 0;
    position: relative;
    overflow: hidden;
}

.university-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #00B4D8);
}

.university-logo {
    height: 80px;
    margin-bottom: 1rem;
}

.form-title {
    font-weight: 700;
    margin: 0.5rem 0;
    font-size: 1.8rem;
}

.form-subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
    margin: 0;
}

/* بطاقة النموذج */
.academic-form-card {
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-header.with-seal {
    position: relative;
    padding: 2rem 2rem 1rem;
    text-align: center;
    background: #f5f7fa;
}

.university-seal {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 2px solid #FFD700;
    color: #00172D;
    font-size: 1.5rem;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-step-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e1f5fe;
    color: #0073aa;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* أقسام النموذج */
.form-section {
    padding: 1.5rem 2rem;
}

.form-section.with-border {
    border-bottom: 1px solid #eaeaea;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-number {
    width: 30px;
    height: 30px;
    background: #00172D;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    font-weight: bold;
}

.section-title {
    font-size: 1.2rem;
    margin: 0;
    color: #003A5D;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* تنسيقات الحقول */
.academic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .academic-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.academic-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #003A5D;
}

.required-asterisk {
    color: #e53935;
}

.academic-input, .academic-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.academic-input:focus, .academic-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.input-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0073aa;
    transition: width 0.3s ease;
}

.academic-input:focus ~ .input-decoration {
    width: 100%;
}

/* أداة اختيار الكمية */
.academic-stepper {
    display: flex;
    align-items: center;
}

.step-btn {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-btn:hover {
    background: #e0e0e0;
}

.stepper-input {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    font-size: 1rem;
    font-weight: bold;
}

.stepper-tooltip {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

/* رفع الملفات */
.academic-upload-label {
    display: block;
    cursor: pointer;
}

.upload-container {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.academic-upload-label:hover .upload-container {
    border-color: #0073aa;
    background: #f5f9ff;
}

.upload-icon {
    font-size: 2.5rem;
    color: #0073aa;
    margin-bottom: 1rem;
}

.upload-text h5 {
    margin: 0 0 5px;
    color: #003A5D;
}

.upload-text p {
    margin: 0 0 5px;
    color: #666;
}

.upload-text small {
    color: #999;
}

/* زر الإرسال */
.academic-submit-btn {
    background: linear-gradient(135deg, #00172D 0%, #003A5D 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
}

.academic-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 23, 45, 0.2);
}

.submit-arrow {
    transition: transform 0.3s ease;
}

.academic-submit-btn:hover .submit-arrow {
    transform: translateX(5px);
}

/* تذييل الصفحة */
.university-footer {
    text-align: center;
    padding: 1.5rem;
    color: #666;
    font-size: 0.9rem;
    background: #f5f5f5;
    border-radius: 0 0 8px 8px;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #003A5D;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* الإشعارات */
.academic-notice {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.notice-icon {
    color: #0073aa;
    font-size: 1.5rem;
}

/* تأثيرات خاصة */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 115, 170, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 115, 170, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 115, 170, 0); }
}

.academic-form-card {
    animation: pulse 2s infinite;
}

/* التنسيقات الأساسية */
.tawkid-international-form {
    font-family: 'Cairo', sans-serif;
    max-width: 900px;
    margin: 2rem auto;
    color: #333;
    line-height: 1.6;
}

/* رأسية النموذج */
.form-header-section {
    background: linear-gradient(135deg, #00172D 0%, #003A5D 100%);
    padding: 2rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 2rem;
    color: white;
}

/*.company-logo {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*.logo-img {
    max-width: 100%;
    max-height: 100%;
}*/


.form-header-content {
    flex: 1;
}

.form-main-title {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.form-sub-title {
    margin: 0 0 1.5rem;
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 500;
}

.form-progress-steps {
    display: flex;
    gap: 1rem;
}

.step {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
}

.step.active {
    background: #FFD700;
    color: #00172D;
    font-weight: 600;
}

/* بطاقة النموذج */
.international-form-card {
    background: white;
    padding: 2rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-section {
    margin-bottom: 2.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eaeaea;
}

.section-icon {
    width: 40px;
    height: 40px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0073aa;
}

.section-title {
    margin: 0;
    font-size: 1.3rem;
    color: #003A5D;
}

/* حقول النموذج */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #fff;
}

.required {
    color: #e53935;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* أداة اختيار الكمية */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #e0e0e0;
}

.qty-select {
    flex: 1;
    text-align: center;
    appearance: none;
    padding: 0.8rem;
}

.form-hint {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: #666;
}

/* رفع الملفات */
.document-uploader {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .document-uploader {
        grid-template-columns: 1fr;
    }
}

.upload-item {
    margin-bottom: 1rem;
}

.upload-label {
    display: block;
    cursor: pointer;
}

.upload-content {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.upload-label:hover .upload-content {
    border-color: #0073aa;
    background: #f5f9ff;
}

.upload-content i {
    font-size: 2rem;
    color: #0073aa;
    margin-bottom: 1rem;
}

.upload-content h4 {
    margin: 0 0 0.5rem;
    color: #003A5D;
}

.upload-content p {
    margin: 0 0 0.5rem;
    color: #666;
}

.upload-content small {
    color: #999;
}

/* مربع الإقرار */
.agreement-box {
    background: #f5f7fa;
    padding: 1.5rem;
    border-radius: 6px;
    color:#000;
}

.agreement-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    position: relative;
}

.agreement-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: relative;
    top: 3px;
    height: 20px;
    min-width: 20px;
    background-color:green;
    border-radius: 4px;
    color:#fff;
}

.agreement-label:hover input ~ .checkmark {
    background-color: #ddd;
}

.agreement-label input:checked ~ .checkmark {
    background-color: #0073aa;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.agreement-label input:checked ~ .checkmark:after {
    display: block;
}

/* أزرار النموذج */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.submit-btn {
    background: linear-gradient(135deg, #00172D 0%, #003A5D 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 23, 45, 0.2);
}

.reset-btn {
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.reset-btn:hover {
    background: #e0e0e0;
}

/* تذييل الصفحة */
.form-footer {
    background: #f5f5f5;
    padding: 1.5rem 2rem;
    border-radius: 0 0 8px 8px;
    margin-top: 2rem;
}

/*.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
*/

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.contact-info h4 {
    margin: 0 0 1rem;
    color: #003A5D;
}

.contact-info p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.copyright {
    text-align: right;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .copyright {
        text-align: left;
    }
}

/* تأثيرات خاصة */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.international-form-card {
    animation: pulse 6s infinite ease-in-out;
}

.tawkid-alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.tawkid-alert i {
    margin-left: 10px;
    font-size: 1.2em;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/*.loading-spinner .fa-spinner {
    animation: spin 1s linear infinite;
}
*/
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tawkid-alert {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
}

.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
/* تنسيقات الجدول العامة */
/* تحسين تصميم الجدول */
.table-responsive {
    margin-top: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 15px;
    color:#000;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    text-align: center;
    vertical-align: middle;
    padding: 12px;
    border: 1px solid #ddd;
}

.table th {
    background-color: #00172D;
    color: #fff;
    font-weight: bold;
}

.table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table tr:hover {
    background-color: #f1f1f1;
    transition: background-color 0.3s ease-in-out;
}

/* تحسين الاستجابة والمرونة */
@media only screen and (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
    }
}

/* تصميم Modal الأساسي */
.document-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

/* محتوى Modal */
.document-modal-content {
    position: relative;
    margin: 5% auto;
    width: 80%;
    max-width: 800px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    animation: slideIn 0.5s ease-out;
}

/* زر إغلاق Modal */
.close-document {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

/* تأثير الانزلاق */
@keyframes slideIn {
    from {
        top: -300px;
        opacity: 0;
    }
    to {
        top: 0;
        opacity: 1;
    }
}

/* التأكد من تجاوب المحتوى */
.document-container iframe {
    width: 100%;
    height: 500px;
    border: none;
}

.chart-card.loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1000;
}

.chart-card.loading::after {
    content: "جاري التحميل...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cairo';
    color: #003A5D;
    font-size: 1.2em;
}
.menu-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tooltip {
    position: relative;
}

.tooltip:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px;
    border-radius: 4px;
    white-space: nowrap;
}

/* styles/dashboard-style.css */
.tawkid-order-details {
    max-width: 800px;
    margin: 2rem auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.student-info .info-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.certification-form .form-group {
    margin-bottom: 1.5rem;
}

.tawkid-btn {
    padding: 12px 25px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.tawkid-btn.primary {
    background: #2c3e50;
    color: white;
}

.tawkid-swal-popup {
    direction: rtl;
    text-align: right;
}

.tawkid-process-steps li {
    padding: 10px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 5px;
}

    .form-label {
        color: green;
        display: flex;
        align-items: center;
    }
    .form-label i {
        margin-left: 8px;
        color: #555;
    }

    .form-section {
        border: 2px solid #ccc;
        padding: 20px;
        border-radius: 10px;
        margin-bottom: 30px;
    }
  
    .section-icon {
        margin-left: 10px;
        font-size: 24px;
    }
    .section-title {
        font-size: 20px;
        font-weight: bold;
    }

    .section-university {
        border-color: #004080;
        background-color: #f0f4fb;
        color: #004080;
    }
    .section-request {
        border-color: #006400;
        background-color: #f0fbf0;
        color: #006400;
    }
    .section-documents {
        border-color: #ff8c00;
        background-color: #fff8f0;
        color: #ff8c00;
    }


    .loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.8);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }
    .loading-overlay .spinner {
        font-size: 40px;
        color: #007bff;
    }

  .progress-bar2-container {
    width: 100%;
    background-color: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 20px;
  }
  .progress-bar2 {
    width: 0%;
    height: 100%;
    background-color: #007bff;
    border-radius: 4px;
    transition: width 0.3s ease;
  }
  
  .upload-label {
  position: relative;    /* لجعل input مطلقاً داخله */
  overflow: hidden;      /* لمنع أي تجاوز */
}

.upload-label input[type="file"] {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;            /* يخفيه بصرياً */
  cursor: pointer;       /* يجعل مؤشر الماوس مناسباً */
}

  /* شريط التقدم والمراحل */
  .step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
  }
  .step-indicator .step-label {
    flex: 1;
    text-align: center;
    color: #aaa;
    position: relative;
  }
  .step-indicator .step-label.completed {
    color: #28a745;
  }
  .step-indicator .step-label.active {
    color: #007bff;
  }


  .tawkid-alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
  }
  .tawkid-alert.success { background: #e6ffed; color: #2f8f3f; }
  .tawkid-alert.error   { background: #ffe6e6; color: #d12f2f; }
  
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.process-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.process-card i {
  font-size: 2.5rem;
  color: #2f8f3f;
  margin-bottom: 15px;
}

.process-card h3 {
  color: #2f8f3f;
  margin: 15px 0;
  font-size: 1.3rem;
}

.process-card p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

.reference-number {
  background: #e6ffed;
  padding: 12px;
  border-radius: 8px;
  margin: 20px 0;
  font-weight: bold;
  color: #2f8f3f;
}
  .form-hint{
      color:red;
  }