.dashboard-layout {
  min-height: 100vh;
  display: flex;
  gap: 2rem;
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  align-items: stretch;
}

.dashboard-left,
.dashboard-center,
.dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
  min-width: 320px;
}

.dashboard-center {
  flex: 1.3;
}

.favorite-card {
  height: auto;
}

#container-favorites-links {
  margin-top: 1rem;

  display: flex;
  flex-direction: column;

  gap: 1rem;
}

.weather-card,.password-card {
  flex: 1;
  min-height: 280px;

  display: flex;
  flex-direction: column;

  gap: 1rem;

  overflow: hidden;
}

.clock-card {
  height: auto;

  display: flex;
  align-items: center;
  justify-content: center;
}

.password-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.password-form {
  display: flex;
  flex-direction: row;
  gap: 1rem;

  align-items: center;
}

.password-form input {
  flex: 1;
}

#container-password {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.dashboard-page .favorites-container,
.dashboard-page .clock-container,
.dashboard-page .weather-container,
.dashboard-page .password-container {
  min-height: auto;
  display: block;
  padding: 0;
}

@media (max-width: 1200px) {

  .dashboard-layout {
    flex-direction: column;
    align-items: stretch; 
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .dashboard-left,
  .dashboard-center,
  .dashboard-right {
    width: 100%;
    min-width: 100%;
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .favorite-card,
  .password-card,
  .weather-card,
  .clock-card {
    width: 100% !important;
    max-width: 100% !important;

    box-sizing: border-box;
  }

  .password-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .password-form input,
  .password-form button {
    width: 100%;
  }

  .clock-card {
    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
  }

  .weather-card {
    overflow-y: auto;
    overflow-x: hidden;
  }

  #container-favorites-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}