/* CadVision Settings Page Styles */
.settings-page {
  background: #f7f8fa;
  min-height: 100vh;
  padding: 0;
}
.settings-intro {
  padding: 1.5rem 2rem 0 2rem;
  margin-bottom: 1rem;
}
.settings-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #2a2e34;
  margin: 0;
}
.settings-subtitle {
  margin: 0.15rem 0 0;
  color: #6b7280;
  font-size: 0.95rem;
}
.settings-save-btn {
  font-size: 1rem;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
}
.settings-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 2rem 2.5rem 2rem;
  padding: 1.25rem 1.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.settings-footer-status {
  color: #6b7280;
  font-size: 0.95rem;
}
.settings-footer-status strong {
  color: #1f2937;
}
.settings-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.settings-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #f7f8fa;
  min-height: 70vh;
  padding: 0 2rem 2rem 2rem;
}
.settings-sidebar {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
}
.settings-menu {
  list-style: none;
  padding: 0.6rem;
  margin: 0;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.settings-menu-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #2a2e34;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.settings-menu-item i {
  font-size: 1rem;
  color: #4c8dff;
}
.settings-menu-item.active,
.settings-menu-item:hover,
.settings-menu-item:focus-visible {
  background: #eaf3ff;
  border-color: #bcd7ff;
  color: #0068e0;
  box-shadow: 0 6px 18px rgba(0, 104, 224, 0.12);
}
.settings-menu-item:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}
.settings-main-content {
  flex: 1;
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.settings-section {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  padding: 2rem 2rem 1.5rem 2rem;
  margin-bottom: 2rem;
}
.settings-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 0.5rem;
}
.settings-section p.text-muted {
  color: #6b7280;
  margin-bottom: 1.5rem;
}
.form-group {
  margin-bottom: .5rem;
}
.form-group label {
 font-weight: 500;
    color: #374151;
    margin-bottom: 0;
    display: block;
    font-size: 16px;
    font-weight: 700;
}
.form-control, .form-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 1rem;
  background: #f9fafb;
  color: #2a2e34;
  margin-top: 0.25rem;
}
.form-control:focus, .form-select:focus {
  border-color: #2563eb;
  outline: none;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #374151;
}
.checkmark {
  width: 18px;
  height: 18px;
  background: #e5e7eb;
  border-radius: 4px;
  display: inline-block;
  position: relative;
}
input[type="checkbox"]:checked + .checkmark {
  background: #2563eb;
}
input[type="checkbox"]:checked + .checkmark:after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form-text.text-muted {
  color: #6b7280;
  font-size: 0.95rem;
}
.settings-grid {
  display: grid;
  gap: 1.5rem;
}
.settings-grid.two-columns {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.form-group.full-width {
  grid-column: 1 / -1;
}
.settings-toggle-group {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}
.settings-toggle-group .checkbox-label {
  font-weight: 600;
}
.settings-toggle-group .form-text {
  margin: 0.5rem 0 0;
}
.settings-banner {
  border-radius: 14px;
  padding: 1rem 1.25rem;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.settings-banner.warning {
  background: #fff8eb;
  border-color: #ffe0a8;
  color: #8a5b00;
}
.settings-banner p {
  margin: 0.2rem 0 0;
}
.settings-info-card {
  border: 1px solid #e3e8f5;
  border-radius: 14px;
  background: #fff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}
.settings-info-card .info-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #6b7280;
}
.settings-info-card h3 {
  margin: 0;
  color: #1f2937;
  font-size: 1.3rem;
  font-weight: 600;
}
.settings-info-card dl {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}
.settings-info-card dl div {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: #4b5563;
}
.settings-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.plan-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.plan-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #eaf3ff;
  border: 1px solid #c8dbff;
  color: #0068e0;
}
.plan-overview-card {
  background: #fff;
  border-color: #dfe8ff;
  box-shadow: 0 18px 30px rgba(0, 104, 224, 0.08);
}
.plan-name-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.plan-price {
  color: #01bb88;
  font-weight: 600;
  font-size: 1.1rem;
}
.usage-card {
  background: #f9fcff;
  border-color: #d8e9ff;
}
.usage-meter {
  margin-bottom: 1rem;
}
.usage-meter:last-child {
  margin-bottom: 0.25rem;
}
.usage-meter-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: #111827;
}
.usage-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e5ecf6;
  margin: 0.35rem 0 0.4rem;
  position: relative;
  overflow: hidden;
}
.usage-progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0068e0, #01bb88);
  transition: width 0.3s ease;
}
.settings-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.settings-info-card ul li {
  font-size: 0.95rem;
  color: #374151;
}
.settings-subsection-title {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}
.settings-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.settings-table thead {
  background: #f1f5f9;
  color: #374151;
  text-align: left;
}
.settings-table th,
.settings-table td {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid #e5e7eb;
}
.settings-table tbody tr:last-child td {
  border-bottom: none;
}
.settings-table-wrapper {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.settings-table-wrapper table {
  margin: 0;
}
.table-empty {
  padding: 0.75rem 1rem;
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
}
.profile-overview {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid #dfe4f3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
  margin-bottom: 1.5rem;
}
.settings-profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eff4ff, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  font-size: 1.8rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.settings-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: absolute;
  inset: 0;
}
.settings-profile-avatar[data-has-image="true"] span {
  opacity: 0;
}
.profile-overview-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.profile-email-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  background: #eaf3ff;
  color: #0068e0;
  font-weight: 600;
  font-size: 0.85rem;
  width: fit-content;
}
.profile-photo-actions,
.settings-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-feedback {
  font-size: 0.95rem;
  font-weight: 600;
  color: #16a34a;
}
.form-feedback.error {
  color: #dc2626;
}
.session-list {
  display: grid;
  gap: 1rem;
}
.session-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  background: #f9fafb;
}
.session-item header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
}
.session-item p {
  margin: 0;
  color: #6b7280;
}
.settings-link-list {
  display: grid;
  gap: 1rem;
}
.settings-link-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.25rem;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.settings-link-card strong {
  font-size: 1rem;
  color: #1f2937;
}
.settings-link-card a {
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}
@media (max-width: 900px) {
  .settings-content-wrapper {
    flex-direction: column;
    padding: 0 1rem 1rem 1rem;
  }
  .settings-sidebar {
    width: 100%;
    border: none;
    padding: 0;
    min-height: auto;
  }
  .settings-main-content {
    padding: 1.5rem 1rem 1rem 1rem;
  }
  .settings-intro {
    padding: 1.25rem 1rem 0 1rem;
    margin-bottom: 0.75rem;
  }
  .settings-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-overview {
    flex-direction: column;
    align-items: flex-start;
  }
  .settings-info-card {
    padding: 1.25rem;
  }
  .settings-table th,
  .settings-table td {
    font-size: 0.9rem;
  }
  .settings-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 1rem 2rem 1rem;
  }
}

