.userPreferences-page {
  width: 100%;
}

.userPreferences-page #toastContainer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

.userPreferences-page .toast {
  min-height: 80px;
  padding: 16px 20px;
}

.userPreferences-page .page-header {
  margin-bottom: 2rem;
}

.userPreferences-page .page-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  margin: 0 0 0.5rem 0;
}

.userPreferences-page .page-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary, #6b7280);
  margin: 0;
}

.userPreferences-page .preferences-container {
  background-color: var(--card-bg, #ffffff);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid var(--border, #e5e7eb);
}

.userPreferences-page .preference-section.card {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  padding-bottom: 25px;
  background: none;
  box-shadow: none;
  border-left: none;
  border-right: none;
  border-top: none;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
}

.userPreferences-page .preference-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.userPreferences-page .preference-section h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-primary, #1f2937);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.userPreferences-page .preference-section h3 i {
  color: #3b82f6;
  font-size: 1rem;
}

.userPreferences-page .preference-group {
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.userPreferences-page .preference-label {
  width: 200px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text-primary, #1f2937);
}

.userPreferences-page .preference-options {
  flex: 1;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.userPreferences-page .theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 15px;
  border-radius: 8px;
  transition: all 0.2s;
  border: 2px solid var(--border, #e5e7eb);
}


.userPreferences-page .theme-option.selected {
  background-color: rgba(59, 130, 246, 0.05);
  border-color: var(--primary-color)
}

.userPreferences-page .theme-preview {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid var(--border, #e5e7eb);
  overflow: hidden;
}

.userPreferences-page .theme-light {
  background: #f1f5f9;
}

.userPreferences-page .theme-light .preview-header {
  background: #ffffff;
  height: 20%;
  border-bottom: 1px solid #e2e8f0;
}

.userPreferences-page .theme-light .preview-sidebar {
  background: #ffffff;
  width: 25%;
  height: 80%;
  float: left;
  border-right: 1px solid #e2e8f0;
}

.userPreferences-page .theme-light .preview-content {
  background: #f1f5f9;
  width: 75%;
  height: 80%;
  float: left;
}

.userPreferences-page .theme-dark {
  background: #1e1e2d;
}

.userPreferences-page .theme-dark .preview-header {
  background: #2a2a3c;
  height: 20%;
  border-bottom: 1px solid #303042;
}

.userPreferences-page .theme-dark .preview-sidebar {
  background: #2a2a3c;
  width: 25%;
  height: 80%;
  float: left;
  border-right: 1px solid #303042;
}

.userPreferences-page .theme-dark .preview-content {
  background: #1e1e2d;
  width: 75%;
  height: 80%;
  float: left;
}

.userPreferences-page .font-size-options {
  display: flex;
  gap: 15px;
}

.userPreferences-page .font-size-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 2px solid var(--border, #e5e7eb);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 100px;
  text-align: center;
}

html.dark-theme .userPreferences-page .font-size-option:hover {
  background-color: var(--surface-hover, #f9fafb);
  border-color: var(--primary-color)
}

.userPreferences-page .font-size-option:hover {
  background-color: var(--surface-hover, #f9fafb);
  border-color: var(--primary-color)
}

.userPreferences-page .font-size-option.selected {
  background-color: rgba(59, 130, 246, 0.05);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.userPreferences-page .font-small {
  font-size: 0.85rem;
}

.userPreferences-page .font-medium {
  font-size: 1rem;
}

.userPreferences-page .font-large {
  font-size: 1.15rem;
}

.userPreferences-page .actions-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.userPreferences-page  .btn-reset-default-preferences {
    background-color: var(--btn-secundary-color);
    color: var(--btn-secundary-text-color);
    border: var(--border-type);
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.userPreferences-page .btn-primary-spa {
  padding: 6px 14px;
  border: none;
  background-color: var(--primary-color);
  color: var( --btn-secundary-color);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  width: auto;
  white-space: nowrap;
}

.userPreferences-page .btn-primary-spa:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Dark Theme */
html.dark-theme .userPreferences-page .preferences-container {
  background-color: #2c2c2c;
  border-color: #555555;
}

html.dark-theme .userPreferences-page .page-title,
html.dark-theme .userPreferences-page .preference-section h3,
html.dark-theme .userPreferences-page .preference-label {
  color: #f0f0f0;
}

html.dark-theme .userPreferences-page .page-subtitle {
  color: #b0b0b0;
}

/*
html.dark-theme .userPreferences-page .preference-section {
  border-bottom-color: #555555;
}*/
/*
html.dark-theme .userPreferences-page .theme-option,
html.dark-theme .userPreferences-page .font-size-option {
  border-color: #555555;
}*/

/*
html.dark-theme .userPreferences-page .theme-option:hover,
html.dark-theme .userPreferences-page .font-size-option:hover {
  border-color: var(--primary-color);
}

html.dark-theme .userPreferences-page .btn-reset-fault-preferences {
  color: var(--btn-secundary-color);
  border: var(--border-type)
   
}*/

/* Responsive */
@media (max-width: 768px) {
  .userPreferences-page .preference-group {
    flex-direction: column;
  }

  .userPreferences-page .preference-label {
    width: 100%;
    margin-bottom: 15px;
  }

  .userPreferences-page .theme-option,
  .userPreferences-page .font-size-option {
    flex: 0 0 calc(50% - 10px);
  }

  .userPreferences-page .actions-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
  }

  .userPreferences-page .actions-buttons button {
    width: 100%;
  }
}