/* Snackbar container */
.snackbar-container {
    transition: all 0.5s ease;
    font-family: Roboto, sans-serif;
    font-size: 16px;
    min-height: 50px;
    background-color: #28a745; /* Green by default */
    position: fixed;
    display: flex;
    flex-direction: column; /* Stack content */
    align-items: center;
    text-align: center;
    color: #fff;
    line-height: 22px;
    padding: 18px 24px;
    top: -100px; /* Hidden initially */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    z-index: 9999;
    border-radius: 8px;
    min-width: 350px; /* Increased width */
    max-width: 600px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}

/* Snackbar shows */
.snackbar-show {
    top: 20px;
    opacity: 1;
}

/* Success and Error Colors */
.snackbar-container.success {
    background-color: #28a745;
}

.snackbar-container.error {
    background-color: #e74c3c;
}

/* Message & icon layout */
.snackbar-message {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

/* Icons */
.snackbar-icon.success::before {
    content: "✔"; /* Success Icon */
    color: #fff;
    font-size: 22px;
}

.snackbar-icon.error::before {
    content: "✖"; /* Error Icon */
    color: #fff;
    font-size: 22px;
}

/* Action Button */
.action {
    background: transparent;
    border: 1px solid #fff;
    font-size: inherit;
    text-transform: uppercase;
    color: #fff;
    margin-top: 10px;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 5px;
    width: 100px;
}

.action:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (min-width: 640px) {
    .snackbar-container {
        min-width: 288px;
        max-width: 568px;
        display: inline-flex;
        border-radius: 8px;
        margin: 24px;
    }
}
@media (max-width: 640px) {
    .snackbar-container {
        left: 0;
        right: 0;
        width: 100%;
    }
}
.snackbar-pos.bottom-center {
    top: auto !important;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
}
.snackbar-pos.bottom-left {
    top: auto !important;
    bottom: 0;
    left: 0;
}
.snackbar-pos.bottom-right {
    top: auto !important;
    bottom: 0;
    right: 0;
}
.snackbar-pos.top-left {
    bottom: auto !important;
    top: 0;
    left: 0;
}
.snackbar-pos.top-center {
    bottom: auto !important;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
}
.snackbar-pos.top-right {
    bottom: auto !important;
    top: 0;
    right: 0;
}
@media (max-width: 640px) {
    .snackbar-pos.bottom-center,
    .snackbar-pos.top-center {
        left: 0;
        transform: none;
    }
}
