/* Account Section Styles */
.account-section {
  margin: 40px 0;
}

.account-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.profile-image-container {
  position: relative;
  margin-left: 20px;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
}

.image-upload-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--primary);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.image-upload-btn:hover {
  background: #145a6b;
}

.profile-info h1 {
  margin: 0 0 10px;
  color: var(--dark);
}

.membership-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 500;
  margin-bottom: 10px;
}

.standard {
  background-color: #e6f4f7;
  color: var(--primary);
}

.silver {
  background-color: #f5f5f5;
  color: #757575;
}

.gold {
  background-color: #fff8e1;
  color: #ffc107;
}

.platinum {
  background-color: #e8eaf6;
  color: #3f51b5;
}

.last-login {
  color: var(--gray);
  font-size: 0.9em;
}

.account-tabs {
  display: flex;
  border-bottom: 1px solid var(--light-gray);
  margin-bottom: 30px;
}

.account-tab {
  padding: 12px 25px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  font-weight: 500;
}

.account-tab.active {
  color: var(--primary);
}

.account-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary);
}

.account-tab:hover:not(.active) {
  background-color: rgba(0, 0, 0, 0.03);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.account-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 25px;
  margin-bottom: 30px;
}

.account-card h2 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
}

.card-icon {
  margin-left: 10px;
  color: var(--primary);
}

.info-section {
  margin-bottom: 30px;
}

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

.info-header h3 {
  margin: 0;
  color: var(--dark);
}

.info-row {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--light-gray);
}

.info-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-label {
  width: 150px;
  font-weight: 500;
  color: var(--gray);
}

.info-value {
  flex: 1;
  color: var(--dark);
}

.edit-mode {
  display: none;
  animation: fadeIn 0.3s;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 25px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  font-weight: 500;
}

.notification.success {
  background-color: #e6f7ee;
  color: #4CAF50;
  border-right: 4px solid #4CAF50;
}

.notification.error {
  background-color: #feeeee;
  color: #f44336;
  border-right: 4px solid #f44336;
}

.notification.info {
  background-color: #e6f4f7;
  color: var(--primary);
  border-right: 4px solid var(--primary);
}

.activity-item {
  display: flex;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--light-gray);
}

.activity-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-gray);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
}

.login-icon {
  background-color: #e6f4f7;
  color: var(--primary);
}

.order-icon {
  background-color: #fff8e1;
  color: #ffc107;
}

.payment-icon {
  background-color: #e6f7ee;
  color: #4CAF50;
}

.activity-details {
  flex: 1;
}

.activity-details h4 {
  margin: 0 0 5px;
  color: var(--dark);
}

.activity-time {
  color: var(--gray);
  font-size: 0.9em;
}

.preferences-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--light-gray);
}

.preferences-toggle:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary);
}

input:focus + .toggle-slider {
  box-shadow: 0 0 1px var(--primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(30px);
}

.toggle-label {
  font-weight: 500;
}

.toggle-description {
  color: var(--gray);
  font-size: 0.9em;
  margin-top: 5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .account-header {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-image-container {
    margin: 0 0 20px 0;
  }
  
  .account-tabs {
    flex-wrap: wrap;
  }
  
  .account-tab {
    flex: 1 0 50%;
    text-align: center;
    padding: 10px;
  }
  
  .info-row {
    flex-direction: column;
  }
  
  .info-label {
    width: 100%;
    margin-bottom: 5px;
  }
  
  .info-value {
    padding: 5px 0;
  }
  
  .activity-item {
    flex-direction: column;
  }
  
  .activity-icon {
    margin: 0 0 10px 0;
  }
  
  .preferences-toggle {
    flex-direction: column;
  }
  
  .toggle-switch {
    margin-top: 10px;
  }
  
  .edit-mode .form-group input,
  .edit-mode .form-group textarea {
    width: 100%;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 5px;
  }
  
  .form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .profile-image {
    width: 100px;
    height: 100px;
  }
  
  .profile-info h1 {
    font-size: 1.5em;
  }
  
  .account-card {
    padding: 15px;
  }
  
  .account-card h2 {
    font-size: 1.3em;
  }
}