﻿/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-page {
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(35, 87, 164, 0.35), transparent 45%), linear-gradient(180deg, #030b1b 0%, #06152d 100%);
    color: #ffffff;
    padding: 48px 32px 80px;
}

.dashboard-hero {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 56px auto;
}

.dashboard-logo {
    width: 350px;
    height: auto;
    margin-bottom: 18px;
    filter: drop-shadow(0 0 20px rgba(120, 210, 255, 0.45));
}

.tagline {
    margin-top: 12px;
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.intro-text {
    max-width: 760px;
    margin: 28px auto 0 auto;
    font-size: 1.08rem;
    line-height: 1.8;
    color: #ffffff;
}

.nav-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 26px;
}

.nav-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 28px;
    border-radius: 22px;
    min-height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(120, 205, 255, 0.18);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

    .nav-card:hover {
        transform: translateY(-4px);
        background: rgba(110, 185, 255, 0.10);
        border-color: rgba(130, 220, 255, 0.45);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
    }

    .nav-card h3 {
        margin: 0 0 14px 0;
        font-size: 1.45rem;
        color: #eaf4ff;
    }

    .nav-card p {
        margin: 0;
        font-size: 1.08rem;
        line-height: 1.7;
        color: #ffffff;
    }


/* =========================================================
   PAGE LAYOUT
   ========================================================= */

.app-page {
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(35, 87, 164, 0.35), transparent 45%), linear-gradient(180deg, #030b1b 0%, #06152d 100%);
    color: #ffffff;
    padding: 40px 32px 72px;
    overflow-x: hidden;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    min-width: 0;
}

.page-top-actions {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 18px;
}

.page-header {
    margin-bottom: 32px;
}

.page-title {
    margin: 0 0 10px 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #f3fbff;
}

.page-subtitle {
    margin: 0;
    max-width: 760px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #ffffff;
}

.section-card {
    padding: 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(120, 205, 255, 0.18);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
    min-width: 0;
}

.section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.section-title {
    margin: 0 0 6px 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #eaf4ff;
}

.section-text {
    margin: 0;
    line-height: 1.6;
    color: #ffffff;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn-primary-st {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 14px;
    border: 1px solid rgba(130, 220, 255, 0.35);
    background: linear-gradient( 180deg, rgba(93, 196, 255, 0.28), rgba(47, 138, 199, 0.22) );
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    transition: 0.18s ease;
}

    .btn-primary-st:hover {
        transform: translateY(-2px);
        border-color: rgba(140, 230, 255, 0.55);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    }

.btn-secondary-st {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 14px;
    border: 1px solid rgba(120, 205, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: 0.18s ease;
}

    .btn-secondary-st:hover {
        background: rgba(110, 185, 255, 0.10);
        border-color: rgba(130, 220, 255, 0.35);
    }

.back-button-st {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 14px;
    border: 1px solid rgba(120, 205, 255, 0.20);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

    .back-button-st:hover {
        background: rgba(110, 185, 255, 0.10);
        border-color: rgba(130, 220, 255, 0.40);
        transform: translateY(-1px);
    }

    .back-button-st:focus-visible,
    .btn-primary-st:focus-visible,
    .btn-secondary-st:focus-visible,
    .btn-danger-st:focus-visible,
    .category-toggle-btn:focus-visible {
        outline: 2px solid #8fdcff;
        outline-offset: 3px;
    }

.btn-danger-st {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 14px;
    border: 1px solid rgba(255, 120, 120, 0.28);
    background: rgba(255, 90, 90, 0.14);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.18s ease;
}

    .btn-danger-st:hover {
        background: rgba(255, 90, 90, 0.22);
        border-color: rgba(255, 120, 120, 0.45);
    }


/* =========================================================
   EMPTY STATES / STATUS
   ========================================================= */

.empty-state {
    padding: 20px 0 8px;
}

.empty-state-title {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.empty-state-text {
    margin: 0 0 18px 0;
    line-height: 1.7;
    color: #ffffff;
}

.status-message-st {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(120, 205, 255, 0.18);
    color: #ffffff;
}

.validation-summary-st {
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 110, 110, 0.10);
    border: 1px solid rgba(255, 110, 110, 0.25);
    color: #ffffff;
}

    .validation-summary-st ul {
        margin: 0;
        padding-left: 18px;
    }


/* =========================================================
   TABLES
   ========================================================= */

.table-wrapper {
    overflow-x: auto;
    min-width: 0;
}

.data-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

    .data-table thead th {
        text-align: left;
        padding: 14px 16px;
        font-size: 0.95rem;
        font-weight: 700;
        color: #eaf4ff;
        border-bottom: 1px solid rgba(120, 205, 255, 0.22);
    }

    .data-table tbody td {
        padding: 16px;
        vertical-align: middle;
        color: #ffffff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .data-table tbody tr {
        transition: background 0.18s ease;
    }

        .data-table tbody tr:hover {
            background: rgba(110, 185, 255, 0.08);
        }

.table-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: color 0.18s ease;
}

    .table-link:hover {
        color: #bfe4ff;
    }

.table-strong {
    font-weight: 700;
    color: #ffffff;
}


/* =========================================================
   BADGES
   ========================================================= */

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 700;
}

.status-coach {
    background: rgba(112, 214, 255, 0.14);
    color: #ffffff;
    border-color: rgba(130, 220, 255, 0.28);
}

.status-skater {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.10);
}


/* =========================================================
   FORMS
   ========================================================= */

.form-section {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    gap: 8px;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(120, 205, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
    transition: 0.18s ease;
}

    .form-input:focus,
    .form-select:focus {
        border-color: rgba(140, 230, 255, 0.55);
        box-shadow: 0 0 0 4px rgba(94, 192, 255, 0.12);
        background: rgba(255, 255, 255, 0.07);
    }

.form-select {
    appearance: none;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

    .form-select option {
        background: #11233f;
        color: #ffffff;
    }

        .form-select option:hover,
        .form-select option:checked {
            background: #1f4f8a;
            color: #ffffff;
        }

.form-actions {
    display: flex;
    gap: 14px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    color: #ffffff;
}

    .checkbox-row input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #79d9ff;
    }

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.selection-card-list {
    display: grid;
    gap: 12px;
}

.selection-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(120, 205, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

    .selection-card:hover {
        background: rgba(110, 185, 255, 0.08);
        border-color: rgba(130, 220, 255, 0.35);
        transform: translateY(-1px);
    }

    .selection-card input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #79d9ff;
        flex-shrink: 0;
    }

.selection-card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.selection-card-title {
    font-weight: 700;
    color: #ffffff;
}

.selection-card-subtitle {
    font-size: 0.95rem;
    color: #ffffff;
}


/* =========================================================
   DETAILS
   ========================================================= */

.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(120, 205, 255, 0.14);
}

.detail-label {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
}

.detail-value {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.5;
}

.inline-form-row {
    display: flex;
    align-items: end;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.inline-form-field {
    min-width: 260px;
    flex: 1;
    min-width: 0;
}

.group-stack {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.group-card {
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(120, 205, 255, 0.14);
    min-width: 0;
}

.group-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.group-card-title {
    margin: 0 0 8px 0;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
}

.group-card-text {
    margin: 0;
    color: #ffffff;
    line-height: 1.6;
}

.group-meta {
    margin-bottom: 18px;
}


/* =========================================================
   SKILLS TABLE / TRAINING DETAILS
   ========================================================= */

.skills-table-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.skills-matrix {
    border-collapse: collapse;
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}

    .skills-matrix th,
    .skills-matrix td {
        border: 1px solid rgba(120, 205, 255, 0.16);
        text-align: center;
        vertical-align: middle;
    }

    .skills-matrix thead th {
        background: rgba(255, 255, 255, 0.06);
        color: #ffffff;
        font-weight: 600;
        font-size: 0.92rem;
        line-height: 1.35;
        padding: 10px 8px;
        white-space: normal;
        text-shadow: none;
        letter-spacing: 0;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .skills-matrix tbody td {
        background: rgba(255, 255, 255, 0.03);
        padding: 0;
    }

    .skills-matrix th.sticky-col {
        position: sticky;
        left: 0;
        z-index: 4;
        width: 170px;
        min-width: 170px;
        max-width: 170px;
        text-align: left !important;
        padding: 12px 14px;
        background: #0d1b34 !important;
        box-shadow: 8px 0 14px rgba(0, 0, 0, 0.18);
        white-space: normal;
    }

    .skills-matrix td.sticky-col {
        position: sticky;
        left: 0;
        z-index: 3;
        width: 170px;
        min-width: 170px;
        max-width: 170px;
        text-align: left !important;
        padding: 12px 14px;
        background: #0d1b34 !important;
        box-shadow: 8px 0 14px rgba(0, 0, 0, 0.18);
        white-space: normal;
    }

    .skills-matrix .sticky-col .table-link {
        color: #ffffff;
        font-weight: 700;
    }

    .skills-matrix thead th:not(.sticky-col),
    .skills-matrix tbody td:not(.sticky-col) {
        width: 82px;
        min-width: 82px;
        max-width: 82px;
    }

    .skills-matrix tbody td:not(.sticky-col) {
        height: 52px;
    }

.skill-cell.skill-done {
    background: rgba(92, 201, 125, 0.18);
}

.skill-cell.skill-not-done {
    background: rgba(255, 120, 120, 0.14);
}

.skill-toggle-btn {
    width: 100%;
    height: 100%;
    min-height: 52px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

    .skill-toggle-btn:hover {
        opacity: 0.85;
    }


/* =========================================================
   CATEGORY TOGGLES
   ========================================================= */

.category-toggle-row,
.skill-view-toggle-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-toggle-row {
    margin-bottom: 16px;
}

.skill-view-toggle-row {
    margin-bottom: 18px;
}

.category-toggle-btn {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(120, 205, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.18s ease;
    text-shadow: none;
}

    .category-toggle-btn:hover {
        background: rgba(110, 185, 255, 0.10);
        border-color: rgba(130, 220, 255, 0.35);
    }

    .category-toggle-btn.active {
        background: linear-gradient( 180deg, rgba(93, 196, 255, 0.28), rgba(47, 138, 199, 0.22) );
        border-color: rgba(130, 220, 255, 0.35);
        color: #ffffff;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    }


/* =========================================================
   SKILL LIST CARDS
   ========================================================= */

.skills-list-grid {
    display: grid;
    gap: 14px;
}

.skill-list-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(120, 205, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.skill-list-card-done {
    background: rgba(92, 201, 125, 0.08);
    border-color: rgba(92, 201, 125, 0.18);
}

.skill-list-card-missing {
    background: rgba(255, 120, 120, 0.08);
    border-color: rgba(255, 120, 120, 0.18);
}

.skill-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.skill-list-name {
    font-weight: 700;
    color: #ffffff;
}

.skill-list-text {
    margin: 10px 0 0 0;
    color: #ffffff;
    line-height: 1.6;
}

.skill-list-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}


/* =========================================================
   TOAST
   ========================================================= */

.toast-message-st {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 320px;
    max-width: 440px;
    padding: 18px 24px;
    border-radius: 18px;
    border: 2px solid;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: toastFadeIn 0.18s ease;
}

    .toast-message-st::before {
        font-size: 1.1rem;
        font-weight: 900;
        flex-shrink: 0;
    }

    .toast-message-st.success {
        background: #102d1d;
        border-color: #58d68d;
        color: #ffffff;
    }

        .toast-message-st.success::before {
            content: "✓";
            color: #58d68d;
        }

    .toast-message-st.error {
        background: #3a1720;
        border-color: #ff7b8f;
        color: #ffffff;
    }

        .toast-message-st.error::before {
            content: "!";
            color: #ff9aaa;
        }

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -46%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}




/* =========================================================
   OVERFLOW SAFETY
   ========================================================= */

.app-container,
.section-card,
.group-stack,
.group-card,
.skills-table-wrapper,
.inline-form-field {
    min-width: 0;
}

.view-section-header {
    margin-bottom: 18px;
}

.view-section-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.training-date-group {
    margin-top: 22px;
}

.training-date-heading {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #eaf4ff;
}

.training-subdate-heading {
    margin: 18px 0 10px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.training-archive-group {
    margin-top: 24px;
}

.archive-month-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid rgba(120, 205, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

    .archive-month-toggle:hover {
        background: rgba(110, 185, 255, 0.08);
        border-color: rgba(130, 220, 255, 0.35);
        transform: translateY(-1px);
    }

.archive-month-toggle-icon {
    font-size: 1.2rem;
    line-height: 1;
    color: #ffffff;
    flex-shrink: 0;
}

.training-archive-group {
    margin-top: 24px;
}
/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {
    .nav-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }

    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .dashboard-page {
        padding: 36px 20px 56px;
    }

    .nav-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-logo {
        width: 180px;
    }

    .nav-card {
        min-height: auto;
    }

    .app-page {
        padding: 32px 20px 56px;
    }

    .section-card-header {
        align-items: stretch;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .toast-message-st {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}
