/* account.css */

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f0f2f5;
  color: #333;
  margin: 0;
  padding: 0;
}

.container {
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
}

.main-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-back {
  font-size: 1.2rem;
  color: #555;
  text-decoration: none;
}

.header-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: #222;
}

.header-avatar i {
  font-size: 1.6rem;
  color: #888;
}

.account-section {
  background: #fff;
  margin-top: 20px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.profile-card {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.avatar-wrapper i {
  color: #007bff;
}

.info-wrapper {
  margin-left: 15px;
}

.info-wrapper h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 500;
}

.info-wrapper p {
  margin: 4px 0 0;
  color: #666;
}

.account-tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
  background: none;
  border: none;
  padding: 10px;
  font-size: 1rem;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, border-bottom 0.2s;
}

.tab-btn.active {
  color: #007bff;
  border-bottom: 2px solid #007bff;
}

.tab-content {
  display: none;
  padding: 10px 0;
}

.tab-content.active {
  display: block;
}

.action-button {
  display: block;
  width: 100%;
  text-align: center;
  background-color: #007bff;
  color: #fff;
  padding: 12px 0;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 12px;
  transition: background-color 0.2s, transform 0.1s;
}

.action-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.logout-button {
  display: block;
  width: 100%;
  text-align: center;
  background-color: #dc3545;
  color: #fff;
  padding: 12px 0;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.1s;
}

.logout-button:hover {
  background-color: #c82333;
  transform: translateY(-2px);
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8); /* semi-transparent white overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* high z-index so it appears on top */
  }
  
  /* Spinner Container */
  .spinner {
    --uib-size: 40px;
    --uib-color: #e74c3c; /* Spinner dot color */
    --uib-speed: 1.3s;
    --uib-dot-size: 25%;
    position: relative;
    display: inline-block;
    height: var(--uib-size);
    width: var(--uib-size);
    animation: spin var(--uib-speed) infinite linear;
  }
  
  /* Dot styles */
  .spinner .dot {
    position: absolute;
    left: calc(50% - var(--uib-dot-size) / 2);
    width: var(--uib-dot-size);
    height: 100%;
  }
  
  .spinner .dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-bottom: 100%;
    background-color: var(--uib-color);
    border-radius: 50%;
    transition: background-color 0.3s ease;
  }
  
  /* Staggered animations for the dots */
  .spinner .dot:nth-child(1) {
    transform: rotate(120deg);
  }
  .spinner .dot:nth-child(1)::after {
    animation: wobble var(--uib-speed) infinite ease-in-out;
  }
  
  .spinner .dot:nth-child(2) {
    transform: rotate(-120deg);
  }
  .spinner .dot:nth-child(2)::after {
    animation: wobble var(--uib-speed) infinite ease-in-out;
  }
  
  .spinner .dot:nth-child(3)::after {
    animation: wobble var(--uib-speed) infinite ease-in-out;
  }
  
  /* Keyframes for spinner and wobble */
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  @keyframes wobble {
    0%, 100% { transform: translateY(0%); }
    50% { transform: translateY(65%); }
  }
.form-group {
  margin-bottom: 15px;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.form-group input[type="checkbox"] {
  width: 1.2em;
  height: 1.2em;
  margin-right: 8px;
  accent-color: #007bff;
}

#settingsForm .action-button {
  margin-top: 10px;
}
.alert {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.alert.error {
  background-color: #fdecea;
  color: #b71c1c;
  border: 1px solid #f5c6cb;
}

.alert.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.account-section form .form-group {
  display: flex;
  flex-direction: column;
}

.account-section form .form-group label {
  margin-bottom: 6px;
  font-weight: 500;
}

.account-section form .form-group input {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
/* account.css */

/* Container for form fields */
.account-section .form-group {
  margin-bottom: 1.5rem;
}

/* Style the label */
.account-section .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #444;
}

/* Style the textarea */
.account-section .form-group textarea#address {
  width: 100%;
  min-height: 10px;
  padding: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  background-color: #fafafa;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical; /* allow vertical resizing only */
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Focus state */
.account-section .form-group textarea#address:focus {
  outline: none;
  border-color: #5b9bd5;
  box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.2);
}

/* Placeholder styling */
.account-section .form-group textarea#address::placeholder {
  color: #999;
}
