:root {
  --account-bg: #f8f9fa;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
  background-color: var(--account-bg);
}

.account-page-wrapper {
  padding-top: 1rem;
  padding-bottom: 4rem;
}

.account-breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.account-breadcrumb a {
  color: #6c757d;
  text-decoration: none;
}

.account-breadcrumb a:hover {
  color: var(--webcommerce-primary);
}

.account-sidebar-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  border: none;
}

.user-profile-header {
  padding: 1.25rem 1rem;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.user-avatar-container {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.75rem;
  position: relative;
}

.user-avatar-container .avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--webcommerce-primary, var(--webcommerce-primary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
}

.user-avatar-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: #2c3e50;
}

.user-email {
  color: #6c757d;
  font-size: 0.9rem;
}

.sidebar-nav {
  padding: 1rem 0;
}

.nav-item-link {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.nav-item-link:hover {
  background-color: #f8f9fa;
  color: var(--webcommerce-primary);
  text-decoration: none;
}

.nav-item-link.active {
  background-color: rgba(0, 123, 255, 0.05);
  color: var(--webcommerce-primary);
  border-left-color: var(--webcommerce-primary);
}

.nav-item-link i {
  width: 24px;
  margin-right: 10px;
  text-align: center;
}

.account-content-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  border: none;
  min-height: 400px;
}

.content-header {
  padding: 0.75rem 1.5rem 0;
}

.content-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 0.75rem 0;
  color: #2c3e50;
}

.account-tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1.25rem;
}

.tab-link {
  padding: 0.75rem 0;
  margin-right: 1.5rem;
  font-weight: 500;
  color: #718096;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.tab-link:hover {
  color: var(--webcommerce-primary);
}

.tab-link.active {
  color: var(--webcommerce-primary);
  font-weight: 600;
}

.tab-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--webcommerce-primary);
}

.tab-content {
  padding: 0 1.5rem 1.5rem;
}

.biodata-avatar-section {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: #fcfcfc;
}

.biodata-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-right: 1.5rem;
  background-color: #e2e8f0;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.biodata-avatar .avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--webcommerce-primary);
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
}

.biodata-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.biodata-avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity 0.2s;
}

.biodata-avatar:hover .biodata-avatar-overlay {
  opacity: 1;
}

.biodata-avatar-text h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.biodata-avatar-text p {
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 0;
}

.form-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.form-control {
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  padding: 0.625rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--webcommerce-primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-control[readonly], .form-control[disabled] {
  background-color: #edf2f7;
  color: #718096;
  cursor: not-allowed;
}

.btn-save {
  background-color: var(--webcommerce-primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  width: 100%;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-save:hover {
  background-color: #153269;
  color: white;
  transform: translateY(-1px);
}

.btn-save:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .account-page-wrapper {
    padding-top: 1rem;
  }
  
  .account-tabs {
    overflow-x: auto;
    white-space: nowrap;
    margin-right: -2rem;
    padding-right: 2rem;
  }
  
  .tab-link {
    margin-right: 1.5rem;
  }
  
  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    padding: 0.5rem 0;
  }
  
  .nav-item-link {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1rem;
  }
  
  .nav-item-link.active {
    border-left: none;
    border-bottom-color: var(--webcommerce-primary);
    background: transparent;
  }
  
  .account-sidebar-card {
    margin-bottom: 1.5rem;
  }
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e2e8f0;
}

.order-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.order-number {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.9rem;
}

.order-date {
  font-size: 0.8rem;
  color: #718096;
}

.order-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.order-status.status-draft { background: #e2e8f0; color: #4a5568; }
.order-status.status-to-deliver-and-bill,
.order-status.status-to-deliver { background: #fef3c7; color: #92400e; }
.order-status.status-to-bill { background: #dbeafe; color: #1e40af; }
.order-status.status-completed { background: #d1fae5; color: #065f46; }
.order-status.status-cancelled { background: #fee2e2; color: #991b1b; }

.order-body {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.order-items-preview {
  flex: 1;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.item-name {
  color: #4a5568;
  flex: 1;
  margin-right: 1rem;
}

.item-qty {
  color: #718096;
}

.order-item-more {
  font-size: 0.8rem;
  color: #718096;
  font-style: italic;
}

.order-total {
  text-align: right;
  min-width: 120px;
}

.total-label {
  display: block;
  font-size: 0.75rem;
  color: #718096;
  margin-bottom: 0.25rem;
}

.total-amount {
  font-weight: 700;
  font-size: 1rem;
  color: #2c3e50;
}

.order-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid #e2e8f0;
  text-align: right;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state i {
  display: block;
  margin-bottom: 1rem;
}

.empty-state h5 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.empty-state p {
  margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
  .order-body {
    flex-direction: column;
  }
  
  .order-total {
    text-align: left;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
    width: 100%;
  }
}
