﻿.custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.custom-modal-backdrop.show-backdrop {
    opacity: 1;
}

/* Custom Modal Container */
.custom-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    max-width: 500px;
    width: 90%;
    pointer-events: none;
}

    .custom-modal.show-modal {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        pointer-events: auto;
    }

.custom-modal-content {
    background: linear-gradient(145deg, var(--background-light), #f0f0f0);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Modal Header */
.custom-modal-header {
    background-color: #8d951a;
    color: var(--text-light);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--brand-green-dark);
    position: relative;
    overflow: hidden;
}

.modal-header-icon {
    font-size: 36px;
    margin-left: 15px;
    color: rgba(255, 255, 255, 0.8);
    animation: bounceIn 0.8s ease-out forwards;
}

.custom-modal-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.8s ease-out forwards;
}

/* Modal Body */
.custom-modal-body {
    padding: 30px;
    text-align: center;
}

.modal-description {
    font-size: 17px;
    color: var(--text-medium);
    margin-bottom: 15px;
    line-height: 1.7;
    font-weight: 600;
}

    .modal-description .highlight-text {
        font-weight: bold;
        color: var(--brand-green-dark);
    }

/* Modal Footer */
.custom-modal-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 25px 30px;
    border-top: 1px solid var(--border-color);
    background-color: var(--background-gray);
}

.modal-form-inline {
    margin: 0;
}

.btn-modal-action {
    padding: 12px 25px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

    .btn-modal-action i {
        font-size: 18px;
    }

    .btn-modal-action:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    }

    .btn-modal-action:active {
        transform: translateY(0);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

.btn-modal-continue {
    background-color: var(--brand-green-light);
    color: white;
}

    .btn-modal-continue:hover {
        background-color: var(--brand-green-dark);
    }

.btn-modal-restart {
    background-color: var(--error-color);
    color: white;
}

    .btn-modal-restart:hover {
        background-color: #c82333;
    }

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 767px) {
    .custom-modal {
        width: 95%;
        max-width: 95%;
    }

    .custom-modal-header {
        padding: 20px;
    }

    .custom-modal-title {
        font-size: 22px;
    }

    .modal-header-icon {
        font-size: 30px;
    }

    .custom-modal-body {
        padding: 25px;
    }

    .modal-description {
        font-size: 15px;
    }

    .custom-modal-footer {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .btn-modal-action {
        width: 100%;
        padding: 10px 20px;
        font-size: 16px;
        justify-content: center;
    }
}

