@use '../styles/variables' as *;

// ── Block ─────────────────────────────────────────────────────────────────────
.dashboard {
  min-height: 100vh;
  background: var(--clr-bg);

  // ── Elements ────────────────────────────────────────────────────────────────
  &__header {
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    box-shadow: $shadow-sm;
  }

  &__header-inner {
    max-width: $container-max-width;
    margin-inline: auto;
    padding: $spacing-4 $spacing-6;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  &__title {
    font-size: $font-size-xl;
    font-weight: $font-weight-semibold;
    color: var(--clr-text);
  }

  &__subtitle {
    font-size: $font-size-sm;
    color: var(--clr-text-secondary);
    margin-top: $spacing-1;
  }

  &__header-actions {
    display: flex;
    align-items: center;
    gap: $spacing-3;
  }

  &__res-link {
    display: inline-flex;
    align-items: center;
    gap: $spacing-2;
    padding: $spacing-2 $spacing-4;
    border: 1px solid var(--clr-border);
    border-radius: $radius-base;
    background: transparent;
    font-size: $font-size-sm;
    font-weight: $font-weight-medium;
    color: var(--clr-text-secondary);
    text-decoration: none;
    transition: background $transition-fast, color $transition-fast;

    &:hover {
      background: var(--clr-surface-raised);
      color: var(--clr-text);
    }
  }

  &__res-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: $primary-500;
    color: #fff;
    border-radius: $radius-full;
    font-size: 11px;
    font-weight: $font-weight-semibold;
  }

  &__logout-btn {
    display: inline-flex;
    align-items: center;
    gap: $spacing-2;
    padding: $spacing-2 $spacing-4;
    border: 1px solid var(--clr-border);
    border-radius: $radius-base;
    background: transparent;
    font-size: $font-size-sm;
    font-weight: $font-weight-medium;
    font-family: $font-family-base;
    color: var(--clr-text-secondary);
    cursor: pointer;
    transition: background $transition-fast, color $transition-fast;

    &:hover {
      background: var(--clr-surface-raised);
      color: var(--clr-text);
    }
  }

  &__main {
    max-width: $container-max-width;
    margin-inline: auto;
    padding: $spacing-8 $spacing-6;
    display: flex;
    flex-direction: column;
    gap: $spacing-6;
  }

  &__grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: $spacing-6;
    align-items: start;

    @media (max-width: $bp-lg) { grid-template-columns: 1fr; }
  }

  &__booking { min-width: 0; }

  &__aside { }
}
