/* Settings Page Styles */
@import '../themes/variables.css';

.settings-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.settings-placeholder {
  padding: 2rem;
  text-align: center;
  color: var(--color-text-secondary, #666);
}

.settings-placeholder h3 {
  color: var(--color-text-primary, #333);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.settings-placeholder p {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Future settings sections styling */
.settings-section {
  padding: 1.5rem;
}

.settings-section-title {
  margin: 0 0 1.5rem 0;
  color: var(--color-text-primary);
  font-size: 1.2rem;
  font-weight: 600;
}

.settings-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.settings-option:last-child {
  border-bottom: none;
}

.settings-option-info {
  flex: 1;
  margin-right: 1rem;
}

.settings-option-title {
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.settings-option-description {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.settings-option-control {
  flex-shrink: 0;
}

/* Unit System Radio Controls */
.settings-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.settings-radio-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.settings-radio-option:hover {
  background-color: var(--color-background-secondary, #f5f5f5);
}

.settings-radio-option input[type='radio'] {
  margin-right: 0.75rem;
  cursor: pointer;
  accent-color: var(--color-primary, #007bff);
}

.settings-radio-option input[type='radio']:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.settings-radio-label {
  color: var(--color-text-primary, #333);
  font-size: 0.95rem;
  cursor: pointer;
}

.settings-radio-option:has(input:disabled) .settings-radio-label {
  color: var(--color-text-muted, #999);
  cursor: not-allowed;
}

.settings-loading {
  color: var(--color-text-secondary, #666);
  font-style: italic;
  padding: 0.5rem 0;
}

.settings-update-indicator {
  color: var(--color-primary, #007bff);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 0.5rem;
}

/* Password Form Styling */
.password-form {
  max-width: 400px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.9rem;
}

.form-input {
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  background-color: var(--color-background);
  color: var(--color-text-primary);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.2);
}

.form-input:disabled {
  background-color: var(--color-background-secondary);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.form-help {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.settings-placeholder-text {
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0;
  padding: 2rem 0;
  text-align: center;
}

/* Profile Completion Status */
.profile-completion-status {
  border-left: 4px solid var(--color-primary);
  background: linear-gradient(
    135deg,
    rgba(var(--color-primary-rgb), 0.05),
    rgba(var(--color-primary-rgb), 0.02)
  );
}

.completion-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.completion-status-header h3 {
  margin: 0;
  color: var(--color-text-primary);
  font-size: 1.1rem;
}

.completion-percentage {
  background-color: var(--color-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.completion-status-message {
  margin: 0 0 1rem 0;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.completion-progress-bar {
  height: 6px;
  background-color: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.completion-progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-success)
  );
  border-radius: 3px;
  transition: width 0.3s ease;
}

.missing-info {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.completion-action {
  display: flex;
  justify-content: flex-start;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* Profile Display */
.profile-display {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-label {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.9rem;
}

.field-value {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.4;
}

.placeholder-text {
  color: var(--color-text-muted);
  font-style: italic;
}

.role-badge {
  background-color: var(--color-background-secondary);
  color: var(--color-text-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: capitalize;
}

/* Profile Edit Form */
.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Responsive Design */

/* Unified Settings Actions */
.settings-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
}

.settings-actions-info {
  flex: 1;
}

.settings-changes-indicator {
  color: #856404;
  font-size: 0.875rem;
  font-weight: 500;
}

.settings-actions-buttons {
  display: flex;
  gap: 1rem;
}

.settings-section-description {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}


