/**
 * Authentication Notifications Styles
 */

/* Toast Notifications */
.custom-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.custom-toast .toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.custom-toast .toast-message {
    flex: 1;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.custom-toast .toast-close {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
}

.custom-toast .toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Toast types */
.custom-toast-success {
    border-left: 4px solid #4caf50;
}

.custom-toast-success .toast-icon {
    color: #4caf50;
}

.custom-toast-error {
    border-left: 4px solid #f44336;
}

.custom-toast-error .toast-icon {
    color: #f44336;
}

.custom-toast-warning {
    border-left: 4px solid #ff9800;
}

.custom-toast-warning .toast-icon {
    color: #ff9800;
}

.custom-toast-info {
    border-left: 4px solid #2196f3;
}

.custom-toast-info .toast-icon {
    color: #2196f3;
}

/* Confirm/Alert Dialog Overlay */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirm-overlay.show {
    opacity: 1;
}

.confirm-overlay.show .confirm-dialog {
    transform: scale(1);
    opacity: 1;
}

/* Confirm Dialog */
.confirm-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirm-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.confirm-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.confirm-body {
    padding: 20px 24px;
}

.confirm-message {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.confirm-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Alert Dialog with Icon */
.confirm-dialog.alert-success .alert-icon {
    color: #4caf50;
}

.confirm-dialog.alert-error .alert-icon {
    color: #f44336;
}

.confirm-dialog.alert-warning .alert-icon {
    color: #ff9800;
}

.confirm-dialog.alert-info .alert-icon {
    color: #2196f3;
}

.alert-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 16px;
}

.alert-icon i {
    display: block;
}

.confirm-dialog .alert-icon + .confirm-title {
    text-align: center;
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .custom-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
    
    .custom-toast {
        transform: translateY(-100px);
    }
    
    .custom-toast.show {
        transform: translateY(0);
    }
    
    .confirm-dialog {
        width: 95%;
        max-width: none;
    }
}

/* Smooth animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}