/* Modern Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    min-width: 320px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-enter {
    opacity: 0;
    transform: translateX(100%);
}

.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-exit {
    opacity: 0;
    transform: translateX(100%);
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-message {
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #64748b;
}

/* Toast Types */
.toast-success {
    border-left-color: #10b981;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-info {
    border-left-color: #3b82f6;
}

.toast-info .toast-icon {
    color: #3b82f6;
}

.toast-loading {
    border-left-color: #0d47a1;
}

.toast-loading .toast-icon {
    color: #0d47a1;
}

/* Modern Confirm Dialog */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.confirm-modal.show {
    opacity: 1;
}

.confirm-modal.show .confirm-dialog {
    transform: scale(1);
}

.confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.confirm-dialog {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.confirm-icon.warning {
    background: #fef3c7;
    color: #f59e0b;
}

.confirm-icon.danger {
    background: #fee2e2;
    color: #ef4444;
}

.confirm-icon.info {
    background: #dbeafe;
    color: #3b82f6;
}

.confirm-title {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.confirm-message {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-buttons .btn {
    min-width: 120px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .toast-container {
        right: 12px;
        left: 12px;
        max-width: none;
    }

    .toast {
        min-width: auto;
    }

    .confirm-dialog {
        padding: 24px;
        margin: 20px;
    }

    .confirm-buttons {
        flex-direction: column;
    }

    .confirm-buttons .btn {
        width: 100%;
    }
}

/* Animation for loading spinner */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}
