* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    background: #121212; /* Dark background */
    color: #ffffff;
    min-height: 100vh;
}

/* Buttons container */
.buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 50px 20px;
    gap: 15px;
}

/* Buttons style */
.buttons button {
    background: #1f1f1f;
    color: #ffffff;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buttons button:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Toast container */
#toastBox {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    overflow: hidden;
    padding: 10px;
    z-index: 1000;
}

/* Toast notifications */
.toast {
    width: 350px;
    max-width: 90vw; /* Responsive on mobile */
    padding: 15px 20px;
    margin: 10px 0;
    background: #1e1e1e;
    color: #ffffff;
    font-weight: 500;
    border-left: 5px solid green; /* Default for success */
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transform: translateX(100%);
    animation: slideIn 0.5s forwards;
    position: relative;
}

/* Toast types */
.toast.error {
    border-left-color: #ff4c4c;
}

.toast.invalid {
    border-left-color: #ffa500;
}

/* Icon inside toast */
.toast i {
    font-size: 22px;
}

/* Progress bar */
.toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: green;
    animation: progress 6s linear forwards;
}

.toast.error::after {
    background-color: #ff4c4c;
}

.toast.invalid::after {
    background-color: #ffa500;
}

/* Animations */
@keyframes slideIn {
    100% {
        transform: translateX(0);
    }
}

@keyframes progress {
    100% {
        width: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .buttons {
        flex-direction: column;
        align-items: center;
        margin: 30px 10px;
    }
    
    .buttons button {
        width: 80%;
        max-width: 250px;
    }

    #toastBox {
        right: 10px;
        left: 10px;
        bottom: 10px;
        align-items: center;
    }

    .toast {
        width: 100%;
    }
}
