﻿/* Background */
.popup-overlay.main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}

.popup-overlay.visible {
    opacity: 1;
    visibility: visible;
}
/* Main popup */
.popup-content {
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
    border-radius: 18px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    animation: bounceIn 0.8s ease-in-out;
    border: 6px solid #a8d8ea;
    /* Inherit from your theme's font family */
    font-family: inherit;
}
/* Header */
.popup-header {
    background: linear-gradient(to right, #a8d8ea, #9ed2f0);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px #aa96da;
}

    .popup-header h5 {
        color: #5e6472;
        margin: 0;
        font-size: 22px;
        font-weight: bold;
        letter-spacing: 1px;
    }
/* Close button */
.popup-header .close-btn {
    background: #ffb6b9;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    outline: none;
    padding: 0;
}

    .close-btn:hover {
        transform: scale(1.05);
        background: #ffd3b6;
    }
/* Body content */
.popup-body {
    padding: 20px;
    background-color: #f8f9ff;
}

    .popup-body p {
        color: #5e6472;
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

        .popup-body p:first-child {
            font-size: 18px;
            color: #5e6472;
            font-weight: bold;
        }

    .popup-body hr {
        border: none;
        height: 2px;
        background: #d4f0f0;
        margin: 15px 0;
    }

    .popup-body p i {
        color: #767b91;
        font-size: 14px;
    }
/* Footer */
.popup-footer {
    padding: 15px 20px;
    background: linear-gradient(to right, #c3e8bd, #d4f0f0);
    display: flex;
    justify-content: center;
    border-top: 3px #ffd3b6;
}

.popup-footer .close-btn {
    background: #ffd3b6;
    color: #5e6472;
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
    box-shadow: 0 3px 0 #ffb6b9, 0 4px 4px rgba(0, 0, 0, 0.1);
    outline: none;
}

    .btn-primary {
    background: #ffd3b6;
    color: #5e6472;
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
    box-shadow: 0 3px 0 #ffb6b9, 0 4px 4px rgba(0, 0, 0, 0.1);
    outline: none;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 0 #ffb6b9, 0 6px 6px rgba(0, 0, 0, 0.1);
    }

    .btn-primary:active {
        transform: translateY(1px);
        box-shadow: 0 2px 0 #ffb6b9, 0 3px 3px rgba(0, 0, 0, 0.1);
    }

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
    }

    50% {
        opacity: 1;
        transform: scale(1.03) translateY(0);
    }

    70% {
        transform: scale(0.98);
    }

    100% {
        transform: scale(1);
    }
}

.popup-body p:first-child::before {
    content: "🦁";
    margin-right: 5px;
}

.popup-body p:nth-child(2)::before {
    content: "🦒";
    margin-right: 5px;
}
/* Mobile responsiveness */
@media (max-width: 576px) {
    .popup-content {
        width: 95%;
    }

    .popup-header h5 {
        font-size: 20px;
    }

    .btn-primary {
        padding: 8px 18px;
        font-size: 15px;
    }
}
