body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  display: flex;
  background: #f5f7fb;
}

.sidebar {
  width: 220px;
  background: #17233c;
  color: white;
  min-height: 100vh;
  padding: 28px 20px;
  box-sizing: border-box;
}

.sidebar h1 {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 600;
}

.sidebar a {
  display: block;
  color: white;
  text-decoration: none;
  margin: 14px 0;
  font-weight: 400;
}

.sidebar a:hover {
  opacity: 0.9;
}

.sidebar a.active-link {
  font-weight: 600;
  color: #facc15;
}

.main {
  flex: 1;
  padding: 28px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.metric-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.metric-card p {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: #4f46e5;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  padding: 12px 10px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

th {
  font-weight: 600;
  color: #374151;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.topbar-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.topbar-right {
  display: flex;
  align-items: center;
}

.topbar-user {
  text-align: right;
}

.topbar-user-name {
  font-weight: 600;
  font-size: 14px;
}

.topbar-user-role {
  font-size: 12px;
  color: #6b7280;
  text-transform: capitalize;
}

.back-btn {
  display: inline-block;
  text-decoration: none;
  color: #17233c;
  font-weight: 500;
  background: #eef2ff;
  padding: 8px 12px;
  border-radius: 8px;
}

.login-body {
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  min-height: 100vh;
  display: block;
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: white;
  width: 380px;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  text-align: center;
}

.logo {
  font-size: 28px;
  font-weight: 600;
  color: #4f46e5;
  margin-bottom: 5px;
}

.subtitle {
  color: #777;
  margin-bottom: 30px;
}

input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
  box-sizing: border-box;
}

button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 6px;
  background: #4f46e5;
  color: white;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: #4338ca;
}

.footer-text {
  margin-top: 25px;
  font-size: 12px;
  color: #999;
}

.filters-panel {
  background: #f8eef2;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.search-row {
  margin-bottom: 14px;
}

.search-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #d8cfd4;
  font-size: 14px;
  box-sizing: border-box;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.filter-item label,
.date-item label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #6b4f57;
}

.filter-item select,
.date-item input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d6c6cc;
  background: white;
  box-sizing: border-box;
}

.date-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.summary-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #5f4a52;
  flex-wrap: wrap;
}

.orders-list {
  display: grid;
  gap: 18px;
}

.order-card {
  background: white;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  border: 1px solid #eadce1;
}

.order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.order-no {
  font-size: 24px;
  font-weight: 600;
  color: #a1284b;
}

.order-status {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.order-card-mid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.customer-name {
  font-size: 18px;
  font-weight: 500;
  color: #111827;
}

.order-sub {
  font-size: 14px;
  color: #6b7280;
  margin-top: 4px;
}

.amount-right {
  font-size: 20px;
  font-weight: 600;
  color: #a1284b;
}

.order-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #5b5560;
  margin-bottom: 10px;
}

.progress-bar-wrap {
  height: 6px;
  background: #eadce1;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #c93d63, #6fc17b);
  border-radius: 999px;
}

.order-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.order-actions button {
  width: auto;
  margin-top: 0;
  padding: 10px 14px;
  background: #fff5f7;
  color: #a1284b;
  border: 1px solid #e7c6d0;
  border-radius: 10px;
  font-size: 14px;
}

.order-actions button:hover {
  background: #fde9ef;
}

.empty-card {
  text-align: center;
  color: #6b7280;
}

@media (max-width: 768px) {
  .filter-grid,
  .date-row {
    grid-template-columns: 1fr;
  }

  .order-card-mid,
  .order-card-top,
  .order-meta,
  .summary-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .amount-right {
    align-self: flex-start;
  }
}