﻿/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}


body, input, textarea, select, button {
    font-family: 'Poppins', sans-serif;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

body {
    padding-top: 0;
    margin: 0;
}
/*The course cards that has the chart*/
.donut-chart {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
}

.card-body h6 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.card-body p {
    font-size: 0.85rem;
}

.card-body .badge {
    font-size: 0.75rem;
    padding: 0.4em 0.6em;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.card {
    transition: all 0.2s ease-in-out;
}

    .card.border-start-4 {
        /* preserve the 4px left border from Bootstrap’s utility */
        border-left-width: 4px !important;
        /* keep the top/bottom/right at 1px so the card still has an outline there */
        border-top-width: 1px !important;
        border-bottom-width: 1px !important;
        border-right-width: 1px !important;
        border-style: solid !important; /* ensure the other sides are solid */
    }



.bg-kpi-high {
    background-color: rgba(102, 178, 255, 0.75); /* Soft blue */
    color: white;
    border: 1px solid #6dbff0;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.08);
}

.bg-kpi-medium {
    background-color: rgba(255, 206, 86, 0.75); /* Soft yellow */
    color: #333;
    border: 1px solid #e0b84b;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.08);
}

.bg-kpi-low {
    background-color: rgba(255, 99, 132, 0.75); /* Soft red */
    color: white;
    border: 1px solid #d85a7a;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.08);
}

/* Sliding Menu style*/
.offcanvas.offcanvas-wide {
    width: 600px !important;
}

.offcanvas-wide input,
.offcanvas-wide textarea,
.offcanvas-wide select {
    max-width: 100% !important;
    width: 100% !important;
}

/* END Sliding Menu style*/



/* Sidebar Base */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background-color: #212529;
    color: #fff;
    overflow-x: hidden;
    transition: width 0.3s ease;
    z-index: 1000;
}

/*.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background-color: #111;
    color: white;
    z-index: 1000;
    transition: width 0.3s ease-in-out;
    overflow-x: hidden;
}*/


/*.sidebar.collapsed {
        width: 70px;
    }*/

sidebar.collapsed ~ .main-content {
    margin-left: 70px;
}


.sidebar .nav-link {
    color: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

    .sidebar .nav-link:hover {
        background-color: #343a40;
    }

.sidebar .icon {
    display: inline-block;
    width: 25px;
    text-align: center;
}

.sidebar .label {
    transition: opacity 0.2s ease;
}

/*.sidebar.collapsed .label {
        opacity: 0;
        pointer-events: none;
        width: 0;
        overflow: hidden;
    }*/

.sidebar.collapsed .label {
    opacity: 0;
    pointer-events: none;
    width: 0;
    overflow: hidden;
    transition: opacity 0.2s ease; /*this is new */
}


/* Sidebar Hover */
.sidebar.collapsed:hover {
    width: 250px;
}

    .sidebar.collapsed:hover .label {
        opacity: 1;
        pointer-events: auto;
        width: auto;
    }



.header-profile img {
    border: 2px solid #ccc;
    object-fit: cover;
}

.main-content {
    margin-left: 70px;
    transition: margin-left 0.3s ease-in-out;
}

.sidebar.collapsed .nav-link {
    text-align: center;
}


/* TO DO */
.todo-color-bar {
    width: 4px;
    border-radius: 10px;
    margin-right: 10px;
}

.dropdown-menu.show {
    display: block !important;
    z-index: 2000 !important;
}

/*3-dots button*/
.btn.bg-transparent:focus,
.btn.bg-transparent:hover {
    box-shadow: none;
    background-color: transparent;
}

/* For label-style display in View mode */
#activityPanel .form-control-plaintext {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.95rem;
    min-height: 38px;
}

/* Subtle section headers */
#activityPanel h6 {
    margin-top: 1rem;
    font-weight: 600;
    color: #343a40;
}

/* Better spacing in view mode */
#activityPanel .d-none + .form-control-plaintext {
    margin-top: -0.5rem;
}

/* Better spacing around buttons */
#activityPanel .text-end {
    margin-top: 1rem;
}

/* Wizard Stepper Style */
.wizard-steps {
    max-width: 640px;
    margin: 0 auto 2rem auto;
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 0.75rem;
    gap: 0.5rem;
}

.wizard-step {
    flex: 1;
    text-align: center;
    padding: 0.6rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
    color: #6c757d;
}

    .wizard-step.active {
        background-color: var(--bs-primary);
        color: white;
    }

    .wizard-step.disabled {
        background-color: #f1f1f1;
        color: #bbb;
        cursor: not-allowed;
    }

.card {
    overflow: visible !important;
    position: relative;
}

/*Timeline*/

.timeline {
    position: relative;
    margin-left: 1rem;
}

    .timeline::before {
        content: "";
        position: absolute;
        top: 0;
        left: 10px; /* Line left offset */
        width: 2px;
        height: 100%;
        background-color: #dee2e6;
    }

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    top: 0.5rem;
    left: 4px;
    width: 12px;
    height: 12px;
    background-color: #0d6efd;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #dee2e6;
    z-index: 1;
}

/* Slide‑over panel styling, shared across the project */
.offcanvas-panel {
    /* Set the panel width via Bootstrap variable */
    --bs-offcanvas-width: 480px;
    /* Match your site’s off‑canvas background */
    background-color: #fff !important;
    z-index: 3000 !important;
}

    /* Header separator inside the panel */
    .offcanvas-panel .offcanvas-header {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* Body padding for breathing room */
    .offcanvas-panel .offcanvas-body {
        padding: 1.5rem;
    }

    /* Ensure the panel scrolls nicely */
    .offcanvas-panel[data-bs-scroll="true"] {
        overflow-y: auto;
    }
/* Profile Section - Ensure it stays separate */
.profile-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

/* Timeline Section - More specific targeting */
.timeline-section .timeline {
    position: relative;
    padding-left: 1rem;
    margin-top: 1.5rem;
}

    .timeline-section .timeline li {
        position: relative;
        padding-left: 1.5rem;
        margin-bottom: 1.5rem;
        list-style: none;
    }

        .timeline-section .timeline li::before {
            content: "";
            position: absolute;
            top: 0.5rem;
            left: 0;
            width: 10px;
            height: 10px;
            background-color: #0d6efd;
            border-radius: 50%;
            border: 2px solid #fff;
        }

        .timeline-section .timeline li:not(:last-child) {
            border-left: 2px solid #dee2e6;
        }

/* Timeline item content */
.timeline-section .timeline-item-content {
    display: flex;
}

.timeline-section .timeline-date {
    width: 140px;
    text-align: right;
    padding-right: 1rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.timeline-section .timeline-details {
    flex: 1;
}

.sparkline-container {
    position: relative;
}

.sparkline-chart {
    width: 100% !important;
    height: 100% !important;
}


.custom-tab-pills .nav-link {
    border-radius: 8px;
    background-color: transparent;
    color: grey;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s, color 0.3s;
}

    .custom-tab-pills .nav-link:hover {
        background-color: rgba(0, 123, 255, 0.1);
        color: #0056b3;
    }

    .custom-tab-pills .nav-link.active {
        background-color: #20c997; /* match turquoise style */
        color: #fff;
    }


.timeline-container {
    position: relative;
    padding-left: 60px;
}

.icon-timeline {
    list-style: none;
    padding-left: 0;
    margin: 0;
    position: relative;
}

    .icon-timeline::before {
        content: "";
        position: absolute;
        top: 0;
        left: 24px;
        width: 3px;
        height: 100%;
        background-color: #dee2e6;
        z-index: 0;
    }

    .icon-timeline li {
        position: relative;
        margin-bottom: 2.5rem;
    }

.timeline-icon {
    position: absolute;
    left: 14px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #0d6efd;
    background-color: #fff;
    z-index: 1;
}

.timeline-panel {
    background: #fdfdfd; /* off-white background */
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-left: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
    position: relative;
    max-width: 70%; /* make card narrower */
}

@media (max-width: 768px) {
    .timeline-panel {
        max-width: 100%;
    }
}



/*Threshold bar status*/


.threshold-container {
    position: relative;
    padding-top: 40px;
    margin-bottom: 30px;
}

.threshold-bar {
    height: 16px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: visible;
    position: relative;
    display: flex; /* <-- important */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}


.threshold-Verylow {
    height: 100%;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 25%, #ef9a9a 50%, #e57373 75%, #ef5350 100%);
    float: left;
}

.threshold-low {
    height: 100%;
    background: linear-gradient(to right, #f8bcbc, #f28b82); /* Soft red */
    float: left;
}

.threshold-medium {
    height: 100%;
    background: linear-gradient(to right, #ffeaa7, #fcd34d); /* Soft yellow */
    /*float: left;*/
    position: relative;
}

.threshold-high {
    height: 100%;
    background: linear-gradient(to right, #b2f2bb, #81c784); /* Soft green */
    float: left;
}

.threshold-pinpoints {
    position: absolute;
    width: 100%;
    top: -40px;
}

.pinpoint {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
    text-align: center;
}

.pinpoint-line {
    width: 2px;
    height: 12px;
    background: #666;
    margin: 0 auto;
    margin-top: 6px;
    margin-bottom: 6px; /* space between label and line */
    position: relative;
}

    .pinpoint-line:after {
        content: '';
        position: absolute;
        bottom: auto;
        top: -10px;
        left: -4px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #666;
    }

.pinpoint-label {
    font-size: 12px;
    color: #666;
    font-weight: bold;
    margin-top: 5px;
}




.threshold-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.threshold-label {
    font-size: 14px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
}

    .threshold-label.low {
        color: #ff4d4d;
        background: rgba(255, 77, 77, 0.1);
    }

    .threshold-label.medium {
        color: #ffcc00;
        background: rgba(255, 204, 0, 0.1);
    }

    .threshold-label.high {
        color: #4CAF50;
        background: rgba(76, 175, 80, 0.1);
    }


/*.threshold-medium-wrapper {
    position: relative;
    float: left;
    height: 100%;
}*/



.threshold-medium-wrapper {
    position: relative;
    float: left;
    height: 100%;
}


.dynamic-label {
    position: absolute;
    bottom: -29px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 14px;
    font-weight: bold;
    color: #ffcc00;
    background: rgba(255, 204, 0, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}



.metric-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    height: 100%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

    .metric-card h6 {
        color: #6c757d;
        font-size: 14px;
        margin-bottom: 10px;
        font-weight: 600;
    }

.metric-value {
    font-size: 28px;
    font-weight: bold;
    color: #343a40;
    margin-bottom: 5px;
}

.metric-trend {
    font-size: 13px;
    font-weight: 500;
}

.trend-up {
    color: #4CAF50;
}

.trend-down {
    color: #ff4d4d;
}

.status-description {
    font-size: 13px;
}

.badge {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
}

.metric-value small {
    font-size: 0.6em;
    opacity: 0.7;
    margin-left: 2px;
}

/* Enhanced pinpoint styling */
.pinpoint-line {
    width: 1.5px;
    height: 24px;
    bottom: 0; /* anchor to bottom of bar */
    background: #555;
    margin: 0 auto;
    position: relative;
}

.pinpoint-label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-top: 0px;
    margin-bottom: 8px;
    padding: 3px 6px;
    background: rgba(255,255,255,0.9);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    white-space: nowrap;
}

/* Enhanced current value indicator */
.current-value-indicator {
    position: absolute;
    top: -52px;
    transform: translateX(-50%);
    text-align: center;
    z-index: 200; /* Increase this if needed */
}

.indicator-line {
    width: 2px;
    height: 30px;
    background: #3498db;
    margin: 0 auto;
    position: relative;
}

.indicator-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #3498db;
    margin: 0 auto;
    position: relative;
    top: -2px;
}

.indicator-label {
    background: #74b9ff; /* Soft blue for current indicator */
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.label-title {
    font-size: 10px;
    opacity: 0.9;
    margin-bottom: 2px;
}

.label-value {
    font-weight: 700;
}


.threshold-values {
    position: absolute;
    top: -60px;
    width: 100%;
    pointer-events: none;
}

    .threshold-values .value {
        position: absolute;
        transform: translateX(-50%);
        font-size: 12px;
        font-weight: 600;
        color: #444;
        background: rgba(255, 255, 255, 0.85);
        padding: 2px 6px;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
