/** @format */

.dashboard {
  display: flex;
  min-height: 100vh;
  margin: 100px;
}

.sidebar {
  width: 260px;
  background: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
  padding: 20px 0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

.logo {
  padding: 0 20px 20px;
  font-size: 24px;
  font-weight: bold;
  color: #f39c12;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.menu-item {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: #555;
  transition: all 0.2s;
  font-size: 15px;
}

.menu-item:hover {
  background: #fff5e6;
  color: #f39c12;
}

.menu-item.active {
  background: #fff5e6;
  color: #f39c12;
  border-right: 3px solid #f39c12;
  font-weight: 600;
}

.main-content {
  margin-left: 260px;
  flex: 1;
  padding: 30px;
}

.header {
  background: white;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.welcome {
  font-size: 26px;
  color: #333;
  font-weight: 600;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
}

.content-section {
  display: none;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.stat-label {
  color: #888;
  font-size: 13px;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 26px;
  font-weight: 600;
  color: #333;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.card-title {
  font-size: 20px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  color: #555;
  font-size: 14px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #f39c12;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary {
  background: #f39c12;
  color: white;
}

.btn-primary:hover {
  background: #e67e22;
}

.btn-secondary {
  background: #ecf0f1;
  color: #555;
}

.btn-secondary:hover {
  background: #bdc3c7;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  background: #fafafa;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid #eee;
}

.order-info {
  flex: 1;
}

.order-id {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.order-date {
  color: #888;
  font-size: 13px;
}

.order-status {
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  margin: 0 15px;
}

.status-delivered {
  background: #d4edda;
  color: #155724;
}

.status-processing {
  background: #fff3cd;
  color: #856404;
}

.status-shipped {
  background: #d1ecf1;
  color: #0c5460;
}

.order-amount {
  font-size: 18px;
  font-weight: 600;
  color: #27ae60;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.wishlist-item {
  background: #fafafa;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #eee;
}

.wishlist-img {
  font-size: 60px;
  margin-bottom: 10px;
}

.wishlist-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.wishlist-price {
  color: #f39c12;
  font-weight: 600;
  font-size: 16px;
}

.address-item {
  padding: 18px;
  background: #fafafa;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid #eee;
  position: relative;
}

.address-type {
  display: inline-block;
  padding: 4px 10px;
  background: #f39c12;
  color: white;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.address-details {
  color: #555;
  line-height: 1.6;
  font-size: 14px;
}

.notification-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: #fafafa;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 3px solid #f39c12;
}

.notification-icon {
  font-size: 24px;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.notification-text {
  color: #888;
  font-size: 13px;
}

.payment-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  background: #fafafa;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid #eee;
}

.payment-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.payment-icon {
  font-size: 32px;
}

@media (max-width: 1024px) {
  .dashboard {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
    overflow-x: auto;
    padding: 10px;
  }

  .logo {
    display: none;
  }

  .menu-item {
    flex-direction: column;
    padding: 10px 15px;
    white-space: nowrap;
    font-size: 13px;
    gap: 5px;
  }

  .menu-item span:first-child {
    font-size: 20px;
  }

  .main-content {
    margin-left: 0;
    padding: 15px;
  }

  .header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .welcome {
    font-size: 22px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .order-item {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .order-status {
    margin: 8px 0;
  }

  .order-amount {
    margin: 5px 0;
  }

  .card-title {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .card-title button {
    width: 100%;
  }

  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .payment-method {
    flex-direction: column;
    gap: 10px;
  }

  .payment-method button {
    width: 100%;
  }

  .address-item div:last-child button {
    width: 100%;
    margin-bottom: 5px;
  }
}

@media (max-width: 640px) {
  body {
    padding: 0;
  }

  .main-content {
    padding: 10px;
  }

  .header {
    padding: 15px;
    border-radius: 8px;
  }

  .welcome {
    font-size: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-card {
    padding: 15px;
  }

  .stat-value {
    font-size: 24px;
  }

  .card {
    padding: 15px;
    border-radius: 8px;
  }

  .card-title {
    font-size: 18px;
  }

  .wishlist-grid {
    grid-template-columns: 1fr;
  }

  .order-item {
    padding: 15px;
  }

  .notification-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-input {
    font-size: 16px;
  }

  .btn {
    width: 100%;
    padding: 14px;
  }

  .sidebar {
    gap: 5px;
    padding: 5px;
  }

  .menu-item {
    padding: 8px 12px;
    min-width: auto;
  }

  .menu-item span:last-child {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .user-badge div {
    font-size: 13px;
  }

  .stat-icon {
    font-size: 28px;
  }

  .order-id {
    font-size: 13px;
  }

  .order-date {
    font-size: 12px;
  }

  .order-amount {
    font-size: 16px;
  }

  .wishlist-img {
    font-size: 50px;
  }

  .notification-icon {
    font-size: 20px;
  }

  .sidebar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.wishlist-img img {
  height: 100px;
  width: 100px;
  border-radius: 50%;
}
