/* css/pages/modals.css — Common Modal Styles (Doctor L) */

.custom-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.custom-modal.show {
    opacity: 1;
    display: flex;
    /* Ensure it centers on screen */
}

.glass-modal {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(20, 20, 20, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(125, 68, 196, 0.3);
    margin: auto;
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.custom-modal.show .glass-modal {
    transform: scale(1);
}

.close-modal,
.close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1000;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    -webkit-tap-highlight-color: transparent;
}

.close-modal:hover,
.close:hover {
    color: var(--accent-color, #F5CB00);
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.reward-modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(40, 20, 60, 0.95));
    border: 1px solid var(--accent-color, #F5CB00);
    box-shadow: 0 0 50px rgba(245, 203, 0, 0.2);
    text-align: center;
}

.reward-icon-large {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(245, 203, 0, 0.4));
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.reward-title {
    color: var(--accent-color, #F5CB00);
    font-size: 2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(245, 203, 0, 0.4);
}

.reward-message {
    color: white;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.edit-profile-btn,
.modal-btn {
    width: 100%;
    margin-top: 10px;
    background: linear-gradient(90deg, var(--primary-color, #7d44c4), var(--accent-purple-deep, #4a00e0));
    color: white;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.edit-profile-btn:hover,
.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(125, 68, 196, 0.4);
    filter: brightness(1.1);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 600px) {
    .glass-modal {
        width: 95%;
        padding: 30px 20px;
    }

    .reward-title {
        font-size: 1.5rem;
    }

    .reward-message {
        font-size: 1rem;
    }
}