/* Ensure this is at the top or overrides other position/z-index for .notification-label */
:root {
    /* Copied from notification.css for consistency */
    --profile-primary-font: 'Roboto Mono', monospace;
    --profile-text-primary: #E0F0FF;
    --profile-glow-color: #00FFDC;
}

/* Base styles for all notifications, from notification.css */
.notification-label {
    position: fixed;
    bottom: 20px; /* Default position at the bottom */
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--profile-text-primary, white);
    font-family: var(--profile-primary-font, sans-serif);
    z-index: 9999;
    border: 1px solid var(--profile-glow-color, #00FFDC);
    box-shadow: 0 0 12px rgba(0, 255, 220, 0.5);
    background-color: rgba(10, 25, 40, 0.95);
    /* Default animation for temporary notifications */
    animation: slideUp 0.5s ease-out forwards, fadeOut 0.5s ease-in 3s forwards;
}

/* Animation definitions (if utils.js adds classes like .slide-up .fade-out) */
/* Updated to use transform for top positioning, similar to original notifications.css */
@keyframes slideUp {
    from {
        bottom: -50px;
        opacity: 0;
    }
    to {
        bottom: 20px;
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        bottom: -50px; /* Slide down as it fades */
    }
}

/* Types of notifications - adjust colors as needed */
/* Updated to match notification.css styles */
.notification-label.positive {
    background-color: rgba(0, 180, 130, 0.95);
    border-color: rgba(0, 255, 220, 0.8);
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.6);
}

.notification-label.negative {
    background-color: rgba(180, 40, 60, 0.95);
    border-color: rgba(255, 100, 100, 0.8);
    box-shadow: 0 0 15px rgba(255, 100, 100, 0.6);
}

.notification-label.neutral {
    background-color: rgba(255, 140, 0, 0.95);
    border-color: rgba(255, 165, 0, 0.8);
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.6);
    color: #FFFFFF;
}

.notification-label.jackpot {
    background-color: rgba(255, 190, 0, 0.97);
    border-color: rgba(255, 215, 0, 0.9);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    color: #1A1A1A;
    font-weight: bold;
}

/* If utils.js directly manipulates animation style property like this:
   notification.style.animation = `slideUp 0.5s ease-out forwards`;
   notification.style.animation += ', fadeOut 0.5s ease-in forwards';
   Then the @keyframes above will be used by these inline style-based animations.
*/

/* --- Persistent Notification Styles --- */

/* This container will be placed inside a specific div, like #notification-container */
.persistent-notification-container {
    position: fixed;
    top: 5rem; /* Position from the top */
    right: 20px;
    width: 350px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* APPLY PERSISTENT STYLES ONLY TO NOTIFICATIONS INSIDE THE CONTAINER */
.persistent-notification-container .notification-label.persistent-notification {
    position: relative !important; /* Crucial for child positioning */
    bottom: auto; /* Override bottom positioning */
    left: auto;
    transform: none; /* Override transform */
    display: block;
    width: 95%;
    padding: 15px;
    padding-right: 40px; /* Space for the close button */
    animation: none !important; /* No auto-hide animation */
    min-height: 60px;
}

.persistent-notification-content {
   padding-right: 0;
}

.persistent-notification-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 8px;
    color: var(--profile-glow-color);
}

.persistent-notification-message {
    display: flex;
    align-items: center;
    gap: 15px;
}

.persistent-notification-message img {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.persistent-notification-message span {
    font-size: 1em;
}

.persistent-notification-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--profile-text-primary);
    border-radius: 5px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s, transform 0.2s;
}

.persistent-notification-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
} 