﻿.matrio-switch {
    position: relative;
    display: inline-block;
    width: 58px;
    height: 26px;
}

    .matrio-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.matrio-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    font-size: 12px;
    font-weight: bold;
    color: #daf3ff;
}

    .matrio-slider:before {
        position: absolute;
        content: "";
        height: 20px;
        width: 20px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .matrio-slider {
    background-color: #16b1ff;
}

    input:checked + .matrio-slider:before {
        transform: translateX(30px);
    }

/* Add ON and OFF labels */
.matrio-slider::after {
    content: "OFF";
    position: absolute;
    right: 8px;
}

input:checked + .matrio-slider::after {
    content: "ON";
    left: 8px;
}
.form-title {
    font-size: 22px;
    padding: 5px;
    background: linear-gradient(270deg, #c3a8ff 0%, #8c57ff 100%);
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-weight:bold;
}
.validation-summary-errors {
    display: flex;
    align-items: center;
    color: red;
    font-weight: bold;
}

    .validation-summary-errors::before {
        margin-right: 5px; /* Adjust spacing */
        font-size: 16px;
    }
/* Adjust Select2 height for multiple selections */
.select2-container--default .select2-selection--multiple {
    min-height: 45px !important; /* Adjust height */
    padding: 6px 12px !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    background-color: white !important;
}

/* Fix label positioning for floating labels */
.form-floating .select2-container--default .select2-selection--multiple {
    padding-top: 15px !important;
}

/* Ensure placeholder text aligns properly */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    align-items: center !important;
}

/* Adjust dropdown arrow */
.select2-container--default .select2-selection--multiple .select2-selection__arrow {
    height: 38px !important;
}

/* Make sure Select2 takes full width */
.select2-container {
    width: 100% !important;
}
.required{
    color:red;
}
#loadingOverlay {
    display: none; /* Hide by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
.fail-reason {
    display: inline-block;
    max-width: 100ch; /* Limits the text to 50 characters per line */
    word-break: break-word;
    white-space: normal;
}
input[readonly] {
    color: #aba8b1;
    background-color: #f2f2f3;
    border-color: #cdcbd0;
    opacity: 1;
    cursor: not-allowed;
}
/* Start Search dropdown */

.select2-container--bootstrap-5 .select2-selection--single {
    height: 48px !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 0.85rem;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.select2-container--bootstrap-5 .select2-selection__rendered {
    line-height: 1.5 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.select2-search {
    direction: ltr !important;
}
.select2-selection {
    text-align: left !important;
    direction: ltr !important;
}

.select2 + .parsley-errors-list {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}
/* End Search dropdown */