/* Punimohi Notification Public Styles */
/* Version: 1.0.0 */
/* Author: Jaswant Singh */

/* Base styles for the notification prompt container */
.punimohi-prompt {
    position: fixed;
    z-index: 99999; /* Ensure it's on top of other content */
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    display: none; /* Hidden by default, shown by by jQuery fadeIn */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Theme: Light */
.punimohi-prompt-theme-light {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
}

/* Theme: Dark */
.punimohi-prompt-theme-dark {
    background-color: #333333;
    color: #ffffff;
    border: 1px solid #555555;
}

/* Prompt Type: Toast (smaller, less intrusive) */
.punimohi-prompt-toast {
    max-width: 320px;
    min-width: 280px;
}

/* Prompt Type: Modal (larger, more intrusive, centered) */
.punimohi-prompt-modal {
    max-width: 500px;
    width: 90%; /* Responsive width */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Positioning for Toast */
.punimohi-prompt-bottom-right {
    bottom: 20px;
    right: 20px;
}
.punimohi-prompt-bottom-left {
    bottom: 20px;
    left: 20px;
}
.punimohi-prompt-top-right {
    top: 20px;
    right: 20px;
}
.punimohi-prompt-top-left {
    top: 20px;
    left: 20px;
}

/* Content Area */
.punimohi-prompt-content p {
    margin: 0 0 15px 0;
    line-height: 1.5;
    font-size: 15px;
}

/* Action Buttons Container */
.punimohi-prompt-actions {
    display: flex;
    justify-content: flex-end; /* Align buttons to the right for toasts */
    gap: 10px; /* Space between buttons */
}

.punimohi-prompt-modal .punimohi-prompt-actions {
    justify-content: center; /* Center buttons for modals */
}

/* Buttons */
.punimohi-button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.punimohi-button-allow {
    background-color: #0073aa; /* WordPress primary blue */
    color: #ffffff;
}
.punimohi-button-allow:hover {
    background-color: #005177;
}

.punimohi-button-later,
.punimohi-button-never {
    background-color: #f0f0f0;
    color: #555555;
}
.punimohi-prompt-theme-dark .punimohi-button-later,
.punimohi-prompt-theme-dark .punimohi-button-never {
    background-color: #555555;
    color: #dddddd;
}

.punimohi-button-later:hover,
.punimohi-button-never:hover {
    background-color: #e0e0e0;
}
.punimohi-prompt-theme-dark .punimohi-button-later:hover,
.punimohi-prompt-theme-dark .punimohi-button-never:hover {
    background-color: #666666;
}

/* Close button */
.punimohi-prompt-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    color: #999999;
    transition: color 0.2s ease;
}
.punimohi-prompt-close:hover {
    color: #666666;
}
.punimohi-prompt-theme-dark .punimohi-prompt-close {
    color: #cccccc;
}
.punimohi-prompt-theme-dark .punimohi-prompt-close:hover {
    color: #ffffff;
}

/* Media Queries for Responsiveness */
@media (max-width: 600px) {
    .punimohi-prompt-toast {
        max-width: 90%; /* Make toasts wider on small screens */
        left: 5%;
        right: 5%;
        bottom: 10px;
        top: auto;
        transform: none; /* Remove transform for toast positioning */
    }

    .punimohi-prompt-modal {
        width: 95%;
    }

    .punimohi-prompt-actions {
        flex-direction: column; /* Stack buttons vertically on small screens */
        gap: 8px;
    }

    .punimohi-button {
        width: 100%; /* Full width buttons */
    }
}
