/* toast-styles.css */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 450px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease-in-out;
    z-index: 10000;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    padding-right: 40px;
    position: relative;
}

.toast-content i {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-content span {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    flex: 1;
}

.toast-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.toast-close:hover {
    background: #f0f0f0;
    color: #666;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #4caf50;
    width: 100%;
    animation: progress 5s linear forwards;
}

.toast-success .toast-progress {
    background: #4caf50;
}

.toast-error .toast-progress {
    background: #f44336;
}

.toast-success i {
    color: #4caf50;
}

.toast-error i {
    color: #f44336;
}

/* Animations */
@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .toast-notification {
        left: 20px;
        right: 20px;
        min-width: auto;
        max-width: none;
        transform: translateY(100px);
    }
    
    .toast-notification.show {
        transform: translateY(0);
    }
}

/* Confirm dialog */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.confirm-overlay.show {
    opacity: 1;
}

.confirm-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 28px 28px 20px;
    min-width: 300px;
    max-width: 420px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.confirm-overlay.show .confirm-dialog {
    transform: scale(1);
}

.confirm-message {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 20px;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.confirm-btn {
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.confirm-cancel {
    background: #f0f0f0;
    color: #555;
}

.confirm-cancel:hover {
    background: #e0e0e0;
}

.confirm-ok {
    background: #4f46e5;
    color: white;
}

.confirm-ok:hover {
    background: #4338ca;
}

/* Loading spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Disabled button state */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}