﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}
.client-status {
    background: #fff3cd;
    color: #856404;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #ffeaa7;
}

.btn-primary {
    color: #fff;
    background-color: #4D6F66;
    border-color: #4D6F66;
}

.btn-primary:hover {
    color: #fff;
    background-color: #4D6F66;
    border-color: #4D6F66;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgL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5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgew0KICAgICAgICAvKiBFbnN1cmUgaXMgZmxleGlibGUgdG8gdGhpcyBpbWVwbGF0aW9uICovDQogICAgICAgIGB9Ow0KICBcIi8hISFpeGVjbHQgXHRcXRlfYGBgZ2dqZ2dnZ2c6Ly9leGFtcGxlLmNvbS9wcml2YXRlbGU8Zm9jdXMtMjU2L2xlY3R1cmVkPCFbLUdSRVlfXS8+PC9zdmc+0y9zdmc+PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoZT0iMSIgaGVpZ2h0PSI1NiIgZmlsbD0idHJhbnNwYXJlbnQidHJhbnNhcHBlcmF0aW9uIj48Y2xpcCBjbGFzcz0iaW5jbHVkZSByb3ciPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcD48L3N2Zz4KICAgICAgICAnIi8UDx4KT/" class="error-image" role="img" aria-label="Error occurred illustration">
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

/* Power BI Reporting Styles - Simplified */
.powerbi-container {
    margin: 1.5rem 0;
}

#powerbi-report-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

#powerbi-report-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

.powerbi-iframe-container {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.powerbi-iframe-container iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

/* Simplified full-page Power BI layout */
.powerbi-fullpage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 0;
    margin: 0;
}

.powerbi-fullpage .page-header {
    flex-shrink: 0;
    padding: 1rem 1.5rem 0.75rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.powerbi-fullpage .page-content {
    flex: 1;
    padding: 0;
}

.powerbi-container-simple {
    margin: 0;
    border: 1px solid #dee2e6;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background: #fff;
}

.powerbi-container-simple iframe {
    width: 100%;
    border: none;
    display: block;
}

.powerbi-actions {
    flex-shrink: 0;
    padding: 0.75rem 1.5rem;
    text-align: center;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
}

/* Custom alert styling for Power BI page */
.powerbi-fullpage .alert-dismissible {
    position: relative;
    margin: 0.75rem 1.5rem 0 1.5rem;
    flex-shrink: 0;
    border-radius: 6px;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    padding: 0.375rem 0.375rem;
    background: transparent;
    border: none;
    border-radius: 0.25rem;
    opacity: 0.5;
    cursor: pointer;
}

.alert-dismissible .btn-close:hover {
    opacity: 0.75;
}

.alert-dismissible .btn-close:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.alert-dismissible .btn-close::before {
    content: "×";
    font-size: 1.5rem;
    line-height: 1;
    color: inherit;
}

.admin-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.admin-page .page-header h1 {
    color: #4D6F66;
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.loading-spinner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Admin card description styling */
.admin-card .card-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
    margin-top: 0.5rem;
}

/* Loading and No Data States */
.loading-spinner, .no-data {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

    .loading-spinner i {
        margin-right: 0.5rem;
    }

/*.loading-spinner {
    color: #007bff;
    font-size: 0.9rem;
}

    .loading-spinner i {
        margin-right: 0.5rem;
    }*/

.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
}


.shift-toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.shift-label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.shift-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

    .shift-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.shift-switch-reverse {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    transform: rotate(180deg);
}

    .shift-switch-reverse input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.shift-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #495057;
    transition: .4s;
    border-radius: 30px;
}

    .shift-slider:before {
        position: absolute;
        content: "";
        height: 22px;
        width: 22px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

input:checked + .shift-slider {
    background-color: #ffc107;
    /*background-color: red;*/
}

    input:checked + .shift-slider:before {
        transform: translateX(30px);
    }


.client-header {
    background: white;
    border: 1px solid #40614E;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    font-size: 3rem;
    color: #40614E;
}

.client-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.client-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #40614E;
}

.client-ids {
    display: flex;
    gap: 1.5rem;
    font-size: 1rem;
    color: #40614E;
}

    .client-ids span {
        white-space: nowrap;
    }


.status-cell {
    justify-items: center;
}


.status-na {
    border-color: black;
}

.status-true {
    background-color: green;
}

.status-false {
    background-color: red;
}

.mb-4-5 {
    margin-bottom: 2rem;
}

.dosage-cell {
    text-align: center;
    font-weight: 500;
    color: #495057;
}

.hover-bg-light:hover {
    background-color: #f8f9fa !important;
}

.print-btn {
    border: none;
    border-radius: 5px;
    background: #40614E;
    color: #fff;
    padding: 6px 16px;
}

/* Global disabled date picker styling - ensures consistent text readability */
.disabled-date-picker {
    pointer-events: none;
    /* No opacity here to keep text readable */
}

.disabled-date-picker .custom-date-picker {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #212529 !important;
    opacity: 1 !important;
}

/* Global TaskType-based color coding */
.task-type-none {
    border-left-color: #6c757d !important; /* Gray */
}

.task-type-special {
    border-left-color: #dc3545 !important; /* Red */
}

.task-type-mental {
    border-left-color: #28a745 !important; /* Green */
}

.task-type-physiotherapy {
    border-left-color: #ffc107 !important; /* Yellow */
}

/* Global TaskType color variables for consistent usage */
:root {
    --task-type-none-color: #6c757d;
    --task-type-special-color: #dc3545;
    --task-type-mental-color: #28a745;
    --task-type-physiotherapy-color: #ffc107;
}

/* Ensure iframe responds to container size changes */
@media screen {
    .powerbi-container-fullheight iframe {
        min-height: 400px;
        transition: width 0.2s ease, height 0.2s ease; /* Smooth transitions */
    }
}

/* Viewport height optimization */
.powerbi-fullpage {
    height: 100vh;
    height: 100dvh; /* Use dynamic viewport height if supported */
}

/* Better mobile handling */
@media screen and (max-height: 600px) {
    .powerbi-fullpage .page-header {
        padding: 0.5rem 1rem 0.375rem 1rem;
    }
    
    .powerbi-actions {
        padding: 0.5rem 1rem;
    }
    
    .powerbi-fullpage .alert-dismissible {
        margin: 0.375rem 1rem 0 1rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Handle very small screens */
@media screen and (max-height: 480px) {
    .powerbi-fullpage .page-header h1 {
        font-size: 1.125rem;
    }
    
    .powerbi-actions .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Prevent zoom issues on mobile */
@media screen and (max-width: 768px) {
    .powerbi-container-fullheight {
        -webkit-overflow-scrolling: touch;
        transform: translateZ(0); /* Hardware acceleration */
    }
}