html {
    font-size: 20px;
    direction: rtl;
    position: relative;
    min-height: 100%
}

@media (min-width:768px) {
    html {
        font-size: 18px
    }
}

.btn-link.nav-link:focus, .btn:active:focus, .btn:focus, .form-check-input:focus, .form-control:focus {
    box-shadow: 0 0 0 .1rem #fff,0 0 0 .25rem #258cfb
}

body {
    margin-bottom: 60px
}

.select2-search__field {
    padding: 4px !important
}


#logoff {
    left: 0;
    right: 0;
    top: 0;
    position: fixed;
    z-index: 10 !important;
}

.mt-6 {
    margin-top: 60px;
}

[dir=rtl] #template-customizer .template-customizer-open-btn {
    display: none !important;
}

.transformX-50 {
    transform: translateX(-50%);
}

.left-50 {
    left: 50%;
}

.toast {
    opacity: 1 !important;
    transition: all 0.5s ease !important;
}

.toast {
    min-width: 250px !important;
    width: auto !important;
}

.toast-message {
    margin-left: 30px !important;
    margin-right: 20px !important;
}




/* Add a red border for invalid fields */
.required-field:invalid {
    border: 2px solid #dc3545; /* Red border for invalid inputs */
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.7);
    animation: shake 0.3s ease-in-out;
}

/* Add a placeholder and make text stand out */
.required-field:invalid::placeholder {
    color: #dc3545; /* Red placeholder text */
    font-weight: bold;
}

/* Custom shake animation for fun */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }
}

/* Optional: Valid input turns green */
.required-field:valid {
    border: 2px solid #28a745; /* Green border for valid inputs */
}







/* Loading overlay styling */

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-container {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #61398f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 15px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
} 

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

