@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');
:root
{
--mainColor :#7b61ff;
--whiteColor:#fff
}
body{
margin:0px;
padding: 0px;
background-color: #f1f1f1 !important;
/*! overflow-x: hidden */
}

*{
box-sizing: border-box;
   font-family: 'Cairo', sans-serif;
}

.allds
{
   background: #fff !important;
   /*! position: absolute !important; */
   background: unset !important;
   width: 100%;
   border-bottom: 1px solid #ffffff14;
   z-index: 99999;
   position: relative;
}
img
{
object-fit: cover;
object-position: center
}

ul{
list-style: none;
}
.container
{
max-width: 90% !important;
margin-right: 231px !important;
}
a{
text-decoration: none;
font-size: 14px !important;
direction: rtl;
}
a:hover
{
text-decoration: none;
}
section{
  margin-top: 60px
}
.header
{
background-color: #f4f2f2;
position: relative;
}
.header nav
{
padding: 00px 0;
z-index: unset !important;
/*! background: white; */
}
.header .navbar-brand img
{
width: 145px;
/*! margin-left: 40px; */
margin: 6px 20px;
}
.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    height: 100vh;
    position: fixed;
    overflow-y: auto;
    right: 0;
    z-index: 9999999999999999999999999999999;
    top: 0;
}

.main-content {
    flex: 1;
    margin-right: 250px;
    background-color: #f8f9fa;
    padding: 20px;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #34495e;
    background-color: #34495e;
}

.sidebar-menu {
    padding: 10px 0;
    overflow: hidden;
}

.sidebar-menu .nav-link {
    color: #ecf0f1;
    padding: 12px 20px;
    border-radius: 0;
    display: block;
    align-items: center;
    transition: all 0.3s;
    text-align: right;
    direction: rtl;
}

.sidebar-menu .nav-link:hover {
    background-color: #34495e;
}

.sidebar-menu .nav-link.active {
    background-color: #3498db;
    border-right: 4px solid #1abc9c;
}

.sidebar-menu .nav-link i {
    /*! margin-left: 10px; */
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-section {
    padding: 15px 20px;
    font-weight: 600;
    color: #bdc3c7;
    margin-top: 10px;
    font-size: 14px;
    border-bottom: 1px solid #34495e;
}
/* الوضع العادي */
.sidebar {
    width: 250px;
    transition: width 0.3s;
}

/* عند الإغلاق */
.sidebar.collapsed {
    width: 80px;
}

/* إخفاء النصوص لما يكون Collapsed */
.sidebar.collapsed .link-text {
    display: none;
}

/* ضبط الأيقونات بالنص */
.sidebar .nav-link i {
    font-size: 17px;
    width: 24px;
    text-align: center;
    /*! margin-left: 10px; */
    background: var(--mainColor);
    color: white;
    border-radius: 7px;
}

/* تعديل الـ main-content حسب حالة الـ Sidebar */
.main-content {
    margin-right: 250px;
    transition: margin-right 0.3s;
}

.sidebar.collapsed ~ .main-content {
    margin-right: 80px;
}


/* تصميم القائمة المنسدلة */
.dropdown-menu {
    background-color: #13212f;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    width: 100%;
}

.dropdown-item {
    color: #ecf0f1;
    padding: 12px 20px 12px 40px;
    /*! border-bottom: 1px solid #3c5065; */
    transition: all 0.3s;
    text-align: right;
    font-size: 13px;
}

.dropdown-item:hover {
    background-color: #3498db;
    color: white;
}

.dropdown-toggle::after {
    margin-right: auto;
    margin-left: 10px;
}

.top-bar {
    background-color: white;
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    /*! justify-content: space-between; */
    align-items: center;
    margin-bottom: 20px;
    border-radius: 8px;
    flex-direction:  row-reverse !important;
    justify-content: start;
}

.page-title {
    margin: 0;
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    flex-direction: row-reverse;
    flex-direction: row;
}

.stat-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 10px 0;
}

.stat-details {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
}

.stat-item-value {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.stat-item-label {
    font-size: 14px;
    color: #7f8c8d;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    text-align: right;
}

.logo {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.logo span {
    color: #1abc9c;
}

.icon-1 { background-color: #e3f2fd; color: #1565c0; }
.icon-2 { background-color: #e8f5e9; color: #2e7d32; }
.icon-3 { background-color: #fff3e0; color: #ef6c00; }
.icon-4 { background-color: #fbe9e7; color: #d84315; }
.icon-5 { background-color: #e8eaf6; color: #283593; }
.icon-6 { background-color: #f3e5f5; color: #7b1fa2; }
.main-container {
      background: white;
      border-radius: 15px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      margin-bottom: 20px;
  }

  .header {
      background: var(--gradient);
      color: white;
      padding: 25px;
      border-radius: 15px 15px 0 0;
  }

  .header h1 {
      font-weight: 700;
      margin: 0;
      font-size: 2.2rem;
  }

  .content {
      padding: 25px;
  }

  .section-title {
      color: var(--primary);
      border-bottom: 2px solid var(--primary);
      padding-bottom: 10px;
      margin-bottom: 20px;
      font-weight: 600;
      /*! display: flex; */
      align-items: center;
      text-align: right;
      padding-right: 18px;
  }

  .section-title i {
      margin-left: 10px;
      font-size: 1.4rem;
  }

  .info-card {
      background: var(--light);
      border-radius: 10px;
      padding: 15px;
      margin-bottom: 20px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
      transition: transform 0.3s;
  }

  .info-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  }

  .info-card h6 {
      color: var(--secondary);
      font-weight: 600;
      margin-bottom: 10px;
  }

  .divider {
      height: 2px;
      background: linear-gradient(to right, transparent, var(--primary), transparent);
      margin: 25px 0;
  }

  .table-container {
      background: var(--light);
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }

  .table th {
      background: var(--mainColor);
      color: white;
      font-weight: 500;
      padding: 20px;
      border: unset !important;
      font-size: 15px;
  }

  .table td {
      padding: 15px;
      vertical-align: middle;
      font-size: 13px;
  }

  .table-hover tbody tr:hover {
      background-color: rgba(67, 97, 238, 0.1);
  }

  .pagination-info {
      background: var(--light);
      padding: 10px 15px;
      border-radius: 10px;
      margin: 15px 0;
      font-weight: 500;
  }

  .show-entry {
      display: flex;
      align-items: center;
      background: var(--light);
      padding: 10px 15px;
      border-radius: 10px;
      margin: 15px 0;
      font-weight: 500;
  }

  .footer {
      text-align: center;
      padding: 20px;
      color: #6c757d;
      font-size: 0.9rem;
  }

  .badge-success {
      background: var(--success);
      color: white;
      padding: 5px 10px;
      border-radius: 20px;
      font-size: 0.8rem;
  }

  @media (max-width: 768px) {
      .header h1 {
          font-size: 1.8rem;
      }

      .content {
          padding: 15px;
      }
  }
  .main-container {
             background: white;
             border-radius: 15px;
             box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
             overflow: hidden;
             margin-bottom: 20px;
         }

         .header {
             background: var(--gradient);
             color: white;
             padding: 20px;
             border-radius: 15px 15px 0 0;
             display: flex;
             justify-content: space-between;
             align-items: center;
             justify-content: end;
         }

         .header h1 {
             font-weight: 700;
             margin: 0;
             font-size: 1.8rem;
         }

         .language-switcher {
             display: flex;
             gap: 10px;
         }

         .lang-btn {
             background: rgba(255, 255, 255, 0.2);
             color: white;
             border: none;
             padding: 5px 15px;
             border-radius: 20px;
             transition: all 0.3s;
         }

         .lang-btn:hover, .lang-btn.active {
             background: rgba(255, 255, 255, 0.3);
         }

         .content {
             padding: 25px;
         }

         .form-card {
             background: #34495e0d;
             border-radius: 10px;
             padding: 20px;
             margin-bottom: 25px;
             box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
         }

         .form-label {
             font-weight: 600;
             color: var(--secondary);
             margin-bottom: 8px;
         }

         .form-control, .form-select {
             border-radius: 8px;
             padding: 12px 15px;
             border: 1px solid #e2e8f0;
             transition: all 0.3s;
             height: 51px !important;
             width: 100% !important;
             text-align: right;
         }

         .form-control:focus, .form-select:focus {
             border-color: var(--primary);
             box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
         }

         .file-upload {
             position: relative;
             overflow: hidden;
             display: inline-block;
             width: 100%;
         }

         .file-upload-btn {
             border: 2px dashed #ccc;
             color: #666;
             background-color: white;
             padding: 15px;
             border-radius: 8px;
             text-align: center;
             width: 100%;
             cursor: pointer;
             transition: all 0.3s;
         }

         .file-upload-btn:hover {
             border-color: var(--primary);
             color: var(--primary);
         }

         .file-upload-input {
             position: absolute;
             left: 0;
             top: 0;
             opacity: 0;
             width: 100%;
             height: 100%;
             cursor: pointer;
         }

         .checkbox-container {
             display: flex;
             align-items: center;
             gap: 10px;
             margin-bottom: 15px;
         }

         .form-check-input {
             width: 20px;
             height: 20px;
             margin-top: 0;
         }


         .btn-primary:hover {
             transform: translateY(-2px);
             box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
         }

         @media (max-width: 768px) {
             .header {
                 flex-direction: column;
                 gap: 15px;
             }

             .content {
                 padding: 15px;
             }
         }
.form-card
{
    text-align: right
}
.form-card input{
    height: 60px !important;
    text-align: right !important;
}
.addspace .header{
    text-align: right !important;
    display: unset;
    direction: rtl
}.alert-modern {
    border: none;
    border-radius: 12px;
    padding: 18px 25px;
    font-weight: 500;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    animation: slideIn 0.5s ease-out;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    width: 40%;
    margin: auto;
}

.alert-modern:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
}

.alert-modern.success {
    background-color: #f0fdf4;
    color: #166534;
    text-align: center;
    padding: 80px 0;
}

.alert-modern.success:before {
    background-color: #22c55e;
}

.alert-modern.danger {
    background-color: #fef2f2;
    color: #991b1b;
}

.alert-modern.danger:before {
    background-color: #ef4444;
}

.alert-icon {
    margin-left: 15px;
    font-size: 24px;
    flex-shrink: 0;
}

.alert-content {
    flex-grow: 1;
}

.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    padding: 0;
    margin-right: 10px;
    color: inherit;
}

.alert-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}

.alert-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: rgba(0,0,0,0.1);
}

.alert-progress:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    animation: progress 2s linear;
}

.success .alert-progress:after {
    background-color: #22c55e;
}

.danger .alert-progress:after {
    background-color: #ef4444;
}
.image-upload-area {
  border: 2px dashed #ccc;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: 0.3s ease;
}
.image-upload-area:hover {
  background-color: #eef1f5;
  border-color: #777;
}
.upload-icon {
  font-size: 2.5rem;
  color: #666;
  margin-bottom: 10px;
}
.image-upload-area p {
  margin: 0;
  font-size: 16px;
  color: #444;
}
.image-preview {
  margin-top: 15px;
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #ddd;
}
.card-body{
    padding: 0;
    text-align: right;
    border: unset !important;
}

.content form label
{
    text-align: right;
    display: block;
    font-weight: normal;
}
.btn-primary
{
    background: var(--mainColor);
    color: white !important;;
    border: unset
}
.addspace .header h1{
    font-size: 19px;
    background: #34495e12;
    padding: 20px;
    border-radius: 10px;
    /*! font-weight: normal; */
}
.addspace select
{
  width: 100% !important;
  text-align: right;
}
.addspace input,.addspace select, .addspace textarea
{
  text-align: right;
}
.editspace .header h1{
    text-align: right !important;
    direction: rtl;
    font-size: 23px;
}
.editspace form h4{
    font-size: 20px;
    direction: rtl;
    border-bottom: 1px solid #0000001a;
    padding-bottom: 20px;
    color: #444343;
}
.editspace input, .editspace textarea, .editspace select
{
    text-align: right;
    background: unset
}
.editspace label{
  text-align: right;;
  display: block;
}
.appearance-settings  .section-header
{
    flex-direction: row-reverse
}
.appearance-settings label{
    display: block;
    text-align: right;
}
.appearance-settings h5{
    text-align: right;
    direction: rtl
}
.appearance-settings .toggle{
    flex-direction: row-reverse
}
.appearance-settings .btn-success{
    background: var(--mainColor) !important;
    border: unset
}
.form-switch label{
    margin-right: 40px
}
.stats-card {
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s ease-in-out;
}

.stats-card:hover {
  transform: translateY(-4px);
}

.stats-icon {
  font-size: 35px;
  color: #7b61ff;
  background: #f2efff;
  border-radius: 12px;
  padding: 10px 14px;
  flex-shrink: 0;
  margin-left: 10px;
}

.stats-info {
  text-align: right;
  flex-grow: 1;
}

.stats-info h5 {
  font-size: 14px;
  color: #777;
  margin-bottom: 3px;
}

.stats-info h3 {
  color: #6c47ff;
  font-weight: bold;
  margin: 0;
}

.chart-card {
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 25px;
  height: 400px;
}

.chart-title {
  font-weight: 600;
  margin-bottom: 15px;
}
.sidebar .bi-chevron-down
{
    background: unset !important;
    color: black !important;
}
.dropdown-toggle::after{
  display: none !important
}
#toggleSidebar
{
    background: var(--mainColor);
    color: white !important;
    border: unset;
    margin-right: 10px
}
.login-page
{
    margin-top: 80px
}
.account-page input{
    border: unset;
    background: #f1f1f1 !important;
    text-align: right
}
.account-page .btn{
    background: var(--mainColor) !important;;
    width: 100%;
    margin: 10px 0;
    text-align: center
}
.account-page a:nth-of-type(2)
{
        color: #9b9b9b;
    display: block;
    text-align: right;

}
.account-page a:nth-of-type(3)
{
    color: var(--mainColor) !important;
    font-weight: bold
}
.account-page select{
  text-align: right !important
}

.account-page label{
  display: block;;
  text-align: right;
}
/* Default (hidden) dropdown state */
.dropdown-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.35s ease;
  background: #e4defd;
  border: none;
  margin: 10px 34px !important;
  padding: 0;
  width: 82%;
  border-radius: 10px;
  margin-top: 10px !important;
}

/* Active (open) dropdown animation */
.dropdown.active .dropdown-menu {
  max-height: 500px; /* big enough to fit items */
  opacity: 1;
  transform: translateY(0);
}
.tranfer-page
{
    text-align: right;
    background: #7b61ff24;;
    margin: 20px;
    width: 100%;
    padding: 12px;
    border-radius: 15px;
}
.tranfer-page ul{
    display: flex;
    justify-content: end;
    flex-direction: row-reverse;
    margin: 0;
}
.tranfer-page a{
    margin: 0px 4px;
    color: #5e5e5e;
    position: relative;
    font-size: 13px !important;
}
.tranfer-page .container-fluid{
    padding: 0
}
.tranfer-page a::before{
    content: '<' !important;
    margin-right: 10px
}
.tranfer-page ul li:last-child a::before {
    display: none
}

/* Modern Card Styles */
.card-modern {
    background: #fff;
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header-modern {
    background: linear-gradient(135deg, #2b5580 0%, #3a7bd5 100%);
    color: white;
    padding: 25px 30px;
    border-bottom: none;
}

.card-title-modern {
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
}

/* Page Header */
.page-header-modern {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-weight: 800;
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    direction: rtl;
    font-size: 21px;
}

.page-subtitle {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

/* Statistics Cards */
.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2b5580, #3a7bd5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.8rem;
}

.stat-number {
    font-weight: 800;
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-weight: 600;
    margin: 0;
}

/* Modern Table Styles */
.table-responsive-modern {
    border-radius: 15px;
    overflow: hidden;
}

.table-modern {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table-header-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.table-header-modern th {
    border: none;
    padding: 20px 15px;
    font-weight: 700;
    color: #2c3e50;
    font-size: 0.95rem;
    border-bottom: 2px solid #dee2e6;
}

.table-row-modern {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f3f4;
}

.table-row-modern:hover {
    background: #f8f9ff;
    transform: scale(1.002);
}

.table-row-modern td {
    padding: 20px 15px;
    vertical-align: middle;
    border: none;
}

/* Category Icon */
.category-icon {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.icon-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.icon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
}

.category-icon:hover .icon-overlay {
    opacity: 1;
}

.category-icon:hover .icon-img {
    transform: scale(1.1);
}

/* Category Info */
.category-info {
    text-align: right;
}

.category-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1rem;
}

.category-desc {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 0;
}

/* Badge Styles */
.badge-id {
    background: linear-gradient(135deg, #2b5580, #3a7bd5);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.status-badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.status-active {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.status-inactive {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.sort-order {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.date-info {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-action {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-edit {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.btn-edit:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-2px);
}

.btn-view {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.btn-view:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

.btn-delete {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.btn-delete:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
}

/* Table Footer */
.table-footer {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Modern Button */
.btn-primary-modern {
    background: linear-gradient(135deg, #2b5580 0%, #3a7bd5 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(43, 85, 128, 0.3);
    color: white;
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(43, 85, 128, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .stat-card {
        margin-bottom: 20px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }

    .btn-action {
        width: 35px;
        height: 35px;
    }

    .category-info {
        text-align: center;
    }
}
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #8b5cf6;
  --secondary: #f8fafc;
  --accent: #06d6a0;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --sidebar-bg: #1e293b;
  --sidebar-text: #f8fafc;
  --sidebar-hover: #334155;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Modern Top Bar */
.modern-top-bar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 0;
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: 70px;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 100%;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: var(--secondary);
  color: var(--primary);
}

.search-container {
  position: relative;
  flex: 0 1 400px;
  margin: 0 2rem;
}

.search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.search-input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--secondary);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--card-bg);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.action-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 10px;
  color: var(--text-light);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: var(--secondary);
  color: var(--text);
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* User Profile */
.user-profile-wrapper {
  position: relative;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-profile-btn:hover {
  background: var(--secondary);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.user-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.user-role {
  font-size: 0.8rem;
  color: var(--text-light);
}

.dropdown-arrow {
  transition: transform 0.3s ease;
  color: var(--text-light);
}

/* User Dropdown Menu */
.user-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -98px;
  margin-top: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.user-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  right:   !important;
}

.dropdown-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
}

.user-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-details h4 {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
}

.user-details p {
  margin: 0.25rem 0 0 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: right;
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--secondary);
  color: var(--primary);
}

.dropdown-item.logout-item {
  color: #ef4444;
}

.dropdown-item.logout-item:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* Modern Sidebar */
.modern-sidebar {
  position: fixed;
  top: 70px;
  right: 0;
  width: 280px;
  height: calc(100vh - 70px);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  transition: transform 0.3s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(0);
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sidebar-text);
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--sidebar-text);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.sidebar-close:hover {
  background: var(--sidebar-hover);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 1.5rem;
}

.nav-section-label {
  padding: 0 1.5rem 0.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: right;
  justify-content: end;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  background: var(--sidebar-hover);
  color: var(--sidebar-text);
}

.nav-link.active {
  border-right: 3px solid var(--primary);
}

.nav-link i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.badge {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-right: auto;
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
  text-align: right;
  justify-content: end;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: #cbd5e1;
  background: none;
  border: none;
  width: 100%;
  text-align: right;
  cursor: pointer;
  transition: all 0.3s ease;
  justify-content: start;
  text-align: right;
  direction: rtl;
}

.nav-dropdown-btn:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text);
}

.dropdown-icon {
  margin-right: auto;
  transition: transform 0.3s ease;
}

.nav-dropdown.active .dropdown-icon {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.nav-dropdown.active .nav-dropdown-menu {
  max-height: 500px;
}

.sub-link {
  padding-right: 3rem;
  font-size: 0.9rem;
}

.sub-link i {
  font-size: 1rem;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid #334155;
}

.upgrade-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 1.25rem;
  border-radius: 12px;
  text-align: center;
  color: white;
}

.upgrade-card i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.upgrade-text strong {
  display: block;
  margin-bottom: 0.25rem;
}

.upgrade-text small {
  opacity: 0.9;
}

.upgrade-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin-top: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.upgrade-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
  .modern-sidebar {
    transform: translateX(100%);
    width: 300px;
  }

  .modern-sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: block;
  }

  .search-container {
    display: none;
  }

  .top-bar-content {
    padding: 0 1rem;
  }

  .user-info {
    display: none;
  }
}

/* Main Content Adjustment */
.main-content {
  margin-right: 280px;
  margin-top: 70px;
  padding: 2rem;
  min-height: calc(100vh - 70px);
  background: var(--secondary);
  transition: margin-right 0.3s ease;
}

@media (max-width: 768px) {
  .main-content {
    margin-right: 0;
  }
}/* When sidebar is collapsed (desktop view) */
.modern-sidebar.collapsed {
  width: 80px; /* Make it smaller */
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Optional: hide sidebar text when collapsed */
.modern-sidebar.collapsed .nav-link span,
.modern-sidebar.collapsed .logo-text,
.modern-sidebar.collapsed .nav-section-label {
  display: none;
}

/* Optional: center icons when collapsed */
.modern-sidebar.collapsed .nav-link i {
  margin: 0 auto;
  display: block;
  text-align: center;
}
