* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary: rgb(255, 149, 0);
  --secondary: #ff775c;
  --success: #4cc9f0;
  --danger: #f72585;
  --warning: #f8961e;
  --info: #4895ef;
  --light: #f8f9fa;
  --dark: #390f0f;
  --gray: #6c757d;
  --sidebar-width: 250px;
  --header-height: 70px;
  --transition: all 0.3s ease;
}

body {
  background-color: #f5f7fb;
  color: #333;
  line-height: 1.6;
}
a {
  text-decoration: none;
}
.container {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: var(--header-height) 1fr;
  grid-template-areas:
    "sidebar header"
    "sidebar main";
  min-height: 100vh;
}

/* Header Styles */
.header {
  grid-area: header;
  background-color: white;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.search-container {
  display: flex;
  align-items: center;
  background: var(--light);
  border-radius: 20px;
  padding: 5px 15px;
  width: 40%;
}

.search-container input {
  border: none;
  background: transparent;
  padding: 8px;
  width: 100%;
  outline: none;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.notification {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

/* Sidebar Styles */
.sidebar {
  grid-area: sidebar;
  background: var(--dark);
  color: white;
  padding: 20px 0;
  overflow-y: auto;
  transition: var(--transition);
}

.logo {
  padding: 0 20px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo i {
  font-size: 24px;
  color: var(--success);
}

.nav-menu {
  list-style: none;
  margin-top: 20px;
}

.nav-item {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition);
  cursor: pointer;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
  background: var(--primary);
  border-left: 4px solid var(--success);
}
.nav-item a {
  color: white;
  text-decoration: none;
}

/* Main Content Styles */
.main {
  grid-area: main;
  padding: 20px;
  overflow-y: auto;
}

.page-title {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
}

.stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.users {
  background: rgba(67, 97, 238, 0.2);
  color: var(--primary);
}
.revenue {
  background: rgba(76, 201, 240, 0.2);
  color: var(--success);
}
.products {
  background: rgba(248, 150, 30, 0.2);
  color: var(--warning);
}
.orders {
  background: rgba(247, 37, 133, 0.2);
  color: var(--danger);
}

.stat-info h3 {
  font-size: 24px;
  margin-bottom: 5px;
}

.stat-info p {
  color: var(--gray);
  font-size: 14px;
}

/* Charts and Tables */
.charts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.chart {
  min-height: 300px;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background: #390f10;
  font-weight: 600;
  color: white;
}
tr:nth-child(even) {
  background: rgba(255, 149, 1, 0.15);
}
tr:hover {
  background: rgba(255, 149, 1, 0.15);
}
td {
  font-weight: 600;
}
.status {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.completed {
  background: rgba(76, 201, 240, 0.2);
  color: var(--success);
}
.pending {
  background: rgba(248, 150, 30, 0.2);
  color: var(--warning);
}
.canceled {
  background: rgba(247, 37, 133, 0.2);
  color: var(--danger);
}

.logo {
  width: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}
.logo img {
  max-width: 100%;
  background: white;
  border-radius: 0.5rem;
}
.view-users {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  margin-top: 2rem;
  padding: 1rem;
  overflow-x: auto;
}
.view-users table {
  font-size: 0.8rem;
  white-space: nowrap;
  width: 100%;
}
/* =========================
   CUSTOMER RECENT ORDERS
   ========================= */

.recent-orders-card {
  margin-top: 25px;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.card-header h2 {
  margin: 0 0 5px;
}

.card-header p {
  margin: 0;
  color: var(--gray);
  font-size: 14px;
}

.view-all {
  text-decoration: none;
  font-weight: 600;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th,
.orders-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}

.orders-table th {
  font-size: 13px;
  color: var(--gray);
  font-weight: 600;
}

.orders-table td {
  font-size: 14px;
}

/* Status badges */

.status-badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

/* Empty state */

.empty-orders {
  text-align: center;
  padding: 45px 20px;
}

.empty-orders i {
  font-size: 42px;
  margin-bottom: 15px;
}

.empty-orders h3 {
  margin: 0 0 8px;
}

.empty-orders p {
  color: var(--gray);
  margin-bottom: 20px;
}

.select-food-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  background: #000;
  color: #fff;
}

/* Mobile */

@media (max-width: 768px) {
  .card-header {
    align-items: flex-start;
  }

  .orders-table th,
  .orders-table td {
    padding: 11px 9px;
  }
}
/* Responsive Design */
@media (max-width: 1200px) {
  .charts-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "main";
  }

  .sidebar {
    position: fixed;
    left: -100%;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    z-index: 99;
    width: var(--sidebar-width);
  }

  .sidebar.active {
    left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .search-container {
    width: 60%;
  }
}
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .search-container {
    width: 100%;
    margin: 0 10px;
  }

  .header {
    padding: 0 10px;
  }

  .user-info {
    display: none;
  }

  .charts-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  :root {
    --header-height: 60px;
  }

  .main {
    padding: 15px;
  }

  .card {
    padding: 15px;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .stat-info h3 {
    font-size: 20px;
  }

  .page-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-title button {
    width: 100%;
  }
}
/* =========================================================
   SIDEBAR ICONS
========================================================= */

.sidebar .nav-menu .nav-item > a {
  display: flex;
  align-items: center;
}

.sidebar .nav-menu .sidebar-icon {
  width: 22px;
  min-width: 22px;
  margin-right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar .nav-menu .sidebar-icon i {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  line-height: 1 !important;
}
