/* ================================
   ⚡ Admin Dashboard Styling (Responsive Enhanced)
   ================================ */

.vd-sidebar-col {
  position: sticky;
  top: 90px;
  align-self: flex-start;
  height: fit-content;
  z-index: 10;
}

.vd-sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* ================================
   Sidebar Tabs
   ================================ */

.nav-pills .nav-link {
  background: #fff;
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 8px;
  text-align: right;
  font-weight: 600;
  color: #333;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.2s;
  justify-content: flex-start;
}

.nav-pills .nav-link i {
  font-size: 17px;
}

.nav-pills .nav-link:hover {
  background: #ececec;
}

.nav-pills .nav-link.active {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}


/* ================================
   Dashboard Header
   ================================ */

.dashboard-header h3 {
  font-size: 23px;
  font-weight: bold;
}

.dashboard-header p {
  font-size: 14px;
  color: #666;
}


/* ================================
   Tables
   ================================ */

.table {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}

.table thead {
  background: #efefef;
}

.table th {
  font-weight: bold;
  color: #333;
}

.table td {
  vertical-align: middle;
}

.table-striped tbody tr:nth-child(odd) {
  background: #fafafa;
}

.btn-outline-primary,
.btn-outline-warning,
.btn-outline-danger {
  padding: 4px 10px;
  font-size: 13px;
}


/* ================================
   Cards
   ================================ */

.card {
  border-radius: 12px !important;
  border: none !important;
}

.card h6 {
  font-size: 14px;
  color: #666;
}

.card h4 {
  font-size: 20px;
  font-weight: bold;
}

.card.shadow-sm {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;
}


/* ================================
   Charts Blocks
   ================================ */

#chart-sales-30d,
#chart-orders-status,
#chart-top-vendors,
#chart-new-users {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  width: 100%;
}


/* ================================
   Search + Filters
   ================================ */

#productSearch,
#productStatusFilter {
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
}


/* ================================
   Banners Manager
   ================================ */

#addBannerBtn {
  border-radius: 8px;
}

#admin-banners-table img {
  max-width: 120px;
  border-radius: 8px;
  width: 100%;
  height: auto;
}


/* ================================
   Logout Confirmation
   ================================ */

#logout-tab h3 {
  font-size: 26px;
  font-weight: bold;
}

#confirmLogoutBtn {
  padding: 10px 25px;
  font-size: 16px;
}


/* ================================
   RTL Fixes
   ================================ */

.nav-pills .nav-link {
  justify-content: flex-start;
  text-align: right;
}


/* ================================
   Responsive (Enhanced)
   ================================ */
   @media (max-width: 991px) {
  .vd-sidebar-col {
    position: relative;
    top: auto;
  }

  .vd-sidebar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
    gap: 8px;
  }

  .nav-pills .nav-link {
    font-size: 15px;
    padding: 10px 12px;
  }

  .card h4 {
    font-size: 18px;
  }

  .dashboard-header h3 {
    font-size: 20px;
  }
}

/* شاشات أصغر من 768px */
@media (max-width: 768px) {
  .nav-pills {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
  }

  .nav-pills .nav-link {
    flex: 0 0 auto;
    min-width: 120px;
    justify-content: center;
    text-align: center;
  }

  .table {
    font-size: 13px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .card h4 {
    font-size: 17px;
  }
}

/* شاشات أقل من 576px (موبايل) */
@media (max-width: 576px) {
  .dashboard-header h3 {
    font-size: 18px;
  }

  .dashboard-header p {
    font-size: 13px;
  }

  #productSearch,
  #productStatusFilter {
    font-size: 13px;
    padding: 8px;
  }

  .btn-outline-primary,
  .btn-outline-warning,
  .btn-outline-danger {
    padding: 3px 8px;
    font-size: 12px;
  }

  .card h4 {
    font-size: 16px;
  }
}