/* Toast Notifications CSS */

/* GLOBAL BOLD TEXT FOR TOAST NOTIFICATIONS */
* {
    font-weight: bold !important;
}

.toast-container {
    position: fixed;
    bottom: 80px; /* Position above footer area */
    left: 50%;
    transform: translateX(-50%);
    z-index: 4000000;
    direction: ltr;
    padding: 20px !important;
}

.toast-notification {
    width: 320px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    padding: 12px;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    margin-left: auto;
    margin-right: auto;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification.hide {
    transform: translateY(100%);
    opacity: 0;
}

.toast-icon {
    margin-right: 12px;
    font-size: 20px;
    min-width: 20px;
    text-align: center;
}

.toast-content {
    flex: 1;
    padding-right: 8px;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
}

.toast-message {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.toast-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Color Variants */
.toast-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-left: 4px solid #388E3C;
}

.toast-error {
    background: linear-gradient(135deg, #F44336 0%, #d32f2f 100%);
    border-left: 4px solid #D32F2F;
}

.toast-warning {
    background: linear-gradient(135deg, #FF9800 0%, #f57c00 100%);
    border-left: 4px solid #F57C00;
}

.toast-info {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-left: 4px solid #1976D2;
}

/* Icons */
.toast-icon-success::before {
    content: "✓";
}

.toast-icon-error::before {
    content: "✕";
}

.toast-icon-warning::before {
    content: "⚠";
}

.toast-icon-info::before {
    content: "ℹ";
}

/* Animation for stacking */
.toast-stack-animation {
    animation: stackSlide 0.2s ease-out;
}

@keyframes stackSlide {
    from {
        transform: translateY(120%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .toast-container {
        left: 10px;
        bottom: 100px; /* Consistent spacing above footer on mobile */
    }
    
    .toast-notification {
        width: calc(100vw - 40px);
        max-width: 320px;
    }
}

/* Progress bar for auto-dismiss */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    width: 100%;
    transform-origin: left;
    transform: scaleX(1);
    transition: transform 0.1s linear;
}

.toast-notification.hiding .toast-progress {
    transform: scaleX(0);
}