:root {
  --primary-green: #5cb85c;
  --dark-green: #3d5a3d;
  --light-bg: #f5f3e8;
  --yellow: #ffc107;
  --text-dark: #2c3e50;
}

/* Sidebar */
.sidebar {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  min-height: 50vh;
  padding: 0;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  height: 50vh;
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

.sidebar-header {
  padding: 30px 25px;
  border-bottom: 2px solid #e8f5e9;
  background: linear-gradient(135deg, var(--primary-green) 0%, #4cae4c 100%);
}

.sidebar-title {
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.sidebar-title i {
  margin-right: 10px;
  font-size: 22px;
}

.sidebar-menu {
  list-style: none;
  padding: 20px 0;
  margin: 0;
}

.sidebar-menu li {
  margin-bottom: 5px;
  padding: 0 15px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.sidebar-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--primary-green);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.sidebar-menu a:hover {
  background: linear-gradient(135deg, #e8f5e9 0%, #d4edda 100%);
  color: var(--primary-green);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(92, 184, 92, 0.15);
}

.sidebar-menu a:hover::before {
  transform: scaleY(1);
}

.sidebar-menu a.active {
  background: #6dc200;
  color: white;
  box-shadow: 0 4px 15px rgba(92, 184, 92, 0.3);
}

.sidebar-menu a.active::before {
  display: none;
}

.sidebar-menu i {
  margin-right: 15px;
  font-size: 20px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

.sidebar-menu a:hover i {
  transform: scale(1.1);
}

.menu-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
  margin: 20px 25px;
}

.logout-btn {
  color: #dc3545 !important;
  margin-top: 10px;
}

.logout-btn:hover {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%) !important;
  color: #c62828 !important;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15) !important;
}

.logout-btn:hover::before {
  background: #dc3545 !important;
}

.sidebar-footer {
  padding: 20px 25px;
  border-top: 2px solid #e8f5e9;
  margin-top: auto;
}

.user-info {
  display: flex;
  align-items: center;
  padding: 15px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-green), #4cae4c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  margin-right: 12px;
}

.user-details {
  flex: 1;
}

.user-name {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 14px;
  margin: 0;
}

.user-email {
  font-size: 12px;
  color: #6c757d;
  margin: 0;
}

/* Content Area */
.content-area {
  padding: 30px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 30px;
}

/* Dashboard Cards */
.stat-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 15px;
}

.stat-icon.green {
  background-color: #e8f5e9;
  color: var(--primary-green);
}

.stat-icon.yellow {
  background-color: #fff8e1;
  color: var(--yellow);
}

.stat-icon.blue {
  background-color: #e3f2fd;
  color: #2196f3;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 10px 0;
}

.stat-label {
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
}

/* Orders Table */
.orders-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-top: 30px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.table {
  margin-bottom: 0;
}

.table thead th {
  background-color: var(--yellow);
  color: var(--text-dark);
  font-weight: 700;
  border: none;
  padding: 15px;
}

.table tbody td {
  padding: 15px;
  vertical-align: middle;
}

.badge-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-completed {
  background-color: #e8f5e9;
  color: var(--primary-green);
}

.badge-pending {
  background-color: #fff8e1;
  color: #f57c00;
}

.badge-cancelled {
  background-color: #ffebee;
  color: #d32f2f;
}

.btn-primary {
  background-color: var(--primary-green);
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary:hover {
  background-color: #4cae4c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(92, 184, 92, 0.3);
}

/* Account Section */
.account-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-control {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 15px;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.2rem rgba(92, 184, 92, 0.15);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background-color: var(--primary-green);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 991px) {
  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    width: 300px;
    height: 100vh;
    z-index: 1050;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
  }

  .sidebar.show {
    left: 0;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
    opacity: 0;
    transition: opacity 0.4s;
  }

  .sidebar-overlay.show {
    display: block;
    opacity: 1;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .content-area {
    padding: 15px;
  }

  .page-title {
    font-size: 24px;
  }

  .stat-card {
    margin-bottom: 15px;
  }

  .table-responsive {
    font-size: 14px;
  }
}

@media (min-width: 1199px) {
  .sidebar {
    margin-top: 30px;
  }
}

.side-logo {
  padding: 10px 20px;
}
