
/* =========================================
   LANTERN - SHARED ORGANISATION STYLES
   ========================================= */

/* Default organisation colours */
:root {
    --primary-colour: #005EB8;
    --secondary-colour: #003087;
}

/* Organisation header */
.organisation-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.organisation-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

.organisation-details {
    min-width: 0;
}

.organisation-header h1 {
    color: var(--primary-colour);
    margin-top: 0;
}

/* Common headings */
h2 {
    color: var(--primary-colour);
}

/* Common buttons */

button {
    background: var(--primary-colour);
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    margin-top: 20px;
    cursor: pointer;
}

button:hover {
    background: var(--secondary-colour);
}

/* Mobile adjustments */
@media (max-width: 400px) {
    .organisation-logo {
        width: 50px;
        height: 50px;
    }

    .organisation-details h1 {
        font-size: 18px;
    }
}

/* =========================================
   LANTERN - PAGE NAVIGATION
   ========================================= */

.page-navigation {
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    color: var(--primary-colour);
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    padding: 8px 0;
}

.back-link:hover {
    text-decoration: underline;
}

.back-link:focus-visible {
    outline: 2px solid var(--primary-colour);
    outline-offset: 4px;
}

/* =========================================
   LANTERN - MULTI-STEP FORMS
   ========================================= */

.form-step[hidden],
.form-navigation button[hidden] {
    display: none;
}

.form-progress {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-colour);
}

.form-navigation {
    display: flex;
    gap: 10px;
}

.form-navigation button {
    flex: 1;
    min-width: 0;
}

#previousButton {
    background: #e5e7eb;
    color: #222;
}

#previousButton:hover {
    background: #d1d5db;
}

/* Assessment progress bar */

.progress-track {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    width: 50%;
    height: 100%;
    background: var(--primary-colour);
    border-radius: 10px;
    transition: width 0.2s ease;
}

/* UCR sidebar layout */

.ucr-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.ucr-sidebar {
    background: #f3f4f6;
    padding: 15px;
    border-radius: 8px;
}

.ucr-main {
    min-width: 0;
    padding: 15px;
}

#toggleSidebar {
    display: none;
}

/* Mobile layout */

@media (max-width: 768px) {

    .ucr-layout {
        grid-template-columns: 1fr;
    }

    #toggleSidebar {
        display: block;
    }

    .ucr-sidebar {
        display: none;
    }

    .ucr-sidebar.open {
        display: block;
    }
}

/* UCR sidebar section buttons */

.ucr-section-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px;
    margin: 4px 0;
    background: transparent;
    color: #333333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.ucr-section-link:hover {
    background: #e5e7eb;
}


/* Keep the selected section highlighted */

.ucr-sidebar .ucr-section-link.active,
.ucr-sidebar .ucr-section-link.active:hover {
    background-color: var(--primary-colour);
    color: white;
    font-weight: bold;
}

