.navbar-logo {
    width: 200px; /* Adjust the width as needed */
    height: auto; /* Ensure the height adjusts proportionally */
}

.navbar {
    display: flex;
    align-items: center; /* Align items vertically centered */
    justify-content: space-between; /* Ensure space between logo and links */
}

.navbar-brand {
    margin-right: auto; /* Align logo to the left */
    padding-left: 20px; /* Add padding to the left */
}

.navbar-nav {
    margin-left: auto; /* Align links to the right */
    padding-right: 20px; /* Add padding to the right */
}


.center-container {
    display: flex; /* Use Flexbox */
    flex-direction: row; /* Stack children vertically */
    align-items: center; /* Center-align horizontally */
    justify-content: center; /* Center-align vertically */
    margin-bottom: 20px; 
}

.small-title {
    font-size: smaller; /* existing font size rule */
    margin-top: 10px; /* Adjust as needed */
    margin-bottom: 0px; /* Adjust as needed */
    /* Other styling rules */
}

.section-header {
    font-family: 'Roboto', sans-serif; /* A modern, clean font */
    font-size: 2.5em; /* A larger size for emphasis */
    color: #333; /* Dark color for readability */
    display: flex;
    justify-content: space-between;
    align-items: center; /* Ensure items are vertically centered */
    margin: 0;
}

.active-scs-container {
    display: flex; /* Use flexbox for the container */
    align-items: center; /* Center items vertically */
    margin-left: auto;
}

.user-greeting {
    margin-left: 10px; /* Adjust this value as needed for spacing */
    display: flex;
    align-items: center;
}

.user-profile-pic {
    width: 40px; /* Adjust size as needed */
    height: 40px;
    border-radius: 50%;
    margin-left: 10px; /* Space between profile picture and text */
}

.online-users-list {
    display: flex;
    flex-wrap: wrap;
    font-size: .2em; /* Adjusted size for readability */
}

.user-connection {
    display: flex;
    align-items: center; /* Ensure image and text are aligned */
    margin-right: 10px; /* Space between user connections */
}

.user-connection img {
    width: 40px; /* Adjust size as needed */
    height: 40px;
    border-radius: 50%;
    margin-right: 10px; /* Space between image and text */
}

.section-header i {
    color: #ffcc00; /* Color for the icon */
    margin-right: 10px; /* Space between icon and text */
    margin-left: 10px; /* Space between icon and text */
}

.section-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    color: #333;
    display: flex;
    align-items: center;
}

.section-title i {
    color: #ffcc00; /* Color for the icon */
    margin-right: 10px; /* Space between icon and text */
}

.section-sub-title {
    font-family: 'Roboto', sans-serif; /* A modern, clean font */
    font-size: 1em; /* A larger size for emphasis */
    color: #333; /* Dark color for readability */
}

.appointment-animation-container {
    z-index: -1;
    width: 64px; /* Set the width as needed */
    height: 128px; /* Set the height as needed */
    position: absolute;
    top: -23px; /* Adjust this value to position above the bar */
    left: 76%; 
}

.production-animation-container {
    z-index: -1;
    width: 200px; /* Set the width as needed */
    height: 200px; /* Set the height as needed */
    position: absolute;
    top: -65px; /* Adjust this value to position above the bar */
    right: 50%; /* Position on the top left */
    left: 50%; 
    transform: translate(-100%) scaleX(-1); /* Adjust for precise positioning */
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Creates a responsive grid layout */
    gap: 10px; /* Space between cards */
    margin-bottom: 20px; /* Space below the grid */
    align-items: start; /* Align items to the top of the grid */
}

.stats-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
}

.stats-container.office {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Creates a responsive grid layout */
}

.stat-card {
    position: relative; /* Needed for absolute positioning of the link */
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    min-width: 175px;
    cursor: pointer;
    z-index: 0; /* Higher than the animation container */
}

.stat-card-active {
    background-color: rgba(128, 128, 128, 0.7); /* Grey with opacity; adjust as needed */
}   

.greyed-out {
    background-color: rgba(128, 128, 128, 0.2); /* Grey with opacity; adjust as needed */
    z-index: 1000; /* on top */
    pointer-events: none; /* Disable click/hover interactions */
    cursor: not-allowed; /* Change cursor to indicate non-interactivity */
}

.stat-card:hover {
    transform: translateY(-5px); /* Subtle lift effect on hover */
}

.stat-card.flat {
    box-shadow: none;
    border: 3px solid #3333332d; 
    transition: none;
    cursor: default;
}

.stat-card.flat:hover {
    transform: none
}

.stat-card a {
    color: #333; /* Default text color */
    font-weight: bold;
    display: block; /* Make the link fill the button */
    height: 100%; /* Ensure the link fills the button vertically */
    width: 100%; /* Ensure the link fills the button horizontally */
    line-height: normal;
    text-decoration: none; /* Remove underline from links */
    position: absolute; /* Position the link */
    top: 0;
    left: 0;
    z-index: 1; /* Higher than the animation container */
}

.progress-bar-container {
    position: relative;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 5px;
    border: 1px solid #3333332d;
    z-index: 2; 
}

.progress-bar {
    position: absolute;
    height: 100%;
    background-color: #4093A4 !important;
    border-radius: 5px;
    z-index: 4 !important; /* Should be on top of the blue bar */
    max-width: 100%; /* Set the maximum width */
}

.progress-bar-projection {
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    background-color: #63a3f3;
    z-index: 2; /* Should be behind the green bar */
    border-radius: 5px;
    width: 0%; /* Initialize to 0%, will be set in JavaScript */
    max-width: 100%; /* Set the maximum width */
}

.progress-bar-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e54b2c;
    z-index: 5; /* Should be on top of the blue and green bars */
}

.goal-achieved {
    z-index: 998; /* Lower than the animation container */
    background-color: #e0ffe0; /* Light green background */
}

.goal-surpassed-animation-container {
    z-index: -1; /* Place the animation behind other elements */
    width: 200px; /* Set the width as needed */
    height: 200px; /* Set the height as needed */
    position: absolute;
    top: -65px; /* Adjust this value to position above the bar */
    left: 50%; /* Center horizontally */
    transform: translateX(50%); /* Adjust horizontal centering */
}

.stat-value, .stat-title {
    text-align: center;
}

.stat-breakdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 200px;
    overflow-y: auto;
    border-top: 1px solid #eee; /* Optional separator */
    margin-top: 10px;
    padding-top: 10px;
}

.stat-breakdown .actual-achievements,
.stat-breakdown .projected-achievements {
    width: 100%; /* Ensure full width if needed */
    margin-bottom: 20px;
}

.stat-breakdown .actual-achievements {
    background-color: #4093A4; /* Light green background for actual achievements */
    padding: 10px;
    border-radius: 5px;
}

.stat-breakdown .projected-achievements {
    background-color: #63a3f3; /* Light blue background for projected achievements */
    padding: 10px;
    border-radius: 5px;
}

.stat-breakdown ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.stat-breakdown ul li {
    margin: 10px 0;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

.stat-subtitle {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #333; /* Use your theme's primary color */
}

.stat-value.office {
    font-size: 1em;
}

.stat-icon {
    font-size: 3em;
    margin-bottom: 15px;
    color: #333; /* Match the icons with the stat value color */
}

.stat-icon.flipped-icon {
    transform: rotate(180deg);
}

.stat-icon.office {
    font-size: 2em;
}

.stat-card .stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nested-stats {
    margin-top: 10px;
    border-top: 1px solid #eee; /* Optional separator */
    padding-top: 10px;
}

.nested-stat {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.stat-card[data-tooltip]:hover:after {
    content: attr(data-tooltip); /* Tooltip text */
    position: absolute;
    top: 0; /* Position on element */
    left: 0; /* Center horizontally */
    transform: none; /* Remove the horizontal translation */
    color: #333; /* Tooltip text color */
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white background */
    padding: 5px 5px; /* Padding around text */
    border-radius: 4px; /* Rounded corners */
    white-space: wrap; /* Prevent text wrapping */
    opacity: 75;
    transition: opacity 0.3s;
    z-index: 9997; /* High z-index to ensure it's above other items */
    width: 100%; /* Set the width of the tooltip to match the parent */
    text-align: center; /* Center the text within the tooltip */
    opacity: 1;
    pointer-events: none; /* Prevents the tooltip from blocking mouse events */
}

#month_year_picker {
    width: 120px;
    border-radius: 10px; /* Rounded corners */
    border: 1px solid #ced4da; /* A light grey border, similar to Bootstrap's style */
    padding: 5px 10px; /* Some padding inside the text box */
    font-size: 1.5rem; /* Set font size */
    color: #495057; /* A darker grey for text color, similar to Bootstrap's style */
    background-color: #fff; /* White background */
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out; /* Smooth transition for focus */
    bottom: 10px;
    justify-content: center;
    align-items: center;
    vertical-align: middle; /* Aligns the input vertically with the buttons */
    text-align: center; /* Aligns the input text horizontally with the buttons */
}

#month_year_picker:focus {
    border-color: #80bdff; /* A blue border color when the input is focused */
    outline: 0; /* Removes the default focus outline */
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25); /* A subtle shadow outline similar to Bootstrap's focus style */
}

/* Styling for the buttons */
.btn-icon {
    background-color: #75bfe9; 
    color: white;
    border: none;
    border-radius: 5px; /* Slightly rounded corners for the buttons */
    padding: 5px 5px;
    cursor: pointer;
    line-height: 1; /* Aligns the icon vertically */
    display: inline-flex; /* Use flexbox for aligning the icon */
    align-items: center; /* Center the icon vertically */
    justify-content: center; /* Center the icon horizontally */
    vertical-align: middle; /* Aligns the button vertically with the input */
    margin-left: 5px; /* Space between the buttons */
    margin-right: 5px; /* Space between the buttons */
}

.btn-icon:focus {
    outline: none; /* Removes the default focus outline */
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25); /* Consistent focus style with the input */
}

/* Correcting the icon classes */
.bi-skip-backward, .bi-skip-forward {
    font-size: 1.9rem; /* Makes the icon larger and more visible */
}

.clear-filter {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.no-underline {
    text-decoration: none;
}


body {
    font-family: 'Roboto', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', serif;
}
.good-color {
    color: #4093A4;
}

.bad-color {
    color: #fc432e;
}

.info-color {
    color: #02acea;
}
.info-color-bg {
    background-color: #02acea;
}

.warning-color {
    color: #fdb302;
}

.theme-grey {
    color: #b1c5cc;
}

.theme-dark-grey {
    color: #56768b;
}

.theme-dark-grey-bg {
    background-color: #56768b;
}

.theme-dark-blue {
    color: #021f31;
}
.blue-text {
    color: #4093A4;
}
.call-to-action {
    border-color: #ff0000;
    color: #fc432e;
}
.call-to-action:hover,
.call-to-action:focus {
    background-color: #fc432e;
    color: #fff;
}
.call-to-action-bg {
    background-color: #fc432e;
    color: #fff;
}
.call-to-action-bg:hover,
.call-to-action-bg:focus {
    border-color: #ff0000;
    color: #fc432e;    
}
.edit-office-button {
    position: absolute;
    top: 10px;
    right: 40px;
    z-index: 9999;
    font-size: 1.5rem;
}

.edit-office-button:hover {
    --fa-primary-color: #02acea;
    transform: translateY(-5px); /* Subtle lift effect on hover */
}

/* Toast notifications - Global styles */
#toast-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 999999 !important;
    pointer-events: auto !important;
}

#toast-container > div {
    opacity: 1 !important;
    padding: 16px 20px !important;
    margin-bottom: 16px !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    min-width: 320px !important;
    max-width: 480px !important;
    pointer-events: auto !important;
    transition: all 0.3s ease !important;
}

#toast-container > div:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-2px) !important;
}

.toast {
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Success toast */
.toast-success {
    border-left: 4px solid #10B981 !important;
    background: #ffffff !important;
    border: 1px solid #D1FAE5 !important;
}

.toast-success .toast-message {
    color: #065F46 !important;
    font-weight: 500 !important;
}

/* Error toast */
.toast-error {
    border-left: 4px solid #EF4444 !important;
    background: #ffffff !important;
    border: 1px solid #FEE2E2 !important;
}

.toast-error .toast-message {
    color: #991B1B !important;
    font-weight: 500 !important;
}

/* Warning toast */
.toast-warning {
    border-left: 4px solid #F59E0B !important;
    background: #ffffff !important;
    border: 1px solid #FEF3C7 !important;
}

.toast-warning .toast-message {
    color: #92400E !important;
    font-weight: 500 !important;
}

/* Info toast */
.toast-info {
    border-left: 4px solid #3B82F6 !important;
    background: #ffffff !important;
    border: 1px solid #DBEAFE !important;
}

.toast-info .toast-message {
    color: #1E40AF !important;
    font-weight: 500 !important;
}

.toast-close-button {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: currentColor !important;
    opacity: 0.5 !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    background: none !important;
    border: none !important;
    padding: 4px !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.toast-close-button:hover {
    opacity: 1 !important;
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.toast-title {
    font-weight: 700 !important;
    font-size: 14px !important;
    margin-bottom: 4px !important;
    color: #1F2937 !important;
}

.toast-message {
    margin-right: 28px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    word-wrap: break-word !important;
}

.toast-progress {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 3px !important;
    opacity: 0.8 !important;
    border-radius: 0 0 4px 4px !important;
}

.toast-success .toast-progress {
    background-color: #10B981 !important;
}

.toast-error .toast-progress {
    background-color: #EF4444 !important;
}

.toast-warning .toast-progress {
    background-color: #F59E0B !important;
}

.toast-info .toast-progress {
    background-color: #3B82F6 !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #toast-container {
        top: auto !important;
        bottom: 20px !important;
        left: 16px !important;
        right: 16px !important;
    }
    
    #toast-container > div {
        min-width: auto !important;
        max-width: none !important;
        margin-bottom: 12px !important;
        width: 100% !important;
    }
    
    .toast-message {
        font-size: 13px !important;
    }
}

/* Animation refinements */
@keyframes toast-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-in-bottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#toast-container > div {
    animation: toast-in-right 0.3s ease forwards !important;
}

@media (max-width: 768px) {
    #toast-container > div {
        animation: toast-in-bottom 0.3s ease forwards !important;
    }
}