﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Lato', 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.top-row {
    background-image: none !important;
    background-color: white !important;
    color: black !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar {
    background-image: none !important;
    background-color: #F4F6F9 !important;
    color: black !important;
}
.nav-link {
    color: black;
}
.nav-item a.active {
    background-color: white !important;
    color: #005E9B !important;
}
.nav-item {
    color: black !important;
    background-color: #F4F6F9 !important;
}
.nav-item a {
    color: black !important;
}
.navbar-dark .navbar-toggler {
    color: rgba(5, 25, 25, .55) !important;
    border-color: rgba(5, 5, 5, .4) !important;
}
.badge {
     color: #000 !important; 
}
.page-title-shorten-text {
    display: inline-block;
    max-width: 500px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .page-title-shorten-text {
        max-width: 240px;
    }
}
@media (max-width: 768px) {
    .profile-actions {
        display: none;
    }
}
@media (max-width: 768px) {
    .tabs {
        font-size: 0.6em;
    }
}
.free-text-search {
    float: right;
    width: 240px
}
h1:focus {
    outline: none;
}

a, .btn-link {
    color: black;
}
    a:hover {
        color: #005E9B;
    }
.container a {
    color: white;
}
.container a:hover {
    color: #ccc;
}
input[type="text"]:disabled,
input[type="number"]:disabled,
input[type="datetime-local"]:disabled,
textarea:disabled,
select:disabled {
    color: black;
    background-color: #9f9;
}

.form-control:disabled {
    background-color: #9f9;
    opacity: 1
}

/* Make the disabled option stand out */
select option:disabled {
    color: #aaa; /* Light gray color */
    background-color: #f8f8f8; /* Light background */
    font-style: italic; /* Italic font style */
}

/* Ensure the select element itself reflects a disabled option */
select:disabled option {
    color: #aaa; /* Light gray color */
    background-color: #f8f8f8; /* Light background */
    font-style: italic; /* Italic font style */
}
/* Focus state for better UX */
select:focus {
    border-color: #5b9dd9;
    box-shadow: 0 0 5px rgba(81, 167, 232, 0.5);
    outline: none;
}
.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }


.form-checkbox {
    width: 20px; 
    height: 20px; 
    margin: 20px
}
.custom-form {
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    text-align: center;

}

    .custom-form input,
    .custom-form button {
        margin-bottom: 15px;
        height: 2em;
        font-size: 1.2em;
        text-align: center;
    }

    .custom-form button {
        width: 100%;
    }
.sub-menu{
    margin-left: 10px;
    font-size: 0.9em;
}
.sub-menu-item
{
    margin-right: 5px
}
.message-info {
    color: orange;
    font-size: 0.9em;
}
.small-text {
    font-size: 0.8em;
}
.error-message {
    font-size: 0.9em;
    display: block;
    background-color: darkred;
    min-height: 40px;
    color: yellow;
    padding: 10px;
    animation: fadeOut 5s forwards;
    margin-top: 10px;
}
.info-message {
    font-size: 0.9em;
    display: block;
    background-color: green;
    min-height: 40px;
    color: white;
    padding: 10px;
    animation: fadeOut 5s forwards;
    margin-top: 10px;
}
.large-message {
    font-size: 2em;
    display: block;
    background-color: green;
    min-height: 60px;
    color: white;
    padding: 10px;
    animation: fadeOut 5s forwards;
    margin-top: 10px;
}
.no-message {
    font-size: 0.9em;
    display: block;
    background-color: transparent;
    /*padding: 10px*/
}

.custom-bottom-buttons {
    margin: 40px auto;
    text-align: center;
    border-top: #f0f0f0 solid 1px;
    width: 80%;
    padding-top: 20px;
}

.table {
    color: #f0f0f0;
}
.table-striped > tbody > tr:nth-of-type(odd)
{
    color: #f0f0f0
}
.table-container {
    overflow-x: auto;
}

.required-field {
    border: 3px solid red;
    color: yellow;
    background-color: rgba(225, 0, 0, 0.5);
}
.valid-field {
    border: 3px solid #26b050;
    color: white;
    background-color: rgba(0, 225, 0, 0.5);
}

.empty-options-invalid {
    border: 3px solid red;
    padding: 10px;
    border-radius: 10px;
}
/*
    Toggle buttons
*/
.toggle-button {
    display: flex;
    align-items: center;
    background-color: darkgreen;
    padding: 2px 6px;
    cursor: pointer;
    user-select: none;
    border-radius: 5px;
    font-size: 0.8em;
    border-radius: 5px;
}

    .toggle-button input[type="radio"] {
        display: none; /* Hide the actual radio button */
    }

        .toggle-button input[type="radio"]:checked + .button-label,
        .toggle-button input[type="radio"]:focus + .button-label {
            background-color: darkgreen;
            color: #fff;
            font-weight: bold;
            border-radius: 5px;
        }

.button-label {
    display: inline-block;
    padding: 5px 8px;
}

.profile-button {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%; /* to create a circle */
    background-color: #007bff; /* blue color, you can change this */
    color: #fff; /* text color */
    text-align: center;
    line-height: 40px; /* align text vertically */
    text-decoration: none; /* remove default underline */
    font-size: 18px; /* font size for the initials */
}

    /* Styling for the hover effect */
    .profile-button:hover {
        background-color: #0056b3; /* darker shade of blue on hover, you can change this */
    }

/* Styling to center the initials */
.initials {
    vertical-align: middle;
}

optgroup[label] {
    font-weight: bold;
    font-style: italic;
}

.tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab {
    padding: 10px 20px;
    background-color: rgba(25,255,25, 0.1);
    cursor: pointer;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
}

    .tab:hover {
        background-color: rgba(25,255,25, 0.15);
    }
    .tab.active {
        background-color: rgba(25,255,25, 0.1);
        color: #F0F0F0;
        border-bottom: 3px solid #5f5;
    }
    .tab.invalid {
        background-color: rgba(255,25,25, 0.5);
    }
    .tab.active.invalid {
        background-color: rgba(255,25,25, 0.6);
        color: #F0F0F0;
        border-bottom: 3px solid #5f5;
    }
    .tab.warning {
        border: rgba(255,165,25, 0.5) solid 1px;
    }
    .tab.active.warning {
        border: rgba(255,165,25, 0.5) solid 1px;
        color: #F0F0F0;
        border-bottom: 3px solid #5f5;
    }

.tabadmin {
    padding: 10px 20px;
    background-color: rgba(25,255,25, 0.3);
    cursor: pointer;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
}

    .tabadmin:hover {
        background-color: rgba(25,255,25, 0.2);
    }

    .tabadmin.active {
        background-color: rgba(25,255,25, 0.4);
        color: #F0F0F0;
        border-bottom: 2px solid #5f5;
    }

.tab-content {
    display: none;
    padding: 5px;
    border-top: 1px solid green;
    border-top: none;
    border-radius: 0 0 5px 5px;
    margin-top: 20px;
}
.tab-content.active {
    display: block;
}

/* Checkbox hack for tab switching */
.tab:checked + .tab-content {
    display: block;
}
.refresh-button {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: limegreen;
    color: #ffffff;
    font-size: 20px;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.2);
    display: inline-block;
    transition: background-color 0.3s;
}

    .refresh-button:hover {
        background-color: darkgreen;
        text-decoration: none; /* Optional */
    }
.active_true{
    color: lime
}
.active_false {
    color: orange
}
.btn-undo {
    font-size: 0.8em;
    color: orange;
    padding: 5px;
    border-radius: 0;
    margin: 0px;
}


.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap:20px;
}
    .button-container .arrow {
        position: relative;
        margin: 0 10px;
        flex: 0 0 auto;
    }

        .button-container .arrow::before {
            content: '';
            position: absolute;
            width: 0;
            height: 0;
            border-top: 10px solid transparent;
            border-bottom: 10px solid transparent;
            border-left: 10px solid lime;
            left: -5px;
            top: 50%;
            transform: translateY(-50%);
        }

@media (max-width: 600px) {
    .button-container .arrow {
        display: none;
    }
}

.framed-image {
    max-width: 250px;
    border: 5px solid white; /* White frame */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Shadow effect */
    transition: transform 0.2s; /* Smooth transition for scaling */
}

    .framed-image:hover {
        transform: scale(1.05); /* Slightly enlarge the image on hover */
    }

.file-input-wrapper {
    position: relative;
    display: inline-block;
}

.file-input {
    width: 100%;
    height: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

.file-input-label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

    .file-input-label:hover {
        background-color: #0056b3;
    }

.full-width-textarea {
    width: 100%;
    height: 30vh; /* 30% of the viewport height */
    min-height: 500px; /* Minimum height of 500px */
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
}

.forminput-small {
    padding: 5px;
    border-radius: 10px;
    font-size: 1.1em;
}
/* styles.css */
@media (min-width: 768px) {
    .forminput-small {
        width: 50% !important;
    }
}

.form-section {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
    background-color: rgba(0,225,0,0.2);
}

    .form-section h3 {
        margin-top: 0;
        margin-bottom: 15px;
        font-size: 1.5em;
    }

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: inline;
        margin-bottom: 5px;
    }

.btn-group-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px; /* Add space between buttons when wrapping */
    justify-content: flex-start; /* Align buttons to the start of the container */
}

    .btn-group-toggle .btn {
        flex: 0 1 auto; /* Allow buttons to wrap and not stretch */
        white-space: nowrap; /* Prevent breaking of text inside buttons */
        margin: 0
    }

/* Optional: Add more responsive styling if needed */
@media (max-width: 768px) {
    .btn-group-toggle .btn {
        width: auto; /* Allow buttons to be the size of their text */
    }
}

.tab-menu {
    padding: 10px 0px 40px 20px;
    margin: auto;
    display: flex;
    justify-content: center;
}

.highlight {
    background-color: yellow;
}


/* Custom styles for the datetime picker */
.styled-datetime-picker {
    /* Basic styles */
    padding: 10px;
    font-size: 16px;
    font-family: 'Lato', 'Poppins', Arial, sans-serif;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    /* Transition for smooth focus effect */
    transition: border-color 0.3s, box-shadow 0.3s;
}

    /* Focus state */
    .styled-datetime-picker:focus {
        border-color: #007bff;
        box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
        outline: none;
    }

    /* Optional: Add custom styles for the input's placeholder */
    .styled-datetime-picker::-webkit-input-placeholder {
        color: #999;
    }

    .styled-datetime-picker:-ms-input-placeholder {
        color: #999;
    }

    .styled-datetime-picker::placeholder {
        color: #999;
    }

.sticky-header {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    height: 56px;
    background: linear-gradient(90deg, rgba(5, 105, 188, 0.8), rgba(6, 120, 214, 0.8), rgba(62, 165, 250, 0.8));
    z-index: 998;
}
.sticky-header-back {
    float: left;
    font-size: 0.9em;
    margin: 10px
}
.sticky-header-btns {
    float: right;
    margin: 7px
}

.btn-fixed-size {
    width: 85px !important;
}

.text-area {
    width: 100%;
    height: 10vh;
    box-sizing: border-box
}

.width-inherit {
    width: inherit;
}

.progress {
    height: 20px;
    background-color: #f3f3f3;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px !important;
}

.progress-bar {
    height: 100%;
    background-color: #007bff;
    transition: width 0.6s ease;
}

.progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    from {
        background-position: 1rem 0;
    }

    to {
        background-position: 0 0;
    }
}

.icon-navmenu {
    height: 1.1rem;
    margin-right: 10px;
}

.svg-dark-orange {
    width: 2rem;
    height: 1.5rem;
    -webkit-filter: invert(66%) sepia(47%) saturate(5606%) hue-rotate(2deg);
    filter: invert(66%) sepia(47%) saturate(5606%) hue-rotate(2deg);
}

    .svg-dark-orange:hover {
        -webkit-filter: invert(67%) sepia(23%) saturate(4006%) hue-rotate(360deg);
        filter: invert(67%) sepia(23%) saturate(4006%) hue-rotate(360deg);
    }

.svg-dark-green {
    width: 2rem;
    height: 1.5rem;
    -webkit-filter: invert(18%) sepia(75%) saturate(2458%) hue-rotate(98deg);
    filter: invert(18%) sepia(75%) saturate(2458%) hue-rotate(98deg);
}

    .svg-dark-green:hover {
        -webkit-filter: invert(21%) sepia(91%) saturate(2452%) hue-rotate(101deg);
        filter: invert(21%) sepia(91%) saturate(2452%) hue-rotate(101deg);
    }

.svg-sort-white {
    width: 0.8rem;
    -webkit-filter: invert(100%) sepia(3%) saturate(355%) hue-rotate(281deg);
    filter: invert(100%) sepia(3%) saturate(355%) hue-rotate(281deg);
}

.svg-light-green {
    margin: 5px 0;
    height: 2rem;
    -webkit-filter: invert(56%) sepia(78%) saturate(3060%) hue-rotate(85deg) brightness(117%) contrast(127%);
    filter: invert(56%) sepia(78%) saturate(3060%) hue-rotate(85deg) brightness(117%) contrast(127%);
}

.svg-pagination-blue {
    width: 0.8rem;
    -webkit-filter: invert(31%) sepia(80%) saturate(3585%) hue-rotate(201deg);
    filter: invert(31%) sepia(80%) saturate(3585%) hue-rotate(201deg);
}

.svg-pagination-blue:hover {
    width: 0.8rem;
    -webkit-filter: invert(100%) sepia(3%) saturate(355%) hue-rotate(281deg);
    filter: invert(100%) sepia(3%) saturate(355%) hue-rotate(281deg);
}

.svg-icon-white {
    width: 1.5rem;
    -webkit-filter: invert(100%) sepia(3%) saturate(355%) hue-rotate(281deg);
    filter: invert(100%) sepia(3%) saturate(355%) hue-rotate(281deg);
}

.pagination-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    justify-content: center;
    margin: 1rem 0.5rem;
}

    .pagination-controls button {
        background-color: #f8f9fa;
        border: 1px solid #dee2e6;
        color: #007bff;
        padding: 5px 10px;
        margin: 0 5px;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

        .pagination-controls button:hover {
            background-color: #007bff;
            color: white;
        }

        .pagination-controls button.active {
            background-color: #007bff;
            color: white;
            font-weight: bold;
        }

        .pagination-controls button:disabled {
            background-color: #e9ecef;
            color: #6c757d;
            cursor: not-allowed;
            border-color: #ced4da;
        }

    .pagination-controls select {
        /*margin-right: 15px;*/
        padding: 5px;
        border-radius: 4px;
        border: 1px solid #dee2e6;
    }

    .pagination-controls label {
        /*margin-right: 5px;*/
        font-weight: bold;
    }

.transparent-color {
    color: transparent;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-fill-color: transparent;
}

.fade-transition {
    transition: background-color 0.5s ease, color 0.5s ease, background 0.5s;
}