.snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: white;
    text-align: center;
    border-radius: 10px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    right: 30px;
    top: 30px;
    font-size: 23px;
    font-family: "Rajdhani", sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.snackbar.success {
    background-color: #28a745;
    border: 2px solid #1e7e34;
}

.snackbar.alert {
    background-color: #ae0000;
    border: 2px solid #800000;
    text-shadow: 0 0 5px rgba(174, 0, 0, 0.5);
}

.snackbar.info {
    background-color: #17a2b8;
    border: 2px solid #117a8b;
}

.snackbar.warning {
    background-color: #ffc107;
    border: 2px solid #d39e00;
    color: #212529;
}

.snackbar.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {top: 0; opacity: 0;}
    to {top: 30px; opacity: 1;}
}

@keyframes fadeout {
    from {top: 30px; opacity: 1;}
    to {top: 0; opacity: 0;}
}

.snackbar i {
    margin-right: 10px;
}

/* Multiple snackbars stacking */
.snackbar:nth-child(2) {
    top: 100px;
}

.snackbar:nth-child(3) {
    top: 170px;
}

.snackbar:nth-child(4) {
    top: 240px;
}

/* Mobile Responsive Snackbar Styles */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .snackbar {
        min-width: 200px;
        margin-left: -100px;
        font-size: 20px;
        padding: 14px;
        right: 20px;
        top: 20px;
        max-width: calc(100vw - 40px);
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
        right: auto;
    }
    
    @keyframes fadein {
        from {top: 0; opacity: 0;}
        to {top: 20px; opacity: 1;}
    }
    
    @keyframes fadeout {
        from {top: 20px; opacity: 1;}
        to {top: 0; opacity: 0;}
    }
    
    .snackbar:nth-child(2) {
        top: 80px;
    }
    
    .snackbar:nth-child(3) {
        top: 140px;
    }
    
    .snackbar:nth-child(4) {
        top: 200px;
    }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
    .snackbar {
        min-width: 150px;
        font-size: 18px;
        padding: 12px;
        right: 10px;
        top: 10px;
        max-width: calc(100vw - 20px);
        border-radius: 8px;
        letter-spacing: 0.5px;
        word-wrap: break-word;
    }
    
    @keyframes fadein {
        from {top: 0; opacity: 0;}
        to {top: 10px; opacity: 1;}
    }
    
    @keyframes fadeout {
        from {top: 10px; opacity: 1;}
        to {top: 0; opacity: 0;}
    }
    
    .snackbar:nth-child(2) {
        top: 70px;
    }
    
    .snackbar:nth-child(3) {
        top: 130px;
    }
    
    .snackbar:nth-child(4) {
        top: 190px;
    }
    
    .snackbar i {
        margin-right: 8px;
    }
}

/* Extra Small Mobile (320px and below) */
@media (max-width: 320px) {
    .snackbar {
        min-width: 120px;
        font-size: 16px;
        padding: 10px;
        right: 5px;
        top: 5px;
        max-width: calc(100vw - 10px);
        border-radius: 6px;
        letter-spacing: 0px;
    }
    
    @keyframes fadein {
        from {top: 0; opacity: 0;}
        to {top: 5px; opacity: 1;}
    }
    
    @keyframes fadeout {
        from {top: 5px; opacity: 1;}
        to {top: 0; opacity: 0;}
    }
    
    .snackbar:nth-child(2) {
        top: 60px;
    }
    
    .snackbar:nth-child(3) {
        top: 115px;
    }
    
    .snackbar:nth-child(4) {
        top: 170px;
    }
    
    .snackbar i {
        margin-right: 6px;
    }
} 