body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: linear-gradient(to bottom, #ffffff 30%, #6ee7f9 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  min-height: 100vh; 
}

.dashboard-container {
  display: flex;
  width: 90%;
  margin: 80px auto;
  border-radius: 10px;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  background: #0b4b75;
  color: white;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: left 0.4s ease-in-out;
}

.sidebar img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid #6ee7f9;
  margin-bottom: 20px;
  margin: auto;
}

.sidebar .info {
  text-align: left;
  margin: 20px 0;
}

.sidebar .info p {
  margin: 15px 25px;
  display: flex;
  align-items: center;
  font-size: 18px;
  color: #6ee7f9;
}

.sidebar .info i {
  margin-right: 15px;
  color: #6ee7f9;
}

.sidebar button {
  display: block;
  width: 100%;
  max-width: 150px;
  padding: 8px;
  background: #6ee7f9;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  color: #0b4b75;
  font-weight: bold;
  margin: 30px auto;
}

/* Main Content */
.main-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.5);
  padding: 20px;
  border-radius: 0 10px 10px 0;
}

.main-content h1 {
  text-align: center;
  color: #0b4b75;
  font-size: 45px;
  margin-top: -30px;
  font-weight: bold;
}

.top-boxes {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.box {
  width: 300px;
  background: #0b4b75;
  color: #6ee7f9;
  padding: 20px;
  border-radius: 10px;
}

.box i {
  font-size: 35px;
  margin-bottom: 10px;
}

.box h3 {
  font-size: 25px;
  font-style: italic;
}

.box button {
  margin-top: 10px;
  padding: 5px 15px;
  border: none;
  border-radius: 20px;
  background: #6ee7f9;
  color: #0b4b75;
  cursor: pointer;
  width: 100px;
  font-weight: bold;
  font-size: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.);
}

th, td {
  padding: 10px;
  text-align: center;
}

th {
  border-bottom: 2px solid #0b4b75;
  color: #0b4b75 !important;
}

td {
  border-bottom: 1px solid #ccc;
  color: #0b4b75 !important;
  font-weight: 600;
}

.status-delivered {
  color: #28a745 !important; /* green */
  font-weight: bold !important;
}
.status-canceled {
  color: #f44336 !important; /* red */
  font-weight: bold;
}
.status-pending {
  color: #ff9800 !important; /* orange */
  font-weight: bold;
}

.table-responsive-wrapper {
  overflow-x: auto;       /* horizontal scroll if needed */
  -webkit-overflow-scrolling: touch; /* smooth scroll on mobile */
}

.table-responsive-wrapper table {
  width: 100%;
  min-width: 600px;       /* prevent columns from squishing */
  background-color: transparent; /* make table background transparent */
  border-collapse: collapse;     /* remove double borders if any */
}

/* Make table cells transparent too */
.table-responsive-wrapper th,
.table-responsive-wrapper td {
  background-color: transparent; /* transparent cells */
  color: #0b4b75;               /* keep text visible */
  border: 1px solid rgba(11, 75, 117, 0.3); /* optional subtle border */
}

/* Toggle Button (Mobile Only) */
#sidebarToggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #0b4b75;
  cursor: pointer;
  top: 20px;
  left: 60px;
  z-index: 2000;
  display: none;
  transform: translateX(40px) translateY(55px);
  
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: none;
  z-index: 1500;
}

.sidebar .info p {
  font-size: 12px;   /* smaller profile info text */
  margin: 10px 15px;
}

.top-boxes {
  gap: 15px;
}

.box {
  flex: 1 1 45%;   /* two columns */
  max-width: 45%;
  padding: 15px;
}

.box h3 {
  font-size: 18px; /* smaller font for headings */
}

.box i {
  font-size: 25px;
}

.box button {
  width: 80px;
  font-size: 14px;
  padding: 4px 10px;
}

/* Modal Overlay */
#editModal {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 15px;
  box-sizing: border-box;
}

/* Modal Content */
.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 25px 30px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease-in-out;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: color 0.2s;
}
.close:hover {
  color: #ff4d4f;
}

/* Form inside modal */
#editForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#editForm input[type="text"],
#editForm input[type="email"],
#editForm input[type="tel"],
#editForm input[type="file"] {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

#profilePreview {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
  display: block;
  border: 2px solid #007bff;
}

/* Save button */
#editForm button[type="submit"] {
  padding: 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s;
}
#editForm button[type="submit"]:hover {
  background-color: #0056b3;
}

/* Animation */
@keyframes fadeIn {
  0% {opacity: 0; transform: translateY(-20px);}
  100% {opacity: 1; transform: translateY(0);}
}


/* Desktop */
@media (min-width: 992px) {
  .sidebar {
    position: relative;
    width: 25%;
    height: auto;
    border-radius: 10px 0 0 10px;
  }
  #sidebarToggle { display: none !important; }
  .sidebar-overlay { display: none !important; }
}

    /* ================= MOBILE (up to 767px) ================= */
@media (max-width: 767px) {
  .dashboard-container {
    flex-direction: column;
    width: 100%;
    margin: 0;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 230px;
    height: 100%;
    border-radius: 0;
    z-index: 2001;
  }

  .sidebar.show {
    left: 0;
  }

  #sidebarToggle {
    display: block;
    margin-left: -20px;
  }

  .main-content {
    border-radius: 0;
    margin-top: 80px;
  }

  .main-content h1 {
    font-size: 28px;
    margin-top: -80px;
  }
  /* ✅ Smaller profile info */
  .sidebar .info p {
    font-size: 15px;
    margin: 15px 12px;
  }

  /* ✅ Boxes in 2 columns */
  .top-boxes {
    gap: 10px;
  }

  .box {
    flex: 1 1 45%;
    max-width: 45%;
    padding: 12px;
  }

  .box h3 {
    font-size: 16px;
  }

  .box i {
    font-size: 22px;
  }

  .box button {
    width: 70px;
    font-size: 12px;
    padding: 4px 8px;
  }

}

/* ================= TABLET (768px – 991px) ================= */
@media (min-width: 768px) and (max-width: 991px) {

  .dashboard-container {
    flex-direction: column;
    width: 100%;
    margin: 500px auto 0 auto;  /* push container down */
    min-height: calc(100vh - 50px); /* keep full height look */
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 250px;
    height: 100%;
    border-radius: 0;
    z-index: 2001;
  }

  .sidebar.show {
    left: 0;
  }

  #sidebarToggle {
    display: block;
  }

  .main-content {
    border-radius: 0;
    margin-top: 100px;
  }

  .main-content h1 {
    font-size: 34px;
    margin-top: 100px;
  }

  /* ✅ Slightly bigger than mobile */
  .sidebar .info p {
    font-size: 14px;
    margin: 10px 15px;
  }

  .top-boxes {
    gap: 15px;
  }

  .box {
    flex: 1 1 45%;
    max-width: 45%;
    padding: 15px;
  }

  .box h3 {
    font-size: 18px;
  }

  .box i {
    font-size: 25px;
  }

  .box button {
    width: 80px;
    font-size: 14px;
    padding: 4px 10px;
  }
}

/* ================= DESKTOP (≥ 992px) ================= */
@media (min-width: 992px) {
  .sidebar {
    position: relative;
    width: 25%;
    height: auto;
    border-radius: 10px 0 0 10px;
  }

  #sidebarToggle {
    display: none !important;
  }

  .sidebar-overlay {
    display: none !important;
  }
}