/* =========== Google Fonts ============ */
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap");

/* =============== Globals ============== */
* {
  font-family: "Ubuntu", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #2a2185;
  --white: #fff;
  --gray: #f5f5f5;
  --black1: #222;
  --black2: #999;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  position: relative;
  width: 100%;
}

/* =============== Navigation ================ */
/* =============== Navigation ================ */
.navigation {
  position: fixed;
  width: 300px;
  height: 100%;
  background: var(--blue);
  border-left: 10px solid var(--blue);
  transition: 0.5s;
  overflow-y: auto; /* Add this line to enable vertical scrolling */
}

.navigation.active {
  width: 80px;
}

.navigation ul {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.navigation ul li {
  position: relative;
  width: 100%;
  list-style: none;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}

.navigation ul li:hover,
.navigation ul li.hovered {
  background-color: var(--white);
}

.navigation ul li:nth-child(1) {
  margin-bottom: 40px;
  pointer-events: none;
}

.navigation ul li a {
  position: relative;
  display: block;
  width: 100%;
  display: flex;
  text-decoration: none;
  color: var(--white);
}
.navigation ul li:hover a,
.navigation ul li.hovered a {
  color: var(--blue);
}

.navigation ul li a .icon {
  position: relative;
  display: block;
  min-width: 60px;
  height: 60px;
  line-height: 75px;
  text-align: center;
}
.navigation ul li a .icon ion-icon {
  font-size: 1.75rem;
}

.navigation ul li a .title {
  position: relative;
  display: block;
  padding: 0 10px;
  height: 60px;
  line-height: 60px;
  text-align: start;
  white-space: nowrap;
}

/* --------- curve outside ---------- */
.navigation ul li:hover a::before,
.navigation ul li.hovered a::before {
  content: "";
  position: absolute;
  right: 0;
  top: -50px;
  width: 50px;
  height: 50px;
  background-color: transparent;
  border-radius: 50%;
  box-shadow: 35px 35px 0 10px var(--white);
  pointer-events: none;
}
.navigation ul li:hover a::after,
.navigation ul li.hovered a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -50px;
  width: 50px;
  height: 50px;
  background-color: transparent;
  border-radius: 50%;
  box-shadow: 35px -35px 0 10px var(--white);
  pointer-events: none;
}

/* ===================== Main ===================== */
.main {
  position: absolute;
  width: calc(100% - 300px);
  left: 300px;
  min-height: 100vh;
  background: var(--white);
  transition: 0.5s;
}
.main.active {
  width: calc(100% - 80px);
  left: 80px;
}

.topbar {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

.toggle {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  cursor: pointer;
}

.search {
  position: relative;
  width: 400px;
  margin: 0 10px;
}

.search label {
  position: relative;
  width: 100%;
}

.search label input {
  width: 100%;
  height: 40px;
  border-radius: 40px;
  padding: 5px 20px;
  padding-left: 35px;
  font-size: 18px;
  outline: none;
  border: 1px solid var(--black2);
}

.search label ion-icon {
  position: absolute;
  top: 0;
  left: 10px;
  font-size: 1.2rem;
}

.user {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}

.user img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ======================= Cards ====================== */
.cardBox {
  position: relative;
  width: 100%;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 30px;
}

.cardBox .card {
  position: relative;
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
}

.cardBox .card .numbers {
  position: relative;
  font-weight: 500;
  font-size: 2.5rem;
  color: var(--blue);
}

.cardBox .card .cardName {
  color: var(--black2);
  font-size: 1.1rem;
  margin-top: 5px;
}

.cardBox .card .iconBx {
  font-size: 3.5rem;
  color: var(--black2);
}

.cardBox .card:hover {
  background: var(--blue);
}
.cardBox .card:hover .numbers,
.cardBox .card:hover .cardName,
.cardBox .card:hover .iconBx {
  color: var(--white);
}

/* ================== Order Details List ============== */
.details {
  position: relative;
  width: 100%;
  padding: 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-gap: 30px;
  /* margin-top: 10px; */
}

.details .recentOrders {
  position: relative;
  display: grid;
  min-height: 500px;
  background: var(--white);
  padding: 20px;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
  border-radius: 20px;
}

.details .cardHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.cardHeader h2 {
  font-weight: 600;
  color: var(--blue);
}
.cardHeader .btn {
  position: relative;
  padding: 5px 10px;
  background: var(--blue);
  text-decoration: none;
  color: var(--white);
  border-radius: 6px;
}

.details table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.details table thead td {
  font-weight: 600;
}
.details .recentOrders table tr {
  color: var(--black1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.details .recentOrders table tr:last-child {
  border-bottom: none;
}
.details .recentOrders table tbody tr:hover {
  background: var(--blue);
  color: var(--white);
}
.details .recentOrders table tr td {
  padding: 10px;
}
.details .recentOrders table tr td:last-child {
  text-align: end;
}
.details .recentOrders table tr td:nth-child(2) {
  text-align: end;
}
.details .recentOrders table tr td:nth-child(3) {
  text-align: center;
}
.status.delivered {
  padding: 2px 4px;
  background: #8de02c;
  color: var(--white);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}
.status.pending {
  padding: 2px 4px;
  background: #e9b10a;
  color: var(--white);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}
.status.return {
  padding: 2px 4px;
  background: #f00;
  color: var(--white);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}
.status.inProgress {
  padding: 2px 4px;
  background: #1795ce;
  color: var(--white);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.recentCustomers {
  position: relative;
  display: grid;
  min-height: 500px;
  padding: 20px;
  background: var(--white);
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
  border-radius: 20px;
}
.recentCustomers .imgBx {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  overflow: hidden;
}
.recentCustomers .imgBx img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recentCustomers table tr td {
  padding: 12px 10px;
}
.recentCustomers table tr td h4 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2rem;
}
.recentCustomers table tr td h4 span {
  font-size: 14px;
  color: var(--black2);
}
.recentCustomers table tr:hover {
  background: var(--blue);
  color: var(--white);
}
.recentCustomers table tr:hover td h4 span {
  color: var(--white);
}

/* ====================== Responsive Design ========================== */
@media (max-width: 991px) {
  .navigation {
    left: -300px;
  }
  .navigation.active {
    width: 300px;
    left: 0;
  }
  .main {
    width: 100%;
    left: 0;
  }
  .main.active {
    left: 300px;
  }
  .cardBox {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .details {
    grid-template-columns: 1fr;
  }
  .recentOrders {
    overflow-x: auto;
  }
  .status.inProgress {
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .cardBox {
    grid-template-columns: repeat(1, 1fr);
  }
  .cardHeader h2 {
    font-size: 20px;
  }
  .user {
    min-width: 40px;
  }
  .navigation {
    width: 100%;
    left: -100%;
    z-index: 1000;
  }
  .navigation.active {
    width: 100%;
    left: 0;
  }
  .toggle {
    z-index: 10001;
  }
  .main.active .toggle {
    color: #fff;
    position: fixed;
    right: 0;
    left: initial;
  }
}
/* ======= Form Styling ======= */
.form-container {
  width: 100%;
  max-width: 500px;
  margin: 50px;
  margin-left: 80px; /* Adjust based on the width of the navigation sidebar */
  padding: 30px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* ======= Form Title ======= */
.form-container h2 {
  margin-bottom: 25px;
  font-size: 1.8rem;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-container h2 ion-icon {
  font-size: 1.8rem;
}

/* ======= Input Group ======= */
.input-group {
  text-align: left;
  margin-bottom: 20px;
  position: relative;
}

.input-group label {
  font-size: 1rem;
  color: var(--black1);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px;
  padding-left: 40px; /* Adjusted for icon */
  border: 1px solid var(--black2);
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

/* Input and Select Focus */
.input-group input:focus,
.input-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 5px rgba(42, 33, 133, 0.3);
}



/* ======= Input Icons ======= */
.input-group ion-icon {
  position: absolute;
  left: 10px;
  top: 38px;
  font-size: 1.2rem;
  color: var(--black2);
}

/* ======= Submit Button ======= */
.btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-submit:hover {
  background: #1a1668;
}

/* ======= Responsive Design ======= */
@media (max-width: 991px) {
  .form-container {
    margin-left: 100px; /* Adjust for smaller navigation width */
  }
}

@media (max-width: 768px) {
  .form-container {
    margin-left: 20px; /* Adjust for mobile view */
    margin-right: 20px;
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .form-container {
    margin-left: 10px; /* Further adjust for very small screens */
    margin-right: 10px;
    padding: 20px;
  }

  .form-container h2 {
    font-size: 1.5rem;
  }

  .input-group input {
    padding-left: 35px;
  }

  .input-group ion-icon {
    top: 35px;
  }
}

/* =============== Main Container ================ */
.main-container {
  display: flex;
  gap: 20px;
  margin: 50px auto;
  margin-left: 80px; /* Adjust based on the width of the navigation sidebar */
  padding: 30px;
  max-width: 1200px; /* Adjusted for two columns */
}

/* ======= Left Container: Form ======= */
.left-container {
  flex: 1;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

/* ======= Right Container: Attendance Table ======= */
.right-container {
  flex: 1;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

/* ======= Form Title ======= */
.left-container h2,
.right-container h2 {
  margin-bottom: 25px;
  font-size: 1.8rem;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.left-container h2 ion-icon,
.right-container h2 ion-icon {
  font-size: 1.8rem;
}

/* ======= Input Group ======= */
.input-group {
  text-align: left;
  margin-bottom: 20px;
  position: relative;
}

.input-group label {
  font-size: 1rem;
  color: var(--black1);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.input-group select,
.input-group input[type="date"] {
  width: 100%;
  padding: 12px;
  padding-left: 40px; /* Adjusted for icon */
  border: 1px solid var(--black2);
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
  appearance: none; /* Remove default arrow */
  background: var(--white);
}

/* Input and Select Focus */
.input-group select:focus,
.input-group input[type="date"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 5px rgba(42, 33, 133, 0.3);
}

/* ======= Input Icons ======= */
.input-group ion-icon {
  position: absolute;
  left: 10px;
  top: 38px;
  font-size: 1.2rem;
  color: var(--black2);
}

/* ======= Submit Button ======= */
.btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-submit:hover {
  background: #1a1668;
}

/* ======= Attendance Table ======= */
.attendance-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.attendance-table th,
.attendance-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--black2);
}

.attendance-table th {
  background: var(--blue);
  color: var(--white);
}

.attendance-table tr:hover {
  background: var(--gray);
}

.attendance-table input[type="radio"] {
  transform: scale(1.2); /* Make radio buttons larger */
}

/* ======= Responsive Design ======= */
@media (max-width: 991px) {
  .main-container {
    margin-left: 100px; /* Adjust for smaller navigation width */
  }
}

@media (max-width: 768px) {
  .main-container {
    flex-direction: column; /* Stack containers vertically on smaller screens */
    margin-left: 20px;
    margin-right: 20px;
    max-width: 90%;
  }

  .left-container,
  .right-container {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .main-container {
    margin-left: 10px; /* Further adjust for very small screens */
    margin-right: 10px;
    padding: 20px;
  }

  .left-container h2,
  .right-container h2 {
    font-size: 1.5rem;
  }

  .input-group select,
  .input-group input[type="date"] {
    padding-left: 35px;
  }

  .input-group ion-icon {
    top: 35px;
  }

  .attendance-table th,
  .attendance-table td {
    padding: 8px;
  }
}


/* ======= Table Container ======= */
.table-container {
  width: 100%;
  max-width: 1200px;;
  margin: 50px;
  margin-right: 30px; 
  margin-left: 50px; /* Adjust based on the width of the navigation sidebar */
  padding: 30px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ======= Table Title ======= */
.table-container h2 {
  margin-bottom: 25px;
  margin-right: 30px;
  font-size: 1.8rem;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.table-container h2 ion-icon {
  font-size: 1.8rem;
}

/* ======= DataTable Styling ======= */
#attendanceTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#attendanceTable th,
#attendanceTable td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--black2);
}

#attendanceTable th {
  background: var(--blue);
  color: var(--white);
}

#attendanceTable tr:hover {
  background: var(--gray);
}

/* ======= Responsive Design ======= */
@media (max-width: 991px) {
  .table-container {
    margin-left: 100px; /* Adjust for smaller navigation width */
  }
}

@media (max-width: 768px) {
  .table-container {
    margin-left: 20px; /* Adjust for mobile view */
    margin-right: 20px;
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .table-container {
    margin-left: 10px; /* Further adjust for very small screens */
    margin-right: 10px;
    padding: 20px;
  }

  .table-container h2 {
    font-size: 1.5rem;
  }

  #attendanceTable th,
  #attendanceTable td {
    padding: 8px;
  }
}


  /* Main container to hold both left and right sections */
  .main-container {
    display: flex; /* Use Flexbox for side-by-side layout */
    gap: 20px; /* Add space between the sections */
    padding: 20px; /* Add padding for better spacing */
}

/* Left section */
.left-section {
    flex: 1; /* Takes 1 part of the available space */
    border: 1px solid #ddd; /* Add a border for visual separation */
    border-radius: 5px; /* Rounded corners */
    padding: 15px; /* Add padding inside the section */
    background-color: #f9f9f9; /* Light background color */
}

/* Right section */
.right-section {
    flex: 2; /* Takes 2 parts of the available space (more space) */
    border: 1px solid #ddd; /* Add a border for visual separation */
    border-radius: 5px; /* Rounded corners */
    padding: 15px; /* Add padding inside the section */
    background-color: #f9f9f9; /* Light background color */
}

/* Style for headings */
h1, h2, h3 {
    margin-top: 0; /* Remove default margin */
}

/* Style for lists */
ul {
    list-style-type: none; /* Remove bullet points */
    padding: 0; /* Remove default padding */
}

ul li {
    margin-bottom: 10px; /* Add space between list items */
}


      
      
