/* Modern Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast-notification {
    background: var(--primary-white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-light);
    margin-bottom: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    position: relative;
    overflow: hidden;
}

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

.toast-notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* Toast Types */
.toast-notification.success {
    border-left: 4px solid #28a745;
}

.toast-notification.error {
    border-left: 4px solid #dc3545;
}

.toast-notification.warning {
    border-left: 4px solid #ffc107;
}

.toast-notification.info {
    border-left: 4px solid #17a2b8;
}

/* Toast Icon */
.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    flex-shrink: 0;
}

.toast-notification.success .toast-icon {
    background: #28a745;
}

.toast-notification.error .toast-icon {
    background: #dc3545;
}

.toast-notification.warning .toast-icon {
    background: #ffc107;
}

.toast-notification.info .toast-icon {
    background: #17a2b8;
}

/* Toast Content */
.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-medium);
    line-height: 1.4;
}

/* Toast Close Button */
.toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

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

/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    transition: transform linear;
}

.toast-notification.success .toast-progress-bar {
    background: #28a745;
}

.toast-notification.error .toast-progress-bar {
    background: #dc3545;
}

.toast-notification.warning .toast-progress-bar {
    background: #ffc107;
}

.toast-notification.info .toast-progress-bar {
    background: #17a2b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast-notification {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .toast-title {
        font-size: 13px;
    }
    
    .toast-message {
        font-size: 12px;
    }
}

/* Animation Keyframes */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Legacy Alert Replacement */
.alert-modern {
    background: var(--primary-white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 16px 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.alert-modern.alert-success {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, var(--primary-white) 100%);
}

.alert-modern.alert-danger {
    border-left: 4px solid #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, var(--primary-white) 100%);
}

.alert-modern.alert-warning {
    border-left: 4px solid #ffc107;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, var(--primary-white) 100%);
}

.alert-modern.alert-info {
    border-left: 4px solid #17a2b8;
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.05) 0%, var(--primary-white) 100%);
}

.alert-modern .alert-icon {
    display: inline-block;
    margin-right: 10px;
    font-size: 16px;
}

.alert-modern.alert-success .alert-icon {
    color: #28a745;
}

.alert-modern.alert-danger .alert-icon {
    color: #dc3545;
}

.alert-modern.alert-warning .alert-icon {
    color: #ffc107;
}

.alert-modern.alert-info .alert-icon {
    color: #17a2b8;
}

/* Smooth Transitions */
.alert-modern {
    transition: all 0.3s ease;
}

.alert-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

