/* Shared blue theme for all application variants. */
.app-shell.gestionatu-theme {
    --theme-accent: #65caff;
    --theme-license-color: #c7ecff;
    --theme-selected-ink: #103c58;
    --theme-selected-bg: #bfe8ff;
    --theme-selected-border: #7abde3;
    --theme-selected-accent: #269edb;
    --theme-focus: #1475a8;
    --theme-shortcut-hover: #bfe8ff;
    --theme-shortcut-border: #4ba6d6;
}

.gestionatu-theme .session-panel strong { color: #e8f7ff; }
.gestionatu-theme .workspace-content:has(> .dashboard-gestionatu) {
    display: flex;
    flex-direction: column;
    padding: 16px;
}
.gestionatu-theme .dashboard-gestionatu {
    flex: 1;
    width: 100%;
    min-height: 500px;
    padding: clamp(112px, 14vh, 150px) 22px 18px;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border: 1px solid #42617a;
    border-radius: 14px;
    box-shadow: 0 10px 30px #07111e26;
}
.dashboard-gestionatu::before { background: none; }
.dashboard-app-heading {
    position: absolute;
    z-index: 1;
    inset: 10px 20px auto;
    display: grid;
    justify-items: center;
    gap: 3px;
    text-align: center;
    pointer-events: none;
}
.dashboard-app-heading h2 {
    margin: 0;
    color: #d5f2ff;
    font-size: clamp(24px, 2.3vw, 36px);
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.1;
    text-shadow: 0 2px 8px #000b;
}
.dashboard-app-heading p {
    max-width: 100%;
    margin: 0;
    color: #c0dbef;
    font-size: clamp(13px, 1.05vw, 16px);
    font-weight: 400;
    line-height: 1.3;
    text-shadow: 0 1px 5px #000;
}
.gestionatu-theme .dashboard-gestionatu .desktop-shortcut-toolbar {
    justify-self: start;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    max-width: 100%;
    min-height: 48px;
    padding: 8px 12px;
    background: #d7effbef;
    border: 1px solid #87b6d2;
    border-radius: 12px;
    box-shadow: 0 8px 22px #040c182e;
    overflow: visible;
}
.gestionatu-theme .dashboard-gestionatu .dashboard-gym-access {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    justify-self: start;
    align-self: start;
    gap: 18px;
    width: min(430px, 100%);
    margin: 28px 0 20px;
}
.gestionatu-theme .dashboard-gestionatu .dashboard-gym-access-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex: 0 1 190px;
    width: 190px;
    min-height: 216px;
    padding: 14px;
    border: 1px solid #6388a4;
    border-top: 3px solid #8fd7ff;
    border-radius: 14px !important;
    background: linear-gradient(120deg, #173149e8, #102236eb);
    box-shadow: 0 8px 24px #020a182e;
}
.gestionatu-theme .dashboard-gestionatu .dashboard-gym-access-link img {
    width: 150px;
    height: 130px;
    max-width: 100%;
    object-fit: contain;
    transform: none;
}
.gestionatu-theme .dashboard-access-caption { justify-items: center; gap: 4px; text-align: center; }
.gestionatu-theme .dashboard-access-caption strong { font-size: 17px; }
.gestionatu-theme .dashboard-access-caption small { font-size: 12px; }
.gestionatu-theme .dashboard-gestionatu .dashboard-gym-access-link:hover,
.gestionatu-theme .dashboard-gestionatu .dashboard-gym-access-link:focus-visible {
    transform: translateY(-3px);
    border-color: #65caff;
    background: linear-gradient(120deg, #254662f2, #183148f2);
    outline: 2px solid #65caff;
    outline-offset: 3px;
    filter: none;
}

.gestionatu-theme .dashboard-vertical-access .dashboard-gym-access {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
    width: min(300px, 100%);
    margin: 12px 0;
}
.gestionatu-theme .dashboard-vertical-access .dashboard-gym-access-link {
    flex: none;
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    min-height: 112px;
    padding: 12px;
    gap: 14px;
}
.gestionatu-theme .dashboard-vertical-access .dashboard-gym-access-link img {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
}
.gestionatu-theme .dashboard-vertical-access .dashboard-access-caption {
    justify-items: start;
    text-align: left;
}
.gestionatu-theme .dashboard-gestionatu .dashboard-bottom-panel {
    justify-self: stretch;
    justify-items: start;
    padding-top: 24px;
    pointer-events: auto;
}
.dashboard-brand-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: relative;
    z-index: 1;
    color: #d5f2ff;
    font-family: "Segoe UI", Arial, sans-serif;
    text-decoration: none;
    line-height: 1.3;
}
.dashboard-brand-link strong { font-size: 21px; font-weight: 700; letter-spacing: .06em; }
.dashboard-brand-link span { font-size: 14px; color: #b6d7ef; }
.dashboard-brand-link:hover { color: #65caff; }
.dashboard-brand-link:focus-visible { outline: 2px solid #65caff; outline-offset: 6px; border-radius: 3px; }
.dashboard-app-image {
    position: absolute;
    right: 22px;
    bottom: 18px;
    width: auto;
    height: 300px;
    max-width: calc(100% - 360px);
    object-fit: contain;
    object-position: right bottom;
    pointer-events: none;
}
@media (max-width: 1100px) {
    .gestionatu-theme .dashboard-gestionatu:has(.dashboard-app-image) {
        flex-shrink: 0;
        grid-template-rows: 0 auto auto;
    }
    .gestionatu-theme .dashboard-gestionatu .dashboard-bottom-panel:has(.dashboard-app-image) {
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 24px;
    }
    .dashboard-app-image {
        position: static;
        align-self: flex-end;
        max-width: 100%;
    }
}
@media (min-width: 761px) {
    .gestionatu-theme .dashboard-vertical-access {
        min-height: 740px;
        flex-shrink: 0;
    }
}

@media (max-height: 700px) and (min-width: 761px) {
    .dashboard-app-heading { top: 6px; }
    .dashboard-app-heading h2 { font-size: 28px; }
    .dashboard-app-heading p { font-size: 13px; }
    .gestionatu-theme .dashboard-gestionatu { padding-top: 90px; }
    .gestionatu-theme .dashboard-gestionatu .dashboard-gym-access { margin-top: 20px; }
}
@media (max-width: 760px) {
    .gestionatu-theme .dashboard-gestionatu { flex: none; min-height: 850px; height: auto; padding: 108px 18px 18px; overflow: visible; }
    .dashboard-app-heading { inset: 10px 12px auto; }
    .dashboard-app-heading h2 { font-size: 24px; }
    .dashboard-app-heading p { font-size: 13px; }
    .gestionatu-theme .dashboard-gestionatu .dashboard-gym-access { gap: 14px; margin: 24px 0; }
    .gestionatu-theme .dashboard-gestionatu .dashboard-gym-access-link { flex-basis: 190px; }
}

.app-shell.gestionatu-theme.app-light-theme {
    --theme-accent: #176899;
    --theme-license-color: #284c68;
    --theme-shortcut-hover: #d1e9fa;
    --theme-shortcut-border: #88b6d4;
    background: #e8f1f8;
    color: #183b56;
}

.gestionatu-theme.app-light-theme .sidebar {
    --sidebar-surface: #f3f8fc;
    --sidebar-border: #a9c1d3;
    --sidebar-divider: #c3d6e4;
    --sidebar-text: #173952;
}

.gestionatu-theme.app-light-theme .sidebar .chevron { color: #486b85; }
.gestionatu-theme.app-light-theme .sidebar .logout-classic-icon {
    border-right-color: #37769f;
    border-bottom-color: #37769f;
    border-left-color: #37769f;
}

.gestionatu-theme.app-light-theme .workspace-header {
    background: linear-gradient(110deg, #fff, #e3eff8);
}

.gestionatu-theme.app-light-theme .workspace-header h1 { color: #12486f; }

.gestionatu-theme.app-light-theme :is(.session-panel, .environment-pill) {
    background: #edf6fd;
    color: #224963;
    border-color: #abc5d8;
}

.gestionatu-theme.app-light-theme .session-panel strong { color: #143954; }
.gestionatu-theme.app-light-theme .workspace-content:has(> .dashboard-gestionatu) { background: #e8f1f8; }

.gestionatu-theme.app-light-theme .dashboard-gestionatu {
    --dashboard-light-overlay: linear-gradient(135deg, rgb(251 253 255 / 94%), rgb(223 238 250 / 83%));
    background-color: #e8f3fb;
    border-color: #a9c1d3;
    color: #173952;
}

.gestionatu-theme.app-light-theme .dashboard-gestionatu :is(.dashboard-app-heading h2, .dashboard-app-heading p, .dashboard-brand-link, .dashboard-brand-link span, .dashboard-access-caption strong, .dashboard-access-caption small) {
    color: #173952;
    text-shadow: none;
}

.gestionatu-theme.app-light-theme .dashboard-gestionatu :is(.dashboard-gym-access-link, .dashboard-utility-actions) {
    background: #f4faff;
    color: #173952;
    border-color: #92b6cf;
}

.gestionatu-theme.app-light-theme .dashboard-gestionatu .dashboard-support-button { color: #173952; }

.gestionatu-theme.app-light-theme .dashboard-gestionatu .dashboard-gym-access-link:is(:hover, :focus-visible) {
    background: #dceffc;
    border-color: #438cba;
}

.gestionatu-theme .dashboard-primary-access {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 100%;
}

.gestionatu-theme .dashboard-gestionatu .dashboard-primary-access .dashboard-gym-access-link {
    flex: none;
    max-width: 100%;
}

.gestionatu-theme .dashboard-vertical-access .dashboard-primary-access {
    width: 100%;
    gap: 12px;
}
