/* Punimohi Notification Popup Styles */
/* Version: 5.8 (Professional, between center and top, no shadow, refined design) */

.punimohi-popup {
    display: none;
    position: fixed;
    top: 30%; /* Position between center and top */
    left: 50%;
    transform: translateX(-50%); /* Horizontal centering only */
    z-index: 1000;
    max-width: 340px; /* Compact size */
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.punimohi-popup.show {
    display: flex;
    opacity: 1;
}

.punimohi-popup-content {
    display: flex;
    width: 340px;
    max-width: 90vw;
    background: linear-gradient(135deg, #ffffff, #f9fafb); /* Subtle gradient */
    border: 1px solid #d1d5db; /* Added border for popup */
    border-radius: 12px;
    overflow: hidden; /* No shadow, keep overflow hidden */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transform: translateY(20px);
    transition: transform 0.3s ease-in-out;
}

.punimohi-popup.show .punimohi-popup-content {
    transform: translateY(0);
}

.punimohi-text-content {
    flex: 1;
    padding: 18px; /* Reduced padding for compactness */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.punimohi-text-content p {
    margin: 0 0 10px 0; /* Reduced margin for tighter spacing */
    font-size: 14px; /* Slightly smaller font for text */
    line-height: 1.4;
    color: #1a202c; /* Darker gray for readability */
}

.punimohi-buttons {
    display: flex;
    gap: 8px; /* Reduced gap between buttons */
    flex-wrap: wrap;
}

#punimohi-allow-button,
#punimohi-deny-button {
    padding: 6px 12px; /* Even smaller buttons */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px; /* Smaller font size */
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

#punimohi-allow-button {
    background-color: #2a69ac; /* Deeper muted blue */
    color: #ffffff;
}

#punimohi-allow-button:hover {
    background-color: #1e4e8a; /* Darker blue on hover */
    transform: translateY(-1px);
}

#punimohi-deny-button {
    background-color: #90a4ae; /* Lighter neutral gray */
    color: #ffffff;
}

#punimohi-deny-button:hover {
    background-color: #6d8299; /* Darker gray on hover */
    transform: translateY(-1px);
}

.punimohi-image-content {
    width: 90px; /* Reduced image width for balance */
    background-color: #e0e7ff; /* Light blue background to complement blue buttons */
    display: flex;
    align-items: center;
    justify-content: center;
}

.punimohi-popup-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 0 12px 12px 0;
}

@media (max-width: 600px) {
    .punimohi-popup-content {
        width: 90vw;
        flex-direction: column;
        border: 1px solid #d1d5db; /* Maintain border on mobile */
    }

    .punimohi-text-content {
        padding: 14px;
    }

    .punimohi-image-content {
        width: 100%;
        height: 70px; /* Smaller image height on mobile */
        border-radius: 0 0 12px 12px;
    }

    .punimohi-popup-image {
        border-radius: 0 0 12px 12px;
    }

    .punimohi-buttons {
        flex-direction: row;
        gap: 6px;
    }

    #punimohi-allow-button,
    #punimohi-deny-button {
        flex: 1;
        padding: 6px 10px;
    }
}

/* Ensure all page content is visible when popup is active */
body.popup-active {
    overflow: visible; /* Allow scrolling and visibility */
}