﻿

.section {
    margin-top: 2rem;
}



/* Reduce padding on canvases and spacing for labels within the Current Lesson section */
.current-lesson-box canvas {
    padding: 0; /* Remove unnecessary padding */
    max-width: 90%; /* Optional: Constrain canvas size */
    height: auto; /* Maintain aspect ratio */
}

.current-lesson-box p {
    margin-top: 0.5rem; /* Reduce spacing between chart and label */
    font-size: 0.9rem; /* Optional: Adjust label size */
}

/* Optional: Add spacing between the two stacked charts for smaller screens */
@media (max-width: 991px) { /* Below lg breakpoint */
    .current-lesson-box .row > div {
        margin-bottom: 1rem; /* Add spacing between stacked charts */
    }
}

.offcanvas {
    transition: transform 0.3s ease-in-out;
}


.offcanvas-resource.offcanvas-end {
    width: 100vw !important;
    max-width: 500px !important;
}

@media (min-width: 500px) {
    .offcanvas-resource.offcanvas-end {
        width: 500px !important;
    }
}


.resource-card {
    cursor: pointer;
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-left: 2px solid var(--brand-primary);
    border-radius: 0.25rem;
    transition: box-shadow 0.2s ease;
}


    .resource-card:hover {
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }



.tool-resource {
    border-left: 4px solid #0d6efd; /* Bootstrap primary */
    background-color: #f3f8fd;
}

.tool-assignment {
    border-left: 4px solid #157347; /* darker Bootstrap green */
    background-color: #f1f9f4;
}



.coach-note {
    background-color: var(--gray-lightest);
    border-left: 4px solid var(--brand-secondary);
    padding: var(--space-sm) var(--space-md);
    border-radius: 0.25rem;
}

    .coach-note p:last-of-type {
        margin-bottom: 0;
    }



/* Add bottom border to headers */
.level-header.completed {
    border-bottom: 4px solid var(--success-color); /* Green for completed levels */
}

.level-header.active {
    border-bottom: 4px solid var(--brand-primary); /* Red for active levels */
}



.badge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.badge-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: gray;
    position: relative; /* Needed for count positioning */
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.5));
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

    .badge-icon:hover {
        transform: scale(1.1);
    }

    .badge-icon img {
        height: 75%;
        filter: grayscale(100%);
        opacity: 0.5;
        transition: opacity 0.2s ease-in-out;
        filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.5));
    }

    .badge-icon.earned {
        background-color: var(--lead);
    }

        .badge-icon.earned a {
            cursor: pointer;
        }

        .badge-icon.earned img {
            opacity: 1;
        }



.badge-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: red;
    color: white;
    font-size: 14px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
}



.badge-check {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: green;
    color: white;
    font-size: 16px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
}



.badge.lead {
    background-color: var(--lead);
}

.badge.manager {
    background-color: var(--manager);
}

.badge.executive {
    background-color: var(--executive);
}



.badge-label {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
}



/* Full-width hero header */
.hero-header {
    background-color: var(--brand-dark);
    position: relative;
    width: 100%;
    height: 200px;
    border-bottom: solid 5px var(--brand-secondary);
}


/* Centered content inside the hero section */
.hero-header .container {
    position: relative;
    z-index: 2; /* Ensure text stays above the overlay */
    color: white; /* Adjust text color for contrast */
    text-align: center;
}

/* Main content overlapping the hero */
.content-container-top-offset {
    position: relative;
    margin-top: -200px; /* Adjust overlap */
    background: white; /* Keep content readable */
    padding: 1rem;
    border-radius: 10px; /* Optional: rounded corners */
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1); /* Soft shadow */
}


@media (min-width: 576px) {
    .content-container-top-offset {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media (min-width: 992px) {
    .content-container-top-offset {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}





/* Assessment Page */
.option-btn {
    transition: all 0.3s ease;
}

.btn-check:checked + .option-btn {
    background-color: var(--brand-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0px 0px 10px rgba(173, 181, 189, 0.5);
}

.small-label {
    font-size: 0.875rem;
    font-weight: bold;
    color: var(--gray-darkest);
}



.practice-section-title {
    border-left: 4px solid var(--gray-medium);
    padding-left: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}


.assessment-block {
    background-color: var(--gray-lightest);
    border-left: 4px solid var(--gray-medium);
    padding: var(--space-sm) var(--space-md);
    border-radius: 0.25rem;
}

    .assessment-block > .row:last-of-type {
        padding-bottom: 0 !important;
    }


.assessment-accordion .accordion-item {
    background-color: transparent;
    border: none;
}

.assessment-accordion .accordion-body {
    background-color: transparent;
    padding: 0;
}


.assessment-accordion-link {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    font-size: 0.875rem; /* match .small */
    color: #6c757d; /* Bootstrap text-muted */
    text-align: left;
    text-decoration: underline;
    width: auto;
}

    .assessment-accordion-link:focus,
    .assessment-accordion-link:active {
        outline: none;
        box-shadow: none;
    }

    .assessment-accordion-link::after {
        display: none !important; /* Hide chevron */
    }




/* --- Resource Card Base --- */
.resource-container {
    background-color: #fff;
    border-left-color: var(--brand-primary); /* Bootstrap primary */
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease-in-out;
}

    .resource-container:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        background-color: var(--gray-lightest);
    }
     
    /* --- Typography + Spacing --- */
    .resource-container h2 {
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
    }

    .resource-container p {
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }

    .resource-container .btn {
        margin-top: 0.5rem;
    }

    /* --- Alert Texts (inside cards) --- */
    .resource-container .text-warning {
        font-weight: 500;
        font-size: 0.9rem;
    }


    .resource-container .progress {
        border-radius: 5px;
    }

    .resource-container .progress-bar {
        background-color: var(--success-color);
        transition: width 0.4s ease;
    }





/* --- Dashboard Card Base --- */
.dashboard-container {
    background-color: #fff;
    border-left-color: var(--brand-primary); /* Bootstrap primary */
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px; /* Optional: rounded corners */
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1); /* Soft shadow */
}

    /* --- Typography + Spacing --- */
    .dashboard-container h2 {
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
    }

    .dashboard-container p {
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }

    .dashboard-container .btn {
        margin-top: 0.5rem;
    }

    /* --- Alert Texts (inside cards) --- */
    .dashboard-container .text-warning {
        font-weight: 500;
        font-size: 0.9rem;
    }


    .dashboard-container .progress {
        border-radius: 5px;
    }

    .dashboard-container .progress-bar {
        background-color: var(--success-color);
        transition: width 0.4s ease;
    }


