﻿/* Validation Styles */
.invalid-input-box
{
    border-color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.05) !important;
}

.invalid-input-box:focus
{
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

.form-error
{
    display: block;
    margin-top: 5px;
    font-size: 0.875rem;
}

/* Button Loader */
.actionButtonBusy
{
    opacity: 0.7;
    cursor: not-allowed !important;
}

.hidden
{
    display: none !important;
}

/* App Loader Modal */
#AppLoaderModal .modal-content
{
    background: silver;
    border: 2px solid silver;
    border-radius: 15px;
}

#LoaderImage
{
    width: 60px;
    height: 60px;
}

.w-350p
{
    width: 350px;
}

.wave-circle
{
    animation: waveCircle 1.5s infinite ease-in-out;
}

.wave-circle:nth-child(1)
{
    animation-delay: 0s;
}

.wave-circle:nth-child(2)
{
    animation-delay: 0.2s;
}

.wave-circle:nth-child(3)
{
    animation-delay: 0.4s;
}

.icon-default
{
    color: var(--primary) !important; 
}

.error-message
{
    color: crimson;
    font-size: 12px;
    margin-left:8px;
    font-style: italic;
}

@keyframes waveCircle
{
    0%, 100%
    {
        transform: scale(1);
        opacity: 1;
    }

    50%
    {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Alert Modal Styles */
#AlertModal .modal-content
{
    border-radius: 15px;
    border: 2px solid silver;
    background: silver;
    
}

.alert-modal-btn
{
    width: 90px !important;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
}

.alert-modal-icon-container
{
    margin-top: -12px;
}

.alert-modal-icon
{
    font-size: 80px;
    cursor: default !important;
}

#AlertModalCloseIcon, .modal-x-close
{
    margin-top: -35px;
    font-size: 18px;
    margin-right: -5px;
}

#AlertModalCloseIcon:hover
{
    color: #a07a3f !important;
}

/* Alert Modal Fade In */
@keyframes alertModalFadeIn
{
    from
    {
        opacity: 0;
        transform: translateY(-20px);
    }

    to
    {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alert Modal Fade Out */
@keyframes alertModalFadeOut
{
    from
    {
        opacity: 1;
        transform: translateY(0);
    }

    to
    {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Backdrop Fade In */
@keyframes alertBackdropFadeIn
{
    from
    {
        opacity: 0;
    }

    to
    {
        opacity: 0.5;
    }
}

/* Backdrop Fade Out */
@keyframes alertBackdropFadeOut
{
    from
    {
        opacity: 0.5;
    }

    to
    {
        opacity: 0;
    }
}

/* Modal Wrapper */
.alert-modal-show
{
    animation: alertModalFadeIn 0.4s ease-out forwards;
    pointer-events: auto;
}

/* Hide the modal */
.alert-modal-hidden
{
    animation: alertModalFadeOut 0.3s ease-in-out forwards;
}

/* Backdrop */
.alert-modal-backdrop-show
{
    animation: alertBackdropFadeIn 0.3s ease-out forwards;
}

/* Hide the backdrop */
.alert-modal-backdrop-hidden
{
    animation: alertBackdropFadeOut 0.3s ease-in-out forwards;
}

/* Modal Icon Animations */
@keyframes alertSuccess
{
    0%
    {
        transform: scale(0);
        opacity: 0;
    }

    50%
    {
        transform: scale(1.2);
        opacity: 1;
    }

    100%
    {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes alertError
{
    0%
    {
        transform: scale(0);
        opacity: 0;
    }

    50%
    {
        transform: scale(1.2);
        opacity: 1;
    }

    100%
    {
        transform: scale(1);
        opacity: 1;
    }
}

.bi-check-circle.text-success
{
    animation: alertSuccess 0.5s ease-in-out forwards;
}

.bi-x-circle.text-danger
{
    animation: alertError 0.5s ease-in-out forwards;
}

#prayerBtnLoader
{
    color: var(--primary) !important;
}

/* Responsive */
@media (max-width: 576px)
{
    .w-350p
    {
        width: 300px;
    }

    .alert-modal-btn
    {
        width: 80px !important;
    }
    #AlertModal .modal-content
    {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    #ShowAlertModalMainText
    {
        font-size: 12px;
        margin-top: 10px;
    }
    #AlertModalIcon
    {
        font-size: 50px;
    }
    #AlertModalYesBtn
    {
        padding: 5px 5px;
    }
}
