/* Grid wrapper */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--fs-11);
  /* padding: 0 1.5rem; */
  width: 100%;
}

.dashboard-main {
  width: 100%;
}

.dashboard-icon {
  font-size: 2.5rem;
}

/* Each card */
.dashboard-grid .category-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-grid .category-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Icon box */
.dashboard-grid .category-img-box img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* Content box */
.dashboard-grid .category-content-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: var(--fs-8);
  font-weight: var(--weight-700);
  overflow: hidden;
  text-transform: uppercase;
}

/* Title */
.dashboard-grid .category-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-color-dark);
  margin: 0;
}

.dashboard-grid .category-content-flex {
  margin: 0;
  overflow: auto hidden;
  scroll-snap-type: inline mandatory;
  overscroll-behavior-inline: contain;
}

.dashboard-main .dashboard-like {
  margin: 1.5rem 0;
}

/* Button */
.dashboard-grid .category-btn {
  display: inline-block;
  padding: 6px 10px;
  background-color: var(--brand-color-dark);
  color: #fff;
  border-radius: 6px;
  font-size: var(--fs-10);
  text-decoration: none;
  transition: background 0.3s;
  inline-size: fit-content;
}

.dashboard-grid .category-btn:hover {
  background-color: var(--brand-color);
  color: #fff;

}

/* Responsive tweaks */
@media (max-width: 768px) {
  .dashboard-grid {
    /* grid-template-columns: 1fr; */
    gap: 1rem;
    /* padding: 1rem; */
  }

  .dashboard-grid .category-btn {
    font-size: var(--fs-11);
  }
}



/* Tabs container */
.customer-tabs {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  font-family: "Segoe UI", Arial, sans-serif;
  width: 100%;
}


/* Tab navigation */
.customer-tabs-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid #eee;
}

.customer-tabs-nav li {
  flex: 1;
  text-align: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 500;
  color: #3a2e2e;
  transition: background 0.3s, color 0.3s;
}

.customer-tabs-nav li.active {
  border-bottom: 3px solid var(--brand-color-dark);
  color: var(--brand-color-dark);
  font-weight: 600;
}

/* Tab content */
.customer-tab-content {
  padding: 1.5rem;
}

.customer-tab-pane {
  display: none;
}

.customer-tab-pane.active {
  display: block;
}

/* Cards inside tabs */
.customer-profile-card,
.customer-photo-card,
.customer-password-card {
  background: #fafafa;
  border-radius: 10px;
  padding: 1rem;
}

.customer-profile-card h3,
.customer-photo-card h3,
.customer-password-card h3 {
  color: var(--brand-color-dark);
  margin-bottom: 1rem;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .customer-tabs-nav li {
    font-size: 0.9rem;
    padding: 0.6rem;
  }

  .customer-tab-content {
    padding: 1rem;
  }
}

.customer-profile-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
}

.customer-profile-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.customer-profile-title {
  color: #3a2e2e;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.customer-profile-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--brand-color-dark);
  place-self: center;
}

.customer-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.customer-form-group {
  display: flex;
  flex-direction: column;
}

.customer-form-group-full {
  grid-column: 1 / -1;
}

.customer-form-group label {
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: #3a2e2e;
}

.customer-form-group input,
.customer-form-group select,
.customer-form-group textarea {
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
}

.customer-form-group textarea {
  resize: vertical;
}

.customer-form-actions {
  text-align: center;
  margin-top: 1.5rem;
}

.customer-btn-primary {
  background-color: var(--brand-color-dark);
  color: #fff;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.customer-btn-primary:hover {
  background-color: var(--brand-color);
}

.customer-alert {
  padding: 0.8rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.customer-alert-error {
  background: #ffe0e0;
  color: #a33;
}

.customer-alert-success {
  background: #e0ffe0;
  color: #2a6;
}

@media (max-width: 600px) {
  .customer-profile-img {
    width: 90px;
    height: 90px;
  }

  .customer-btn-primary {
    width: 100%;
  }
}

/* Card container */
.customer-photo-card {
  background: #fff;
  padding: 1.5rem;
  text-align: center;
  justify-items: center;
}

/* Title */
.customer-photo-title {
  color: var(--brand-color-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Preview image */
.customer-photo-preview {
  margin-bottom: 1rem;
}

.customer-photo-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--brand-color-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* File input */
.customer-photo-upload {
  margin: 1rem 0;
}

.customer-photo-input {
  display: none;
}

.customer-photo-label {
  display: inline-block;
  background-color: #B71C1C;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.3s;
  margin-top: 1rem;
}

.customer-photo-label:hover {
  background-color: var(--brand-color);
}


/* Submit button */
.customer-photo-actions {
  margin-top: 1rem;
}

.customer-photo-btn {
  background-color: var(--brand-color-dark);
  color: #fff;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.customer-photo-btn:hover {
  background-color: var(--brand-color);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .customer-photo-img {
    width: 100px;
    height: 100px;
  }

  .customer-photo-btn {
    width: 100%;
  }
}

/* Card container */
.customer-password-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 400px;
  margin: 0 auto;
  justify-items: center;
}

/* Title */
.customer-password-title {
  color: var(--brand-color-dark);
  font-weight: 600;
  margin-bottom: 1.2rem;
  text-align: center;
}

/* Form groups */
.customer-password-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.customer-password-group label {
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: #3a2e2e;
}

/* Inputs */
.customer-password-input {
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.customer-password-input:focus {
  border-color: var(--brand-color-dark);
  outline: none;
}

/* Actions */
.customer-password-actions {
  text-align: center;
  margin-top: 1rem;
}

.customer-password-btn {
  background-color: var(--brand-color-dark);
  color: #fff;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.customer-password-btn:hover {
  background-color: var(--brand-color);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .customer-password-card {
    padding: 1rem;
  }

  .customer-password-btn {
    width: 100%;
  }
}

.alert-success {
  background: #e6ffed;
  border: 1px solid #28a745;
  color: #155724;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  width: 100%;

}

.alert-danger {
  background: #fae7e7;
  border: 1px solid #d41b1b;
  color: #ff7878;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  width: 100%;
}

.form-note {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

/* Reset / Forget */

.login100-form {
  margin-bottom: 50px;
}

.error-field {
  border: 1px solid #dc3545;
}

.error-message {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  color: var(--onyx);
}

.strength-inline-text {
  font-size: 0.85em;
  font-weight: 500;
  /* min-width: 80px; */
}

.strength-inline-bar {
  flex: 1;
  height: 6px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.strength-inline-bar span {
  display: block;
  height: 100%;
  width: 0;
  transition: width 0.3s ease, background-color 0.3s ease;
}


#strength-bar {
  height: 10px;
  width: 100%;
  background: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

#strength-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 6px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

#strength-text {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--onyx);

}

.match-message,
#match-message {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 20px;

}

.match-message.match,
#match-message.match {
  color: #28a745;
  /* green */
}

.match-message.nomatch,
#match-message.nomatch {
  color: #dc3545;
  /* red */
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-5px);
  }

  40% {
    transform: translateX(5px);
  }

  60% {
    transform: translateX(-5px);
  }

  80% {
    transform: translateX(5px);
  }

  100% {
    transform: translateX(0);
  }
}

.shake {
  animation: shake 0.3s;
}

.login100-form-btn:disabled {
  background-color: #ccc;
  /* gray when disabled */
  color: #666;
  cursor: not-allowed;
  opacity: 0.7;
}

.toggle-password {
  cursor: pointer;
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--onyx);
  user-select: none;
}

.toggle-password:focus {
  outline: none;
  /* no focus outline */
}

.toggle-password.active ion-icon {
  color: var(--onyx);
  /* copper accent when active */
}

.form-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--onyx);
}

.form-note {
  font-size: var(--fs-9);
  color: #555;
  margin-bottom: 1rem;
}

.helper-text {
  font-size: 0.85em;
  color: #666;
  margin-top: 6px;
}

button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}


.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 0 20px;
}

.strength-inline-text {
  font-size: 0.85em;
  font-weight: 500;
  /* min-width: 80px; */
}

.strength-inline-bar {
  flex: 1;
  height: 6px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.strength-inline-bar span {
  display: block;
  height: 100%;
  width: 0;
  transition: width 0.3s ease, background-color 0.3s ease;
}

#match-message {
  font-size: 0.85em;
  margin-top: 4px;
}

#match-message.match {
  color: #28a745;
}

#match-message.nomatch {
  color: #ff4d4d;
}

#submit-helper {
  margin-top: 8px;
  font-size: 0.85em;
}