﻿
/* Schedule Component Style  */
.schedule-card {
    border-radius: 16px;
    overflow: hidden;
    background-color: #f8f9fc;
    margin-bottom: 12px;
    box-shadow: 0 0 0 1px #e9ecef;
}

.day-box-highlight {
    width: 70px;
    min-width: 70px;
    background-color: #34c79e;
    color: #f8f9fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.day-box {
    width: 70px;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.schedule-details {
    background-color: white;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    padding: 12px 16px;
}

/* For Checkbox Tooltip */
.form-floating > label {
    padding: 0.6rem 0.75rem;
    font-weight: 500; /* Optional: make it a bit bolder */
    background: transparent !important;
}

    .form-floating > label::after {
        background-color: transparent !important;
        height: 1.8rem;
    }

.form-floating > input {
    height: calc(3.5rem + 2px);
}

.indicator-sup {
    font-size: 0.75rem; /* Smaller text */
    vertical-align: super; /* Raise it like a superscript */
    margin-right: 4px; /* Space between this and number */
    display: inline-block;
}

.collapse-info {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    transform: translateY(10px);
    width: max-content;
    max-width: 300px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 10;
    white-space: normal;
    word-wrap: break-word;
}

/* Show on hover */
.form-check:hover .collapse-info {
    display: block;
}

/* For Table-row Tooltip */
/* Tooltip container */
.row-tooltip {
    display: none;
    position: absolute;
    top: -36px;
    left: 10px;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    font-size: 12px;
    color: #333;
    z-index: 9999; /* ensure it's above header */
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

/* Show tooltip on hover */
td.position-relative:hover .row-tooltip {
    display: block;
    opacity: 1;
}

/* Make sure the scroll container allows positioning */
.table-responsive {
    position: relative;
    overflow: auto;
    z-index: 1; /* default stacking context */
}

/* For OnBoarding Steps UI */
/* Container for the entire step progress */
.step-progress {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.step {
    position: relative;
    text-align: center;
    flex: 1;
    z-index: 1;
}
    /* The circle inside each step */
    .step .circle {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background-color: #ccc; /* Default gray */
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        font-size: 18px;
        margin: 0 auto;
        transition: background-color 0.3s, color 0.3s;
    }

    /* Active step circle (green) */
    .step.active .circle {
        background-color: #198754;
    }

    /* Completed step circle (green) */
    .step.completed .circle {
        background-color: #198754;
    }

    /* Error step circle (red) */
    .step.error .circle {
        background-color: #dc3545; /* Bootstrap red */
    }

.step-label {
    margin-top: 8px;
    font-size: 14px;
}

/* Connecting line between steps */
.step::after {
    content: "";
    position: absolute;
    top: 22px;
    left: 50%;
    width: 100%;
    height: 4px;
    background-color: #ccc; /* Always gray by default */
    z-index: -1;
}

/* Remove connector from last step */
.step:last-child::after {
    display: none;
}

/* Completed step's connecting line (green) */
.step.completed::after {
    background-color: #198754;
}

.tab-content {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 5px;
    min-height: 120px;
}

.step-pane {
    display: none;
}

    .step-pane.active {
        display: block;
    }

.nav-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    border: none;
    color: #333;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

    .icon-btn:hover {
        background-color: rgba(255, 255, 255, 0.6);
        color: #000;
    }

@media (max-width: 576px) {
    /* For Steps */
    .step-progress {
        padding: 0 5px;
        margin-bottom: 20px;
    }

    .step .circle {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .step-label {
        font-size: 11px;
        margin-top: 4px;
    }

    .step::after {
        top: 15px;
        height: 2px;
    }
    /* For Tooltip CheckBox */
    .collapse-info {
        left: 50%;
        transform: translate(-50%, 10px);
        max-width: 90vw;
        width: auto;
    }
    /* For Tooltip Table-row */
    .row-tooltip {
        left: 50%;
        transform: translateX(-50%);
        max-width: 90vw;
        white-space: normal;
    }

    /* Employee Schedule */
    .schedule-card {
        border-radius: 16px;
        overflow: hidden;
        background-color: #f8f9fc;
        margin-bottom: 12px;
        box-shadow: 0 0 0 1px #e9ecef;
    }

    .day-box-highlight {
        width: 70px;
        min-width: 70px;
        background-color: #34c79e;
        color: #f8f9fc;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        border-top-left-radius: 16px;
        border-bottom-left-radius: 16px;
    }

    .day-box {
        width: 70px;
        min-width: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        border-top-left-radius: 16px;
        border-bottom-left-radius: 16px;
    }

    .schedule-details {
        background-color: white;
        border-top-right-radius: 16px;
        border-bottom-right-radius: 16px;
        padding: 12px 16px;
    }
}


