﻿
/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * common toast-notifications.css styling.
 */


/*
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * Toast notifications component styling.
 */

/**
 * Toast Notification Styles
 */

.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 16px;
    padding: 16px;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #6c757d;
    max-width: 100%;
    word-wrap: break-word;
}

.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-hide {
    opacity: 0;
    transform: translateX(400px);
}

/* Toast Types */
.toast-success {
    border-left-color: #28a745;
}

.toast-error {
    border-left-color: #dc3545;
}

.toast-warning {
    border-left-color: #ffc107;
}

.toast-info {
    border-left-color: #17a2b8;
}

/* Toast Icon */
.toast-icon {
    font-size: 1.5rem;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-success .toast-icon {
    color: #28a745;
}

.toast-error .toast-icon {
    color: #dc3545;
}

.toast-warning .toast-icon {
    color: #ffc107;
}

.toast-info .toast-icon {
    color: #17a2b8;
}

/* Toast Content */
.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
    color: #212529;
}

.toast-message {
    font-size: 0.875rem;
    color: #495057;
    line-height: 1.4;
}

/* Close Button */
.toast-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.toast-close:focus {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    .toast-container {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        margin-bottom: 10px;
        padding: 12px;
    }
    
    .toast-icon {
        font-size: 1.25rem;
        margin-right: 10px;
    }
    
    .toast-title {
        font-size: 0.9rem;
    }
    
    .toast-message {
        font-size: 0.8rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .toast {
        transition: opacity 0.1s ease;
        transform: none !important;
    }
    
    .toast-show {
        opacity: 1;
    }
    
    .toast-hide {
        opacity: 0;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .toast {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .toast-title {
        color: #f7fafc;
    }
    
    .toast-message {
        color: #cbd5e0;
    }
    
    .toast-close {
        color: #a0aec0;
    }
}

