/* RRRP Premium Notification System Styles */

/* --- Toast Container --- */
#rrrp-toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* --- Toast Item --- */
.rrrp-toast {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #1d2327;
    padding: 16px 20px 16px 24px;
    border-radius: 12px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 320px;
    max-width: 90vw;
    pointer-events: auto;
    overflow: hidden;

    /* Animation Initial State */
    opacity: 0;
    transform: translateX(50px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    border: 1px solid rgba(255, 255, 255, 0.5);
}

.rrrp-toast.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Icons & Colors */
.rrrp-toast .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Success */
.rrrp-toast-success {
    border-left: none;
    /* Removing old style */
}

.rrrp-toast-success .dashicons {
    color: #10b981;
    /* Emerald-500 */
}

.rrrp-toast-success::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #10b981;
}

/* Error */
.rrrp-toast-error .dashicons {
    color: #ef4444;
    /* Red-500 */
}

.rrrp-toast-error::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #ef4444;
}

/* Info */
.rrrp-toast-info .dashicons {
    color: #3b82f6;
    /* Blue-500 */
}

.rrrp-toast-info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #3b82f6;
}

/* Progress Bar */
.rrrp-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.08);
    width: 100%;
}

.rrrp-toast-progress-bar {
    height: 100%;
    width: 100%;
    background: currentColor;
    /* Use text color or specific color */
    transform-origin: left;
    transform: scaleX(1);
    transition: transform 4s linear;
    /* Matches JS timeout */
}

/* Allow progress bar to inherit color */
.rrrp-toast-success .rrrp-toast-progress-bar {
    background: #10b981;
}

.rrrp-toast-error .rrrp-toast-progress-bar {
    background: #ef4444;
}

.rrrp-toast-info .rrrp-toast-progress-bar {
    background: #3b82f6;
}


/* --- Confirm Modal (Premium) --- */
.rrrp-notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.rrrp-notification-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.rrrp-notification-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 35, 39, 0.6);
    backdrop-filter: blur(4px);
}

.rrrp-notification-content {
    background: #fff;
    width: 420px;
    max-width: 90%;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 100001;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.rrrp-notification-modal.active .rrrp-notification-content {
    transform: scale(1) translateY(0);
}

.rrrp-notification-content h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.rrrp-notification-content p {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.rrrp-notification-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.rrrp-notification-actions .button {
    padding: 10px 20px !important;
    height: auto !important;
    line-height: 1.4 !important;
    font-size: 14px !important;
    border-radius: 6px !important;
    border: none !important;
    font-weight: 500 !important;
    transition: all 0.2s !important;
}

#rrrp-confirm-yes {
    background: #2271b1;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(34, 113, 177, 0.3);
}

#rrrp-confirm-yes:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(34, 113, 177, 0.4);
}

#rrrp-confirm-cancel {
    background: #f3f4f6;
    color: #374151;
}

#rrrp-confirm-cancel:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Prompt Input */
.rrrp-notification-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    display: none;
    /* Hidden by default */
}

.rrrp-notification-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}