@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

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

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* PDF Export Styles */
.pdf-container {
    width: 100%;
}

.pdf-content {
    background-color: white;
    padding: 15px;
    margin-bottom: 20px;
}

.content {
    padding-top: 1.1rem;
}

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

.signature-pad {
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

.nav-tabs .nav-link.active {
    background-color: #f8f9fa !important; /* Bootstrap primary */
    color: white !important;
    border-color: #dee2e6 #dee2e6 #fff !important;
}


.nav-pills .nav-link {
    font-size: 0.8rem;
    color: #000;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

    .nav-pills .nav-link.active, .nav-pills .show > .nav-link {
        color: #fff;
        background-color: #15588E;
        border-color: #15588E;
    }

.nav-pills .nav-link:not(.active):hover {
    background-color: #e9ecef;
}

.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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IH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uNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.case-nav-container {
    background-color: white;
    padding: 1rem;
    border-radius: 0.25rem;
}

.custom-appbar.k-appbar {
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 3px solid #15588E !important;
    /* border-bottom-color: #488f4d !important; */
}

.render-body-container {
    min-height: 60vh;
    height: auto;
    overflow: auto;
}


/* Base sidebar */
/*.sidebar {
    background-color: #15588E !important;
    color: white;
    background-image: none !important;
    width: 220px;
    min-width: 220px;
    height: 80vh;
    padding: 1rem;
    border-top: 2px solid white;
}*/

.sidebar {
    background-color: #15588E !important;
    color: white;
    background-image: none !important;
    width: 220px;
    min-width: 220px;
    height: auto; 
    min-height: 90vh; 
    padding: 1rem;
    border-top: 2px solid white;
}


/* Mobile view: sidebar is hidden by default */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 56px; 
        left: -220px; 
        transition: left 0.3s ease;
        z-index: 1050;
    }

    .sidebar-show {
        left: 0 !important;
    }

    .sidebar-backdrop {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        /* background-color: rgba(0, 0, 0, 0.4); */
        z-index: 1040;
    }
}

@media (max-width: 768px) {
    .image-container {
        width: 100%; /* Use full width when sidebar is collapsed */
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .img-fluid {
        max-height: 40vh;
    }
}

.navbar-title {
    font-size: 1.25rem;
    white-space: nowrap;
    color: #15588E !important;
    z-index: 1;
    pointer-events: none; /* So clicks pass through if needed */
}

@media (max-width: 576px) {
    .navbar-title {
        font-size: 1rem;
    }
}

.dcf-ext-template-footer {
    background: #003467 !important;
    font-family: Roboto, sans-serif !important;
    font-size:12.25px !important;
    min-height: 70px;
    margin: 0em !important;
}

a.dcf-ext-template-link {
    color: #007bff;
    text-decoration: none;
    background-color: transparent;
}

    a.dcf-ext-template-link:hover {
        color: #0056b3;
        text-decoration: underline;
    }

    a.dcf-ext-template-link:not([href]):not([tabindex]),
    a.dcf-ext-template-link:not([href]):not([tabindex]):hover,
    a:not([href]):not([tabindex]):focus {
        color: inherit;
        text-decoration: none;
    }

        a.dcf-ext-template-link:not([href]):not([tabindex]):focus {
            outline: 0;
        }

.text-white {
    color: white !important;
}

.dcf-ext-template-prefooter-link-list {
    padding-bottom: 1rem;
}

    .dcf-ext-template-prefooter-link-list > ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
        padding-bottom: 1rem;
    }

        .dcf-ext-template-prefooter-link-list > ul > li {
            padding-top: 7px;
        }

.dcf-ext-template-emergency {
    background-color: #951c1a !important;
    font-size: 16px ;
    font-weight: 600;
    line-height: 20.8px;
}

a.dcf-ext-template-emergency-link {
    color: black;
    text-decoration: none;
    background-color: transparent;
}

    a.dcf-ext-template-emergency-link:hover {
        text-decoration: underline;
    }

p.dcf-ext-template-emergency-title {
    margin: 2px 0 4px 4px;
}

/*
.fancy-tabs-container {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.fancy-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.fancy-tab {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border-radius: 1.5rem;
    padding: 0.4rem .8rem;
    font-weight: 500;
    color: #333;
    border: 1px solid #ddd;
    box-shadow: 3px 3px 6px #d1d1d1, -3px -3px 6px #ffffff;
    transition: all 0.2s ease-in-out;
}

    .fancy-tab:hover {
        box-shadow: inset 3px 3px 6px #d1d1d1, inset -3px -3px 6px #ffffff;
        color: #0d6efd;
        background: #f1f1f1;
    }

    .fancy-tab.active {
        background: linear-gradient(145deg, #0d6efd, #0b5ed7);
        color: white;
        box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1);
    }
*/

/*.fancy-tabs-container {
    padding: 0.1rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    max-width:inherit;
    
    white-space: nowrap;
}

.fancy-tabs {
    display: flex;
    gap: 0.10rem;
    flex-wrap: wrap;
   
    align-items: flex-end;
    scrollbar-width: thin;
}

.fancy-tab {
    font-weight: 500;
    padding: 0.6rem 1rem;
    min-width: max-content;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
    color: #0d6efd;
    background: #f1f1f1;
    transition: all 0.2s ease-in-out;
    box-shadow: inset 3px 3px 6px #d1d1d1, inset -3px -3px 6px #ffffff;
    border-radius: 0.375rem;
    width:fit-content;
}

    .fancy-tab:hover {
        background: linear-gradient(145deg, #dbeafe, #bfdbfe);
        color: #0d6efd;
        box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1);
    }

    .fancy-tab.active {
        background: #f1f1f1;
        
        color: white;
        border: none;
        padding: 0.75rem 1.25rem;
        box-shadow: inset 3px 3px 6px #d1d1d1, inset -3px -3px 6px #ffffff;
        border-radius: 0.375rem;
        white-space: nowrap;
    }*/

/*.k-item k-tabstrip-item k-link {
    font-weight: 500;
    padding: 0.6rem 1rem;
    min-width: max-content;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
    color: #0d6efd !important;
    background: #f1f1f1 !important;
    transition: all 0.2s ease-in-out;
    box-shadow: inset 3px 3px 6px #d1d1d1, inset -3px -3px 6px #ffffff;
    border-radius: 0.375rem;
}*/

/* Make tabs stack vertically on small screens */
@media (max-width: 768px) {
    .fancy-tabs {
        flex-direction: column;
        align-items: stretch;
        white-space: normal;
    }

    .fancy-tab {
        width: 90%;
        text-align: left;
    }
}


.cardContainer2 {
    
    padding: 20px;
    background-color: white; 
    border-radius: 15px; 
    box-shadow: -5px -5px 10px rgba(255, 255, 255, 0.7),5px 5px 10px rgba(0, 0, 0, 0.2);
 
}

.cardContainer {
    padding: 20px;
    background-color: white; /* Match background for seamless integration */
    border-radius: 15px; /* Rounded corners */
    box-shadow:
    /* Light shadow from top-left, but less offset for diffusion */
    -4px -4px 8px rgba(255, 255, 255, 0.7),
    /* Dark shadow from bottom-right, but less offset for diffusion */
    4px 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-in-out;
    position: relative; /* Needed for ::before pseudo-element */
}

/* General styles for the inactive tabs */
.fancy-tab .k-link {
    font-weight: 500;
    padding: 0.6rem 1rem;
    min-width: max-content;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
    color: #0d6efd;
    background: #f1f1f1;
    transition: all 0.2s ease-in-out;
    box-shadow: inset 3px 3px 6px #d1d1d1, inset -3px -3px 6px #ffffff;
    border-radius: 0.375rem;
    /* Override Telerik default styles that might interfere */
    border: none !important;
    outline: none !important;
    display: flex; /* Ensures padding works correctly if Telerik makes it inline */
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
}

    /* Hover effect */
    .fancy-tab .k-link:hover {
        background: linear-gradient(145deg, #dbeafe, #bfdbfe);
        color: #0d6efd;
        box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1);
    }

/* Active tab state */

.fancy-tab.k-active .k-link {
    /*background: #f1f1f1;*/ /* Original style from your .fancy-tab.active */
    background: linear-gradient(135deg, #0d6efd, #15588E); /* As per your commented alternative */
    color: white; /* Text color for the blue active background */
    border: none !important;
    padding: 0.75rem 1.25rem; /* Slightly larger padding for active */
    box-shadow: inset 3px 3px 6px #0947a1, inset -3px -3px 6px #1193ff; /* Adjusted shadow for blue background */
    border-radius: 0.375rem;
    white-space: nowrap;
    /* Override any default Telerik active styles */
    outline: none !important;
}

/* Important: Remove Telerik's default TabStrip styling to let your custom styles show */
.k-tabstrip-nav {
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.k-tabstrip-items {
    background: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

    .k-tabstrip-items .k-item {
        margin-right: 8px; /* Add some space between your fancy tabs */
        border: none !important;
        background: none !important;
        /* You might want to adjust vertical alignment if they look off */
        /* vertical-align: bottom; */
    }

/* Ensure the content area looks correct */
.k-tabstrip-content {
    border-top: 1px solid #d1d1d1; /* Keep a separator for content area */
    padding-top: 1rem;
}

#loaderContainer {
    position: fixed; /* Fixes the container in the viewport */
    top: 40%; /* Centers vertically */
    left: 50%; /* Centers horizontally */
    transform: translate(-50%, -50%); /* Offset by half of its own size to perfectly center */
    z-index: 9999; /* Ensures it appears on top of other content */
    text-align: center;
}
