/* Toast Notification - Pojok kanan bawah, tanpa package */
.toast-container {
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 420px;
    padding: 14px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.toast-show {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.toast-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Success Toast */
.toast-success {
    background-color: #10b981;
    color: white;
}

.toast-success .toast-icon svg {
    stroke: white;
}

.toast-success .toast-close svg {
    stroke: white;
}

/* Error Toast */
.toast-error {
    background-color: #ef4444;
    color: white;
}

.toast-error .toast-icon svg {
    stroke: white;
}

.toast-error .toast-close svg {
    stroke: white;
}

/* Warning Toast */
.toast-warning {
    background-color: #f59e0b;
    color: white;
}

.toast-warning .toast-icon svg {
    stroke: white;
}

.toast-warning .toast-close svg {
    stroke: white;
}

/* Info Toast */
.toast-info {
    background-color: #3b82f6;
    color: white;
}

.toast-info .toast-icon svg {
    stroke: white;
}

.toast-info .toast-close svg {
    stroke: white;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .toast {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* Mobile responsive */
@media (max-width: 640px) {
    .toast-container {
        bottom: 12px;
        left: 12px;
        right: 12px;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
        max-width: none;
    }
}
