.toast-custom {
    visibility: hidden;
    min-width: 250px;
    background-color: #28a745;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px 20px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    top: 60px;
    transform: translateX(-50%);
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition:
        visibility 0s,
        opacity 0.5s ease-in-out;
}
.toast-custom.show {
    visibility: visible;
    opacity: 1;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.input-error-badge {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: red;
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 4px;
    z-index: 10;
}

.input-with-error {
    border: 1px solid red;
    padding-right: 120px; /* space for badge */
}
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

/* Loader UI */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.loading-toy {
    width: 40px;
    height: 40px;
    object-fit: contain;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px);
    }
}

.img-box {
    position: relative;
    display: inline-block;
    margin: 5px;
}
.img-box img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 15%;
}
.delete-img {
    position: absolute;
    top: -6px;
    right: -6px;
    background: red;
    color: #fff;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
}
.old-preview-row {
    display: flex;
    flex-wrap: wrap; /* allows next line if many images */
    gap: 8px; /* space between images */
    margin-top: 8px;
}

.img-box {
    position: relative;
}
.cursor-pointer {
    cursor: pointer;
}

a {
    cursor: pointer;
}
.sidebar-version {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0D9668;
    color: #fff;
    text-align: center;
    padding: 11.6px;
    font-size: 16px;
    font-weight: 600;
}
.sidebar-collapse .sidebar-version_text {
    display: none !important;
}

.form-control.required {
    border: 1px solid #ccc;
    border-right: 3px solid red; 
}

.form-control.required:focus {
    border-right: 3px solid rgb(2, 157, 31);
    outline: none;
}

.select2-container--default .select2-selection--single {
    border-right: 3px solid red !important;   
}
.calendar-input {
    background: url('../calender.png') no-repeat right 10px center;
    background-size: 18px;
    padding-right: 35px;
}