:root {
  --primary: #478f07;
  --primary-light: #eef2ff;
  --secondary: #620063;
  --dark: #090e34;
  --dark-light: #2d3958;
  --grey: #637381;
  --grey-light: #e9ecef;
  --success: #478f07;
  --warning: #f7c800;
  --danger: #f72b50;
  --info: #2499ef;
  --body-bg: #f9fbfd;
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Winky Rough", sans-serif;
  background-color: var(--body-bg);
  color: var(--dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header styles */
.header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
}

.logo span {
  color: var(--primary);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.notification-icon {
  position: relative;
  cursor: pointer;
}

.notification-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--danger);
  color: #fff;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 600;
}

/* Profile dropdown menu */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 200px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  z-index: 100;
  display: none;
}

.profile-dropdown.active {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: var(--dark);
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.dropdown-item i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--grey-light);
  margin: 5px 0;
}

/* Main content styles */
.main-content {
  padding: 30px 0;
}

.dashboard-heading {
  margin-bottom: 20px;
}

.welcome-message {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.dashboard-subtitle {
  color: var(--grey);
  font-size: 16px;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.dashboard-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.dashboard-card:hover {
  transform: translateY(-5px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

.card-icon.blue {
  background-color: var(--primary);
}

.card-icon.green {
  background-color: var(--secondary);
}

.card-icon.orange {
  background-color: var(--warning);
}

.card-icon.red {
  background-color: var(--danger);
}

.card-title {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 8px;
}

.card-value {
  font-size: 24px;
  font-weight: 700;
}

.orders-section {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 30px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--grey-light);
}

.section-title {
  font-size: 18px;
  font-weight: 600;
}

.filter-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  padding: 8px 12px;
  background-color: #fff;
  border: 1px solid var(--grey-light);
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  width: 150px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  padding: 10px 0;
  z-index: 10;
  display: none;
}

.filter-dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 8px 15px;
  font-size: 14px;
  color: var(--dark);
}

.dropdown-content a:hover {
  background-color: var(--grey-light);
}

.order-list {
  padding: 0;
}

.order-item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--grey-light);
  transition: var(--transition);
}

.order-item:hover {
  background-color: var(--primary-light);
}

.order-item:last-child {
  border-bottom: none;
}

.order-number {
  flex: 0 0 130px;
  font-weight: 600;
}

.order-date {
  flex: 0 0 150px;
  color: var(--grey);
}

.order-status {
  flex: 0 0 120px;
}

.status-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-processing {
  background-color: rgba(247, 200, 0, 0.1);
  color: var(--warning);
}

.status-shipped {
  background-color: rgba(36, 153, 239, 0.1);
  color: var(--info);
}

.status-delivered {
  background-color: rgba(19, 194, 150, 0.1);
  color: var(--secondary);
}

.status-cancelled {
  background-color: rgba(247, 43, 80, 0.1);
  color: var(--danger);
}

.order-products {
  flex: 1;
  margin: 0 10px;
}

.order-total {
  flex: 0 0 120px;
  font-weight: 600;
  text-align: right;
}

.order-actions {
  flex: 0 0 80px;
  text-align: right;
}

.btn {
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--secondary);
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #fff;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.tracking-details {
  display: flex;
  padding: 30px;
  gap: 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

.tracking-info {
  flex: 1;
}

.tracking-map {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  height: 400px;
  background-color: var(--grey-light);
}

.order-details-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--grey-light);
  padding-bottom: 15px;
}

.order-timeline {
  position: relative;
  padding-left: 30px;
}

.timeline-item {
  position: relative;
  padding-bottom: 30px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: var(--grey-light);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: -36px;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--grey-light);
  border: 2px solid #fff;
}

.timeline-item.active::after {
  background-color: var(--secondary);
}

.timeline-item.active::before {
  background-color: var(--secondary);
}

.timeline-date {
  font-size: 12px;
  color: var(--grey);
  margin-bottom: 2px;
}

.timeline-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.timeline-description {
  font-size: 14px;
  color: var(--grey);
}

.tracking-details-list {
  margin-top: 30px;
}

.detail-item {
  margin-bottom: 15px;
}

.detail-label {
  font-size: 12px;
  color: var(--grey);
  margin-bottom: 2px;
}

.detail-value {
  font-weight: 500;
}

/* Mobile styles */
@media (max-width: 768px) {
  .orders-section {
    overflow-x: auto;
  }

  .order-item {
    flex-wrap: wrap;
  }

  .order-number {
    flex: 0 0 100%;
    margin-bottom: 10px;
  }

  .order-date,
  .order-status {
    flex: 0 0 50%;
    margin-bottom: 10px;
  }

  .order-products {
    flex: 0 0 100%;
    margin: 0 0 10px 0;
  }

  .order-total {
    flex: 1;
    text-align: left;
  }

  .order-actions {
    flex: 0 0 auto;
  }

  .tracking-details {
    flex-direction: column;
  }

  .tracking-map {
    height: 250px;
  }

  .profile-dropdown {
    width: 180px;
    right: -10px;
  }
}

@media (max-width: 576px) {
  .dashboard-heading {
    text-align: center;
  }

  .welcome-message {
    font-size: 24px;
  }

  .dashboard-cards {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    gap: 10px;
  }

  .order-date,
  .order-status {
    flex: 0 0 100%;
  }
}

/* Hide elements with class "hidden" */
.hidden {
  display: none;
}

/* Tab navigation */
.tab-navigation {
  display: flex;
  border-bottom: 1px solid var(--grey-light);
  margin-bottom: 20px;
  overflow-x: auto;
}

.tab-button {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--grey);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Order tracking progress */
.tracking-progress {
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
  position: relative;
}

.tracking-progress::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--grey-light);
  z-index: 1;
}

.progress-step {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 80px;
}

.step-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 12px;
  color: var(--grey);
}

.progress-step.completed .step-icon {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

.progress-step.active .step-icon {
  border-color: var(--secondary);
  color: var(--secondary);
}

.step-label {
  font-size: 12px;
  color: var(--grey);
  font-weight: 500;
}

.progress-step.completed .step-label,
.progress-step.active .step-label {
  color: var(--dark);
}
