/* --- Snackbar Container --- */
#snackbar-container {
    position: fixed;
    bottom: 20px;
    right: 20px; /* Default for desktop */
    z-index: 1050; /* Ensure it's above other admin elements */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

/* --- Individual Snackbar --- */
.snackbar {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    min-width: 280px;
    max-width: 380px;
    background-color: #2c3e50; /* A richer, darker blue-slate */
    color: #ecf0f1;
    border-radius: 8px; /* Softer corners */
    padding: 14px 20px;
    display: flex;
    align-items: center;
    /* A more subtle, layered shadow for depth */
    box-shadow: 0 3px 6px rgba(0,0,0,0.1), 0 7px 20px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateX(120%); /* Start off-screen (desktop) */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother transition */
}

.snackbar.show {
    opacity: 1;
    transform: translateX(0); /* Animate into view */
}

/* --- Polished Status Indicator --- */
.snackbar-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 14px;
    flex-shrink: 0; /* Prevents the dot from shrinking */
    /* Add a subtle glow matching the color */
    box-shadow: 0 0 8px, 0 0 4px;
}

.snackbar-message {
    flex-grow: 1;
    line-height: 1.4;
}

/* --- NEW: Close Button --- */
.snackbar-close-btn {
    background: transparent;
    border: none;
    color: inherit; /* Inherits color from .snackbar (works in dark/light mode) */
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    padding: 0 0 0 10px;
    margin-left: auto; /* Pushes the button to the far right */
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.snackbar-close-btn:hover {
    opacity: 1;
}

/* --- Responsive Styles for Mobile & Tablets --- */
@media (max-width: 768px) {
    #snackbar-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
        align-items: stretch;
    }

    .snackbar {
        width: 100%;
        box-sizing: border-box;
        max-width: none;

        /* On mobile, have the snackbar slide up from the bottom */
        transform: translateY(150%);
    }

    .snackbar.show {
        transform: translateY(0);
    }
}
.theme-dark .snackbar {
    background-color: #f8f9fa; /* A light off-white */
    color: #1a1a1a;           /* A very dark grey for text */
    box-shadow: 0 3px 6px rgba(0,0,0,0.2), 0 7px 20px rgba(0,0,0,0.2);
}
