
      @import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

      * {
          box-sizing: border-box;
      }
       
      :root {
        --primary-color: #4a90e2;
        --secondary-color: #50b848;
        --error-color: #e53e3e;
        --success-color: #50b848;
        --text-color: #2d3748;
        --light-bg: #f5f7fa;
        --card-shadow: 0 4px 12px rgba(0,0,0,0.08);
        --transition: all 0.3s ease;
      }
      body {
          font-family: 'CoconNextArabic-Regular', sans-serif !important;
          background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
          color: #2d3748;
          margin: 0;
          padding: 0;
          overflow-x: hidden;
          
         
      }
      
      .horizontal-layout {
          display: flex;
          flex-direction: column;
          min-height: 100vh;
      }

      .main-header {
          background: #ffffff;
          box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
          position: fixed;
          width: 100%;
          z-index: 1000;
      }
      
      .header-content {
          display: flex;
          flex-direction: row-reverse;
          justify-content: space-between;
          align-items: center;
          padding: 5px 30px;
          max-width: 1400px;
          margin: 0 auto;
          padding-left: 315px;
          
      }
      
      .logo-section {
          display: flex;
          align-items: center;
          gap: 12px;
          
      }
      
      .logo-section img {
          height: 40px;
          object-fit: contain;
      }
      
      .logo-text {
          font-weight: 700;
          font-size: 1rem;
          color: #090a09;
      }
     .visitor-dropdown {
  position: relative;
  display: inline-block;
  font-family: "Tajawal", sans-serif;
}

/* زر الزائر */
.visitor-btn {
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid #4a90e2;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  color: #4a90e2;
  transition: all 0.3s;
}

.visitor-btn:hover {
  background: #4a90e2;
  color: #fff;
}

/* السهم */
.visitor-btn i {
  font-size: 14px;
  transition: transform 0.3s;
}

/* دوران السهم عند الفتح */
.visitor-btn.active i {
  transform: rotate(180deg);
}

/* القائمة */
.visitor-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 200px;
  z-index: 1000;
  overflow: hidden;
  display: none;
}

.visitor-menu.show {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

.visitor-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.visitor-menu a:hover {
  background: #f0f7ff;
  color: #4a90e2;
}

/* حركة لطيفة */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

      .auth-buttons {
          display: flex;
          gap: 12px;
         
      }
      
      .auth-btn {
          padding: 5px 20px;
          border-radius: 6px;
          font-weight: 600;
          transition: all 0.3s;
          text-decoration: none;
      }
      
      .login-btn {
          background: #ffffff;
          color: #4a90e2;
          border: 1px solid #4a90e2;
      }
      
      .register-btn {
          background: #4a90e2;
          color: white;
          border: 1px solid #4a90e2;
      }
      
      .auth-btn:hover {
          transform: translateY(-2px);
          box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      }


.user-profile-container {
  position: relative;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s;
  
}

.user-profile:hover {
  background-color: #f0f7ff;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 10px;
  width: 180px;
  z-index: 1000;
}

.user-dropdown.show {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.user-dropdown a, 
.user-dropdown button {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: #2d3748;
  text-decoration: none;
  border-radius: 4px;
  gap: 8px;
  width: 100%;
  text-align: right;
  background: none;
  border: none;
  cursor: pointer;
}

.user-dropdown a:hover, 
.user-dropdown button:hover {
  background-color: #f0f7ff;
  color: #4a90e2;
}

.user-dropdown button {
  color: #e53e3e;
}

.user-dropdown button:hover {
  color: #c53030;
}
.avatar-wrapper {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
}
.badges-container {
  position: absolute;
  top: -12px;
  left: -12px;
  display: flex;
  gap: 2px;
}
.badge-overlay {
  font-size: 14px;
  line-height: 1;
}
#notifBellToggle {
  top: -20px;
  left: 0%;
  right: 80% ;
  display: flex;
  gap: 5px;
   }
 


  .education-filiers {
    background: #f8f9fa; /* أو يمكنك استخدام background: inherit; */
    padding: 8px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.filiers-container {
    display: flex;
    justify-content: right;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.filier-btn-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.filier-btn {
    
    border-radius: 8px;
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    background-color: transparent; /* خلفية شفافة أو نفس لون البودي */
    min-width: 200px;
    text-align: center;
    position: relative;
     border: 2px solid currentColor; /* الإطار بلون النص */
}

/* ألوان النصوص المضيئة */
.primary-btn {
    color: #007bff; /* أزرق مضيء */
}

.middle-btn {
    color: #28a745; /* أخضر مضيء */
}

.secondary-btn {
    color: #ff9800; /* برتقالي مضيء */
}

/* التأثير عند التحويم */
.filier-btn:hover {
    transform: translateY(-2px);
    box-shadow: none; /* بدون ظل أو أضف واحدًا خفيفًا لو أردت */
    
}
/* السهم ▼ بجانب كل زر */
.filier-btn::after {
    content: " ▼";
    font-size: 18px;
    margin-right: 6px;
    pointer-events: none;
}

        .subject-item a i {
            margin-left: 8px;
            width: 20px;
            text-align: center;
        }
        
        .levels-dropdown a i {
            margin-left: 8px;
            width: 20px;
            text-align: center;
        }
        
        /* Add icons to phase buttons */
        .filier-btn::before {
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            margin-left: 8px;
        }
        
        .primary-btn::before {
            content: "\f51c"; /* Child icon */
        }
        
        .middle-btn::before {
            content: "\f549"; /* School icon */
        }
        
        .secondary-btn::before {
            content: "\f19d"; /* Graduation cap */
        }
.filier-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    min-width: 250px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 0;
    z-index: 100;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    text-align: right;
    font-size: 16px;
    font-weight: 700;
}


        .subject-item {
            position: relative;
            margin-bottom: 0;
            border: 1px solid #e2e8f0;
            border-radius: 0;
            padding: 5px 15px;
            transition: all 0.3s;
            border-left: none;
            border-right: none;
            justify-content: space-between;
            align-items: center;
            color: #2d3748;
            text-decoration: none;
            font-weight: 600;
           
        }
        

        .subject-item:first-child {
            border-top: none;
        }

        .subject-item:last-child {
            border-bottom: none;
        }
        
        .subject-item a {
            text-decoration: none;
            color: #2d3748;
            display: block;
            width: 100%;
            height: 100%;
        }
        
        .subject-item:hover {
            background-color: #f8f9fa;
            border-color: #cbd5e0;
        }
        
        .subject-item::after {
            content: ">";
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #718096;
        }
        
        .levels-dropdown {
            display: none;
            position: absolute;
            right: 100%;
            top: 0;
            background-color: white;
            min-width: 230px;
            border-radius: 4px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            z-index: 101;
            padding: 10px;
            border: 1px solid #e2e8f0;
           
        }
        
        .subject-item:hover .levels-dropdown {
            display: block;
        }
        
        .levels-dropdown a {
            display: block;
            padding: 8px 15px;
            color: #2d3748;
            text-decoration: none;
            border-radius: 4px;
            margin: 3px 0;
            transition: all 0.2s;
        }
        
        .levels-dropdown a:hover {
            background-color: #edf2f7;
            padding-right: 20px;
        }
        
        .primary-dropdown .subject-item:hover {
            background-color: #ebf8ff;
            border-color: #90cdf4;
        }
        
        .middle-dropdown .subject-item:hover {
            background-color: #f0fff4;
            border-color: #9ae6b4;
        }
        
        .secondary-dropdown .subject-item:hover {
            background-color: #fffaf0;
            border-color: #fbd38d;
        }
        
        .dropdown-hidden-items {
            display: none;
        }
        
        .dropdown-more-btn {
            display: block;
            text-align: center;
            padding: 8px;
            margin-top: 5px;
            background: #f5f5f5;
            color: #555;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid #e2e8f0;
        }
        
        .dropdown-more-btn:hover {
            background: #e0e0e0;
        }
        
        .show-more-dropdown .dropdown-hidden-items {
            display: block;
            animation: fadeIn 0.3s ease-out;
        }
        
        .show-more-dropdown .dropdown-more-btn::after {
            
            font-size: 0.8em;
        }
        
        .header-spacer {
            height: 100px;
        }
        .main-content {
            display: flex;
            flex-direction: column;
            flex: 1;
            padding: 30px;
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
        }
        
      
      .elegant-title-container {
          width: 100%;
          max-width: 1200px;
          margin: 40px auto;
          text-align: center;
      }

      .elegant-divider {
          position: relative;
          height: 3px;
          background: linear-gradient(to right, 
              transparent 0%, 
              #e0e0e0 20%, 
              #e0e0e0 80%, 
              transparent 100%);
          margin: 0px 0;
      }

      
      .elegant-title {
          position: relative;
          display: inline-block;
          padding: 0 25px;
          background: linear-gradient(to right, 
              transparent 0%, 
              #e0e0e0 20%, 
              #e0e0e0 80%, 
              transparent 100%);
          
          font-size: 1.6rem;
          font-weight: 700;
          top: -15px;
         
      }
      
      

      .elegant-title:before {
          right: 100%;
      }

      .elegant-title:after {
          left: 100%;
      }
  

      .search-container {
          position: relative;
          display: inline-block;
          width: 100%;
          max-width: 800px;
          margin: 20px auto;
          padding-left: 200px;
      }

      .search-input {
          width: 100%;
          padding: 14px 60px 14px 40px;
          border-radius: 4px;
          border: 1px solid #e2e8f0;
          font-size: 1rem;
          box-shadow: 0 2px 8px rgba(0,0,0,0.05);
          transition: all 0.3s;
          height: 40px;
      }

      .search-input:focus {
          outline: none;
          border-color: #4a90e2;
          box-shadow: 0 2px 12px rgba(74, 144, 226, 0.2);
      }

      .search-icon {
          position: absolute;
          right: 0px;
          top: 50%;
          transform: translateY(-50%);
          color: #070707;
          width: 40px;
          height: 40px;
          padding: 8px;
          border: 1px solid #e2e8f0;
          border-radius: 4px;
          background-color: #f8fafc;
          box-shadow: 0 1px 2px rgba(0,0,0,0.05);
          transition: all 0.3s ease;
          display: flex;
          align-items: center;
          justify-content: center;
          cursor: pointer;
      }

      .search-icon:hover {
          background-color: #f2f5f8;
          border-color: #fafbfc;
      }

      .search-results {
          position: absolute;
          width: 100%;
          background: white;
          border-radius: 8px;
          box-shadow: 0 5px 15px rgba(0,0,0,0.1);
          z-index: 1000;
          max-height: 400px;
          overflow-y: auto;
          display: none;
      }

      .search-result-item {
          padding: 12px 20px;
          border-bottom: 1px solid #e2e8f0;
          cursor: pointer;
          transition: all 0.2s;
          text-align: right;
      }

      .search-result-item:hover {
          background-color: #f8f9fa;
      }

      .search-result-item i {
          margin-left: 10px;
          color: #4a90e2;
      }
      .highlight-row {
  background-color: #fffae6;
  transition: background-color 0.5s ease;
}

    
    /* الجدول */
.table-container {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.table-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background-color: #f9f9f9;
  border-bottom: 2px solid #eee;
}

.table-header h3 {
  margin: 0;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.files-label {
  font-weight: 500;
}

.files-select {
  padding: 5px 10px;
  font-size: 19px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-weight: bold;
}

.files-count {
  font-weight: bold;
  color: #333;
}

.table-actions span {
  font-size: 16px;
  font-weight: bold;
  color: #666;
}


.table-responsive {
  overflow-x: auto;
  font-size: 16px;
  font-weight: bold;
}

table {
  width: 100%;
  border-collapse: collapse;
}


th, td {
  padding: 5px 8px;
  text-align: right;
  border-bottom: 1px solid #eee;

}

th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #555;
  font-size: 16px;
  font-weight: bold;
}

tr:hover {
  background-color: #f5f5f5;
}

/* روابط الجدول */
table a {
  color: #4a90e2;
  text-decoration: none;
   
}

table a:hover {
  text-decoration: underline;
}
.file-name-cell {
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.0s ease;
  font-weight: bold;
}

.file-name-cell:hover {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  background-color: #fdfdfd;
  max-width: 100%;
}
.file-name-cell:active {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  max-width: 100%;
  background-color: #fffbea;
}

.popup {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup.active {
  display: flex;
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
  .popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-overlay.active {
  display: flex;
}
.close-popup-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #888;
  transition: color 0.3s;
}
.close-popup-btn:hover {
  color: #e74c3c;
}
/* تصميم الزر المسطح */
.flat-upload-btn {
  background: #8ec2fe;
  color: rgb(3, 3, 3);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}
.flat-upload-btn:hover {
  background: #3a7bc8;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.flat-upload-btn i {
  font-size: 16px;
  font-weight: 700;
}

.upload-btn-container {
  text-align: left;
  margin-bottom: 15px;
}

    .upload-popup {
      display: none;
      position: fixed;
      top: 0; right: 0; bottom: 0; left: 0;
      background: rgba(0,0,0,0.5);
      justify-content: center;
      align-items: center;
      z-index: 999;
    }

    .upload-popup.active {
      display: flex;
    }

 .upload-box {
  position: relative;
  background: white;
  padding: 20px 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


    .upload-box h3 {
      margin-bottom: 1rem;
    }

    .upload-box input, .upload-box select {
      width: 100%;
      margin-bottom: 1rem;
      padding: 0.6rem;
      border-radius: 8px;
      border: 1px solid #ccc;
    }

    .upload-box .preview {
      margin: 1rem 0;
      background: #f9f9f9;
      padding: 0.75rem;
      border: 1px dashed #ccc;
      border-radius: 10px;
    }

    .upload-box button {
      padding: 0.6rem 1rem;
      border: none;
      background: #27ae60;
      color: white;
      border-radius: 10px;
      font-weight: bold;
      cursor: pointer;
    }

    .cancel-btn {
      background: #e74c3c;
      margin-right: 10px;
    }
    .cancel-btn:hover {
    color: #e74c3c;
   }
    .upload-status {
      margin-top: 1rem;
      text-align: center;
    }

    progress {
      width: 100%;
      height: 20px;
      margin-top: 10px;
    }
    .file-progress-item {
  background: #f7f7f7;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.file-progress-item progress {
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
}

.file-progress-item progress::-webkit-progress-bar {
  background-color: #e0e0e0;
  border-radius: 6px;
}

.file-progress-item progress::-webkit-progress-value {
  background-color: #4caf50;
}
/* ✅ معاينة الملفات المختارة */
#file-preview-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  border: 1px dashed #ccc;
  border-radius: 10px;
  background: #fafafa;
  padding: 10px;
  max-height: 150px;
  overflow-y: auto;
  font-size: 0.9rem;
}

#file-preview-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-bottom: 1px dashed #e0e0e0;
}

#file-preview-list li:last-child {
  border-bottom: none;
}

/* ✅ جعل نافذة الرفع قابلة للتمرير في الشاشات الصغيرة */
.upload-box {
  max-height: 90vh;
  overflow-y: auto;
}
/* اسم الملف داخل القائمة */
.file-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: rtl; /* حتى يُقص الاسم من اليمين للغة العربية */
}

/* زر الحذف */
.remove-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #e74c3c;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
}

.remove-btn:hover {
  color: #c0392b;
}

    .content-types-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
   }

.content-columns {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.content-column {
  flex: 1;
}

.divider {
  width: 1px;
  background-color: #ddd;
  height: auto;
}

  .footer {
  background: #2d3748;
  color: white;
  padding: 10px 3px;
  text-align: center;
  margin-top: 100px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.footer-track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 15s linear infinite;
  will-change: transform;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* دعم الأجهزة الصغيرة */
@media (max-width: 768px) {
  .footer {
    font-size: 14px;
    padding: 8px 0;
  }

  .footer-track {
    animation-duration: 20s;
    font-size: 14px;
  }
}

 

 @media (max-width: 768px) {
           .main-content {
    padding-right: 270px; /* أو حسب عرض القائمة */
  }

  body {
    padding-right: 250px;
  }

    .header-content {
        flex-direction: row-reverse;
        padding: 5px 15px;
        align-items: center;
    }
    
    .auth-buttons {
        margin-top: 0;
        width: auto;
        gap: 8px;
    }
    
    .auth-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
    .logo-section {
        margin-left: 0;
    }
    
    .logo-section img {
        width: 18px;
        height: 18px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
   
    
    .header-spacer {
        height: 180px;
    }
    
    .horizontal-sections {
        flex-direction: column;
    }
    


    /* تحسين شريط التعليمات */
    .education-filiers {
        padding: 5px 0;
    }
    
    .filiers-container {
        flex-direction: column;
        gap: 5px;
        padding: 0 10px;
    }
    
    .filier-btn {
        min-width: 100%;
        
        font-size: 14px;
    }
    
    /* تحسين القوائم المنسدلة */
    .filier-dropdown {
        position: fixed;
        top: 150px;
        width: 100%;
        left: 5%;
        max-height: 60vh;
        overflow-y: auto;
        z-index: 1000;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        border: 1px solid #e2e8f0;
        margin-top: 5px;
        display: none;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.2s ease;
    }
    
    .filier-btn-container:focus-within .filier-dropdown,
    .filier-dropdown.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    
    .levels-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 5px;
    }
    
   
 .search-container {
    padding-left: 0; /* إزالة الانزياح */
    max-width: 100%;
    margin: 10px auto;
  }

  .search-input {
    padding: 10px 40px 10px 12px; /* تصغير الحشو الداخلي */
    font-size: 0.95rem;
    height: 38px;
  }

  .search-icon {
    width: 36px;
    height: 36px;
    padding: 6px;
    right: 4px;
  }

}

@media (max-width: 480px) {
    
    .subject-item {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    
    
    .more-btn {
        padding: 8px;
        font-size: 14px;
    }
    
    /* تحسينات عامة للهواتف */
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* منع التكبير عند النقر على حقول الإدخال */
    input, select, textarea {
        font-size: 16px;
    }
    
    .filier-dropdown {
        max-height: 50vh;
    }
    .search-input {
    padding: 8px 35px 8px 10px;
    font-size: 0.9rem;
    height: 36px;
  }

  .search-icon {
    width: 32px;
    height: 32px;
    right: 4px;
  }

  .search-container {
    padding: 0 10px;
  }
}



/* Mobile styles - تم التعديل هنا */
@media (max-width: 768px) {
  .user-dropdown {
    position: absolute;
    bottom: auto;
    top: 100%;
    right: 0;
    width: 200px;
  }
}

.content-section {
  max-width: 1200px;
  margin:20px ;
  padding: 0 15px;
  white-space: nowrap;
}
#pagination {
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

#pagination button {
  padding: 5px 10px;
  border: none;
  background-color: #f2f2f2;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
}

#pagination button.active {
  background-color: #007bff;
  color: white;
  font-weight: bold;
}

#pagination button:hover {
  background-color: #ddd;
}

#pagination .dots {
  padding: 5px 10px;
  color: #888;
}

#filesTable {
  transition: opacity 0.3s ease;
}
.fade-out {
  opacity: 0.5;
}
.fade-in {
  opacity: 1;
}

@media (max-width: 768px) {
  /* تصغير خطوط الجدول */
  #contentTable {
    font-size: 0.8rem; /* تصغير حجم الخط الأساسي */
  }
  
  /* تصغير عناوين الأعمدة */
  #contentTable th {
    font-size: 0.75rem;
    padding: 8px 5px;
  }
  
  /* تصغير محتوى الخلايا */
  #contentTable td {
    font-size: 0.7rem;
    padding: 6px 5px;
  }
  
  /* تصغير الروابط */
  #contentTable a {
    font-size: 0.7rem;
    padding: 3px 5px;
  }
  
  /* تصغير أيقونات font-awesome */
  #contentTable .fas {
    font-size: 0.7em;
  }
  #contentTable td {
    white-space: nowrap; /* منع التفاف النص */
    overflow: hidden; /* إخفاء الزائد */
    text-overflow: ellipsis; /* إضافة ... للنص المقطوع */
    max-width: 100px; /* تحديد عرض مناسب */
  }
  
  /* استثناء للأعمدة التي تحتاج عرض كامل */
  #contentTable td:first-child,
  #contentTable td:last-child,
  #contentTable td:nth-last-child(2) {
    max-width: none;
    white-space: normal;
  }
   .table-container {
    padding: 5px; /* تقليل المساحات الداخلية */
  }
  
  .table-header h3 {
    font-size: 0.9rem; /* تصغير عنوان الجدول */
  }
  
  #totalFiles {
    font-size: 0.8rem; /* تصغير عداد الملفات */
  }
}

/* أزر التحميل  في الجدول */
 .btn-download {
  background:  #f60202;
  border: 1px solid #f84646;
  color: #ffffff;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
  font-size: inherit;
  margin: 2px;
}
/* لجعل رابط التحميل يبدو كزر */
.btn-download {
  text-align: center;
  box-sizing: border-box;
   white-space: nowrap;
}


.user-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* النافذة الجانبية */
.side-modal {
  position: fixed;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  overflow-x: hidden;
  transition: width 0.3s ease;
  z-index: 1200;
}

.side-modal.open {
  width:40%;
}
@media (max-width: 768px) {
  .side-modal.open {
    width: 100% !important;
  }
  
  .close-side-modal {
    position: fixed;
    top: 10px;
    left: 10px;
    font-size: 24px;
    font-weight: bold;
    background-color: #f44336;
    color: #fff;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    z-index: 1100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }

  .close-side-modal:hover {
    background-color: #d32f2f;
  }
}



.side-modal-content {
  height: 100%;
  overflow-y: auto;
  padding: 20px;
  direction: rtl;
  display: flex;
  flex-direction: column;
}

.close-side-modal {
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 24px;
  cursor: pointer;
}

#file-show {
  overflow-y: auto;
  height: 90vh;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  position: relative;
  background: #f9f9f9;
  cursor: grab;
}


.file-show-container {
  flex-grow: 1;
  min-height: 400px;
  border: 1px solid #ddd;
  margin-bottom: 20px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative
}
.file-details-list li {
  display: flex ;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
  background: #f9f9f9;
  padding: 8px 12px;
  
  
}


.file-details-list li .file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  
}

.download-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#file-url {
  width: 100%;
  direction: ltr;
  }
.related-file-card {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid #ddd;
  background: #f5faff;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-bottom: 8px;
 

}

.related-file-card:hover {
  background: #e0f0ff;
  transform: translateY(-2px);
}

.related-file-card .file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  color: #333;
}

.related-file-card .file-meta {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.related-file-card .file-download-btn {
  background: #dbeeff;
  border-radius: 50%;
  padding: 8px;
  color: #007bff;
  transition: background 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.related-file-card .file-download-btn:hover {
  background: #bcdfff;
}
/* 🎨 PDF */
.related-file-card.file-pdf {
  background-color: #fff5f5;
  border-left: 4px solid #dc3545;
}

/* 📄 Word */
.related-file-card.file-doc,
.related-file-card.file-docx {
  background-color: #f0f6ff;
  border-left: 4px solid #0d6efd;
}

/* 📊 Excel */
.related-file-card.file-xls,
.related-file-card.file-xlsx {
  background-color: #f1fff3;
  border-left: 4px solid #198754;
}

/* 📽 PowerPoint */
.related-file-card.file-ppt,
.related-file-card.file-pptx {
  background-color: #fffaf4;
  border-left: 4px solid #fd7e14;
}

/* 🧾 نصوص أو أخرى */
.related-file-card.file-txt,
.related-file-card.file-other {
  background-color: #f7f7f7;
  border-left: 4px solid #6c757d;
}

.custom-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 20px;
  color: #444;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  animation: fadeIn 0.5s ease-in-out;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #3d40f7;
  border-top: 6px solid #00ff04;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

.loading-text {
  font-size: 16px;
  font-weight: 500;
  color: #007bff;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
.error-message {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  animation: fadeIn 0.5s ease-in-out;
}

.error-message i {
  font-size: 32px;
  margin-bottom: 10px;
  color: #ffc107;
}

.error-message h3 {
  margin: 0;
  font-size: 20px;
}

.error-message p {
  margin-top: 5px;
  font-size: 14px;
}

#file-show {
  overflow: auto;
  height: 90vh;
  background: #f5f5f5;
  position: relative;
}

#pdf-pages-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px auto ;
  padding: 20px;
  height: 130vh;
  position: relative;
 
}

.pdf-page-wrapper {
  width: fit-content;
}


.pdf-page-wrapper {
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  background: white;
  padding: 10px;
  border-radius: 8px;
}

.pdf-controls {
  display: flex;
  justify-content: start;
  gap: 10px;
  margin-bottom: 15px;
  background: #f7f7f7;
  padding: 10px;
  border-radius: 8px;
  position: sticky;
  top: 0;
  z-index: 10;
  border: 1px solid #ddd;
}

.pdf-controls button {
  background: #ffffff;
  border: 1px solid #ccc;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s ease;
}

.pdf-controls button:hover {
  background: #eaeaea;
}
.floating-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.floating-controls button {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 6px;
  cursor: pointer;
}

#file-show.dragging {
  cursor: grabbing;
  user-select: none;
}
/* حاوية الأزرار */
#dynamic-buttons.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
  font-size: 19px;
  font-weight: bold;
}


.alert-box {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.alert-box.success {
  background-color: #28a745;
}

.alert-box.error {
  background-color: #dc3545;
}

.alert-box.hidden {
  opacity: 0;
  pointer-events: none;
}



/* زر المستوى */
.level-buttons {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.level-btn {
  padding: 5px;
  background-color: #e9ecef;
  border: none;
  border-radius: 1px;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s;
  font-weight: bold;
  
}

.level-btn:hover,
.level-btn.active {
  background-color: #007bff;
  color: white;
}
/* زر المزيد */
.more-btn {
  background-color: #e0e0e0; /* رمادي فاتح */
  color: #333;
  border: none;
  padding: 8px 14px;
  margin: 4px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.more-btn:hover {
  background-color: #c0c0c0; /* رمادي أغمق */
}
/* ✅ الحاوية الرئيسية */
#dynamic-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  font-weight: bold;
  font-size: 16px;
}

/* ✅ الصندوق الكامل */
.box-wrapper {
  border: 1px solid #ccc;
  border-radius: 0px;
  padding: 12px;
  background: #f9f9f9;
  transition: all 0.3s ease;
}

/* ✅ الأزرار الثلاثة الأولى */
.top-box {
  display: flex;
  flex-direction: column; /* ✅ تجعلها في عمود واحد مثل البقية */
  gap: 10px;
}

/* ✅ بقية الأزرار (المخفية) */
.bottom-box {
  display: none;
  flex-direction: column;
  gap:10px;
  margin-top: 10px;
  padding-top: 10px;
  
  animation: slideDown 0.3s ease;
}

/* ✅ زر السهم */
.toggle-sections-btn {
  background-color: #e0e0e0;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease;
  text-align: center;
  width: 100%; /* ✅ يأخذ عرض الحاوية */
  box-sizing: border-box;
}

.toggle-sections-btn:hover {
  background-color: #d0d0d0;
}

/* ✅ كل الأزرار */
#dynamic-buttons button {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  color: #333;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  width: 100%; /* ✅ كل زر بعرض الحاوية */
  box-sizing: border-box;
  text-align: center;
}

/* ✅ عند تمرير الماوس */
#dynamic-buttons button:hover {
  background-color: #007bff;
  color: white;
}

/* ✅ الزر النشط */
#dynamic-buttons button.active {
  background-color: #007bff;
  color: white;
  border-color: #0056b3;
  font-weight: bold;
}

/* ✅ حركة انسيابية عند الفتح */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* عام لكل الأيقونات */
.toggle-icon {
  font-size: 24px;
  color: #007bff;
  transition: transform 0.3s ease, color 0.3s ease;
  user-select: none;
  cursor: pointer;
  text-align: center;

  /* ✅ توسيط أفقي */
  display: block;
  margin:0px auto 10 auto; /* أعلى 10px، أوتوماتيك يمين ويسار */
}

/* عند التحويم */
.toggle-icon:hover {
  color: #0056b3;
  transform: scale(1.2);
}

/* ⏫ داخل المقاطع */
.bottom-box .close-icon {
  margin-top: 16px;
  padding-top: 10px;
}


/* الأنواع */
.side-toolbar-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* ألوان مخصصة حسب النوع */
/* ألوان مخصصة لكل نوع محتوى */
.type-lessons i { color: #fbbfab; }              /* ملخصات ودروس */
.type-ford i { color: #e53935; }                 /* فروض */
.type-exam i { color: #1e88e5; }                 /* اختبارات */
.type-practice i { color: #43a047; }             /* تمارين */
.type-note i { color: #fb8c00; }                 /* مذكرات */
.type-eval i { color: #8e24aa; }                 /* تقويمات تشخيصية */
.type-certificate i { color: #ffd600; }
.type-BACcertificate i { color: #ffd600; }   
.type-integration i { color: #00bcd4; }          /* وضعيات ادماجية */
.type-plan i { color: #5e35b1; }                 /* مخططات سنوية */
.type-schedule i { color: #039be5; }             /* تدرجات شهرية */
.type-ref i { color: #4d0101; }                  /* مراجع */
.type-books i { color: #2b1b15; }                /* كتب مدرسية */
.type-template i { color: #00796b; }             /* نماذج مذكرات فارغة */
.type-documents i { color: #61837f; }            /* وثائق مساعدة للأستاذ */
.type-student i { color: #3949ab; }              /* كراس التلميذ */
.type-other i { color: #9e9e9e; }                /* أخرى */


.content-type {
  display: block;
  align-items:center;
  gap: 0px;
  background-color: white;
  padding: 5px;
  border-radius: 2px;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  font-weight: bold;
  font-size: 16px;
}

.content-type:hover,
.content-type.active {
  background-color: #28a745;
  color: white;
}

.content-type i {
  min-width: 5px;
  
}



/* تعديل المساحة الأساسية لتجنب تغطية المحتوى */
body {
  padding-right: 290px;
}
/* القائمة الجانبية المثبتة */
.side-toolbar {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background-color: #f9f9f9;
  border-left: 1px solid #ccc;
  padding: 15px 10px;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.05);
  z-index: 1100;
  display:flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

/* زر القائمة الجانبية */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 500px;
  right: 0px;
  z-index: 2001;
  background-color: #026cf7;
  color: rgb(255, 255, 255);
  border: none;
  padding: 1px 1px;
  font-size: 20px;
   border-radius: 50% 0 0 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}
.sidebar-toggle:hover {
  background-color: #0011fa;
}
/* عرض الزر فقط على الشاشات الصغيرة */
@media (max-width: 768px) {
  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 80px;
    background: transparent; /* خلفية شفافة */
    color: #007bff; /* لون الأيقونة أو النص */
      
    border-radius: 50% 0 0 50%; /* نصف دائرة من اليمين */
    cursor: pointer;
    
    /* نبض */
    animation: pulse 1.5s infinite;

    /* تموضع في منتصف الشاشة */
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1000;
  }

  body {
    padding: 0 !important;
  }

  .main-content {
    padding: 20px 15px !important;
  }

  .side-toolbar {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    right: 0;
  }

  .side-toolbar.open {
    transform: translateX(0%);
  }
}

/* أنيميشن النبض */
@keyframes pulse {
  0% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.6);
  }
  70% {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0 0 20px rgba(0, 123, 255, 0);
  }
  100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}


.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1099;
}
.sidebar-overlay.show {
  display: block;
}
.selected-level-text {
          position: relative;
          display: inline-block;
          padding: 0 25px;
          background: #3045ff;
          color: rgba(255, 255, 255, 0.993);
          font-size: 1.6rem;
          font-weight: 700;
          top: -15px;
          text-shadow: 0 2px 4px rgba(0,0,0,0.05);
          border-radius: 20px;
      }
.hidden {
  display: none !important;
}

.notif-badge {
  position: absolute;
  top: -25px;
  right: -6px;
  background: red;
  color: white;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 50%;
  display: none;
  font-weight: bold;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
  z-index: 1000;
}


.notif-dropdown {
  position: absolute;
  top: 30px;
  right: 0;
  width: 320px;
  max-height: 400px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 9999;
  padding: 10px;
  overflow-y: auto;
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 0px;
  margin-bottom: 0px;
}

.clear-btn {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-size: 12px;
}

.admin-message {
  background: #f9f9f9;
  border-left: 4px solid #007bff;
  padding: 10px;
  margin-bottom: 5px;
  border-radius: 6px;
  font-size: 13px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
  0% { transform: scale(0); }
  80% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* الزر */
#newFilesBtn {
  position: relative; 
  color: #610000; 
}

/* النقطة الحمراء */
#newFilesBtn::after {
  content: "";
  position: absolute;
  top: 5px;  /* يمكن تعديل الموقع */
  left: 5px;
  width: 10px;
  height: 10px;
  background-color: red;
  border-radius: 50%;
  animation: pulse 1.2s infinite; /* حركة النبض */
  display: none;
}
/* لما يضاف كلاس has-new → تظهر */
#newFilesBtn.has-new::after {
  display: block;
}
/* حركة النبض */
@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.7;
  }
}
#newFilesList li.placeholder {
  display: block; /* يلغي flex */
  text-align: center;
  font-style: italic;
  padding: 10px;
}
.placeholder {
  text-align: center;
  color: #090909;
  font-style: italic;
  font-size: 14px;
  padding: 10px;
  border: 1px dashed #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  margin: 5px 0;
}



#newFilesBtn::before {
  content: "\f07c"; /* Unicode أيقونة folder-open */
  font-family: "Font Awesome 6 Free"; 
  font-weight: 900;  /* fas */
  font-size: 18px;
  color: rgb(255, 179, 0);
  margin-right: 6px;
}
/* القائمة الجديدة */
#newFilesDropdown {
  position: absolute;
  top: 100%;
  right: -50px;

  min-width: 250px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 1000;

  /* مخفية افتراضيًا */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.25s ease;
}
/* 📱 تعديل للشاشات الصغيرة (أقل من 600px) */
@media (max-width: 600px) {
  #newFilesDropdown {
    right: 0;          /* يخليها تلاصق الزر من اليمين */
    left: 0;           /* أو تمدد العرض كامل */
    min-width: unset;  /* نحذف العرض الثابت */
    width: 90vw;       /* تاخذ 90% من عرض الشاشة */
    margin: 0 auto;    /* تتمركز */
  }
}
#newFilesDropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}




/* قائمة الملفات */
#newFilesList {
  list-style: none;
  margin: 0;
  padding: 0;
}
#newFilesList li {
  display: flex;
  align-items: center;   /* يخلي كل العناصر في نفس الخط عموديًا */
  justify-content: space-between; /* يخلي التاريخ يلصق لليمين */
  gap: 10px;
  padding: 6px 12px;
  border-bottom: 1px solid #f1f1f1;
  font-size: 1rem;
}

/* داخل li عندنا .file-info (الأيقونات + الاسم) */
.file-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1; /* ياخذ كل المساحة المتاحة */
  min-width: 0; /* يسمح بالقص */
}


/* الأيقونة */
#newFilesList i {
  font-size: 18px;
  color: #007bff;
  flex-shrink: 0; /* ما تنضغطش */
  cursor: pointer;
  transition: transform 0.2s ease;
}


#newFilesList i:hover {
  transform: scale(1.1);
}
/* اسم الملف */
.file-name {
  flex: 1;          
  min-width: 0;     
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;

  font-family: "Tajawal", Arial, sans-serif; /* خط عربي أوضح */
  font-size: 0.95rem; /* حجم مناسب */
  font-weight: 600;   /* خط أوضح */
  color: #222;        /* وضوح اللون */
  max-width: 150px;   /* تحديد عرض أقصى للاسم */
}

.file-name:hover {
  transform: scale(1.03);
  color: #000;
}


/* التاريخ */
.file-date {
  flex-shrink: 0;   /* التاريخ يبقى ثابت */
  font-size: 0.85rem;
  color: #666;
  white-space: nowrap;
  margin-left: 10px;
}
