/* Global styles */
:root {
  --primary-color: #191441;   /* Main Pink Color */
  --secondary-color: #00BCD4; /* Cyan */
  --tertiary-color: #FFEB3B;  /* Yellow */
  --background-color: #d391d3;
  --text-color: #333333;
  --accent-color: #4CAF50;
  --border-color: #E0E0E0;
  --button-color: #FF5722;
  --button-hover-color: #D84315;
  --card-bg: #62d3db;
  --table-header-bg: #f0f0f0;
  --table-row-bg: #fafafa;
  --shadow: rgba(0, 0, 0, 0.1);
  --hover-color: rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
}

/* Layout styles */
.container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 20px;
}

aside {
  width: 250px;
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--shadow);
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 20px;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 10px;
  margin-bottom: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar a:hover {
  background-color: var(--background-color);
  color: var(--primary-color);
}

.sidebar a.active {
  background-color: var(--background-color);
}

.menu-toggle {
  display: none;
  font-size: 0px;
  color: var(--primary-color);
}

/* Main content */
main {
  flex: 1;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--shadow);
}

h1 {
  color: var(--primary-color);
  font-size: 32px;
  margin-bottom: 20px;
}

.date input {
  padding: 12px;
  width: 100%;
  font-size: 14px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  margin-top: 20px;
}

.insights {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.card {
  background-color: var(--card-bg);
  padding: 20px;
  flex: 1;
  border-radius: 15px;
  box-shadow: 0 4px 12px var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px var(--shadow);
}

.card i {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card h1 {
  font-size: 36px;
  color: var(--primary-color);
}

/* Recent Orders */
.recent-orders {
  margin-top: 40px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table thead {
  background-color: var(--table-header-bg);
}

table th, table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

table tbody tr:hover {
  background-color: var(--hover-color);
}

table a {
  color: var(--primary-color);
  text-decoration: none;
}

/* Profile Section */
.profile {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 500px;
  padding: 15px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--shadow);
}

.profile .info {
  flex-grow: 1;
}

.profile-photo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

/* Right Sidebar */
.right {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .container {
      flex-direction: column;
      align-items: center;
  }

  .sidebar {
      display: none;
      width: 100%;
  }

  .menu-toggle {
      display: block;
  }

  .menu-toggle.open + aside {
      display: block;
  }
}

@media (max-width: 480px) {

  body {
    font-size: 14px;
  }

  .container {
    flex-direction: column;
    padding: 10px;
    gap: 15px;
  }

  /* Sidebar full width */
  aside {
    width: 100%;
    padding: 15px;
  }

  .sidebar a {
    padding: 10px;
    font-size: 14px;
  }

  /* Main content */
  main {
    width: 100%;
    padding: 15px;
  }

  h1 {
    font-size: 22px;
  }

  /* Cards stack */
  .insights {
    flex-direction: column;
    gap: 15px;
  }

  .card {
    padding: 15px;
  }

  .card h1 {
    font-size: 24px;
  }

  .card h3 {
    font-size: 16px;
  }

  /* Table scroll fix */
  .recent-orders {
    overflow-x: auto;
  }

  table {
    min-width: 500px;
  }

  table th, table td {
    padding: 8px;
    font-size: 12px;
  }

  /* Profile section */
  .profile {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .profile img {
    width: 40px;
    height: 40px;
  }

  /* Right sidebar */
  .right {
    width: 100%;
  }

  /* Menu toggle visible */
  .menu-toggle {
    display: block;
    font-size: 22px;
  }
}

/* Order Status Styles */
.status {
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: bold;
}

.status.completed {
  background-color: #28a745;  /* Green for completed orders */
  color: white;
}

.status.pending {
  background-color: #ffc107;  /* Yellow for pending orders */
  color: black;
}

.status.processing {
  background-color: #17a2b8;  /* Blue for processing orders */
  color: white;
}

.status.cancelled {
  background-color: #dc3545;  /* Red for cancelled orders */
  color: white;
}

/* Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
}

table th, table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table th {
  background-color: #f8f9fa;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

