.flex-user {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* Full viewport height */
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  position: relative;
}

.flex3 {
  display: flex;
  justify-content: space-between;
}

/* Card */
mat-card {
  padding: 2.5rem;
  width: min-content;
  box-shadow: none;
}

/* Form Fields */
mat-form-field {
  width: 17.8rem;
  margin-bottom: 1.5rem;
}

/* Card Footer */
mat-card-footer {
  color: #0596ff;
  text-align: center;
  text-decoration-line: underline;
}

/* Button */
#logOutButton {
  color: #fff;
  text-align: center;
  width: 15.9375rem;
  height: 3.75rem;
  background-color: #002d3c;
  flex-shrink: 0;
  border-radius: 6.25rem;
  margin-top: 3rem;
  cursor: pointer;
}

/* Button-Disabled */
button[disabled] {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
}

:host ::ng-deep .mat-mdc-text-field-wrapper {
  border-radius: 10px;
  background: #fff;
}

::ng-deep
  .mdc-text-field--outlined.mdc-text-field--disabled
  .mdc-text-field__input {
  color: #000010 !important;
}

::ng-deep
  .mat-mdc-text-field-wrapper.mdc-text-field--outlined
  .mdc-notched-outline--upgraded
  .mdc-floating-label--float-above {
  color: #949494 !important;
}

/* Spoiler text for the Change Password toggle */
.change-password-toggle {
  display: flex;
  justify-content: center; /* Center the text horizontally */
  margin-top: 1rem; /* Add space above the text */
  margin-bottom: 0.5rem; /* Reduce space below the text for closer proximity to fields */
  cursor: pointer; /* Change cursor to indicate clickable text */
}

.change-password-toggle p {
  color: #002d3c; /* Set the text color */
  text-decoration: underline; /* Underline the text to indicate it's clickable */
}

.change-password-toggle p:hover {
  color: #0596ff; /* Change text color on hover for visual feedback */
}

/* Container for the Change Password form fields */
.change-password-fields {
  display: flex;
  flex-direction: column; /* Stack the form fields vertically */
  gap: 1.5rem; /* Space between each form field */
}

/* Style for each form field */
.change-password-fields mat-form-field {
  margin-bottom: 1.5rem; /* Add space below each form field */
}

/* Style for the Update Password button */
.update-password-button {
  display: flex;
  justify-content: center; /* Center the button horizontally */
  margin-top: 0.5rem; /* Space above the button, consistent with form field spacing */
}

.update-password-button button {
  padding: 0.5rem 1rem; /* Increase padding for more space around the text */
  font-size: 0.75rem; /* Smaller font size for the button text */
  color: #333; /* Change text color for the button */
  background-color: transparent; /* No background color for the button */
  border: 1px solid #002d3c; /* Add a border with the desired color */
  border-radius: 0.25rem; /* Slight rounding of corners */
  cursor: pointer; /* Change cursor to indicate clickable button */
  text-transform: uppercase; /* Uppercase button text */
  letter-spacing: 0.05rem; /* Add some letter spacing */
  transition: all 0.3s; /* Transition for color and border color change */
  box-shadow: none; /* Remove the shadow for a flat style */
  font-weight: bold; /* Make the text bold */
}

/* Override padding for suffix icon in LTR direction */
:host ::ng-deep .mat-mdc-form-field-icon-suffix {
  padding: 0 !important;
}

/* Override padding for prefix icon in RTL direction */
:host ::ng-deep [dir="rtl"] .mat-mdc-form-field-icon-prefix {
  padding: 0 !important;
}

.userProfileDiv {
  position: relative;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  max-width: 17.8rem;
  max-height: 17.8rem;
  border-radius: 10%;
  border: 1px solid #0011;
  overflow: hidden;
}

.userProfileImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sync-icon {
  margin-top: 13px;
  position: absolute;
  right: 0;
  cursor: pointer;
  width: 24px;
  height: 24px;
}

.spinner-section {
  margin-top: 13px;
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-section-center {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.non-editable-field ::ng-deep .mat-mdc-text-field-wrapper {
  background: transparent; /* Setzt die Farbe des Labels auf inaktiv */
}

.non-editable-field input[readonly] {
  color: #000000; /*rgba(0, 0, 0, 0.4);  Graue Textfarbe für nicht bearbeitbare Eingabe */
  background-color: transparent;
  cursor: default;
}

.user-info {
  display: flex;
  justify-content: center;
}

.center-container {
  margin: 0 20%;
}

@media only screen and (max-width: 768px) {
  .center-container {
    margin: 0 5%;
  }
}

.default-background-color {
  background: #f6f9fc;
}

.editable-field {
  width: 13.8rem;
}
