/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
  background-color:rgb(244, 246, 248);
}

.dashboard {
  display: flex;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background-color: orangered;
  color: #fff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  text-align: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid #374151;
}

.sidebar-logo h2 {
  font-size: 1.75rem;
}

.sidebar-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 1rem;
}

.menu-item {
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: black;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background-color 0.2s;
}

.menu-item i {
  width: 20px;
  text-align: center;
}

.menu-item:hover,
.menu-item.active {
  background-color: black;
  color: #fff;
}

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Top Navigation */
.top-nav {
  background-color: orangered;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
}

/* Search Box */
.search-box {
  position: relative;
}

.search-box input {
  padding: 0.5rem 1rem;
  padding-right: 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}

.search-box i {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
}

/* Profile Icons */
.profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile i {
  font-size: 1.25rem;
  cursor: pointer;
}

.profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* Cards Section */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #6b7280;
}

.card p {
  font-size: 1.75rem;
  font-weight: bold;
  color: #111827;
}

/* Table Section */
.table-section {
  padding: 0 2rem 2rem 2rem;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.dashboard-table th,
.dashboard-table td {
  padding: 1rem 1.5rem;
  text-align: left;
}

.dashboard-table th {
  background-color: #f3f4f6;
  color: #6b7280;
}

.dashboard-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

.dashboard-table tbody tr:last-child {
  border-bottom: none;
}

/* Status Colors */
.status {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #fff;
}

.status.confirmed {
  background-color: #10b981;
}

.status.pending {
  background-color: #f59e0b;
}

.status.canceled {
  background-color: #ef4444;
}



/* ============================
   📱 Media Query (max-width: 768px)
   ============================ */
@media (max-width: 768px) {

  /* Dashboard layout becomes vertical */
  .dashboard {
    flex-direction: column;
  }

  /* Sidebar shrinks */
  .sidebar {
    width:100vw;
  }

  /* Sidebar text smaller */
  .menu-item {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .sidebar-logo h2 {
    font-size: 1.4rem;
  }

  /* Top Nav adjusts */
  .top-nav {
    padding: 0.8rem 1rem;
    /* background-color: orangered; */
  }

  .search-box input {
    width: 140px;
    padding: 0.4rem 0.8rem;
  }

  /* Profile icons smaller */
  .profile i {
    font-size: 1rem;
  }

  .profile img {
    width: 35px;
    height: 35px;
  }

  /* Cards become 2 columns or 1 column on very small screen */
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
  }

  .card {
    padding: 1rem;
  }

  /* Table becomes scrollable */
  .dashboard-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .dashboard-table th,
  .dashboard-table td {
    padding: 0.8rem 1rem;
  }

}
