/* Variables de colores y estilos globales - Coherentes con tu diseño */
:root {
    --primary-color: #2e7d32;
    --secondary-color: #4caf50;
    --accent-color: #8bc34a;
    --light-color: #f1f8e9;
    --dark-color: #1b5e20;
    --text-color: #333;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Colores para notificaciones */
    --success-color: #2e7d32;
    --success-light: #e8f5e9;
    --error-color: #d32f2f;
    --error-light: #ffebee;
    --warning-color: #f57c00;
    --warning-light: #fff3e0;
    --info-color: #1976d2;
    --info-light: #e3f2fd;
}

/* Notificaciones Toast Elegantes - Coherentes con el diseño del parque */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.toast {
    background: var(--white);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transform: translateX(400px);
    opacity: 0;
    transition: var(--transition);
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0.8;
}

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

.toast.hide {
    transform: translateX(400px);
    opacity: 0;
}

/* Tipos de notificaciones */
.toast-success {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, var(--white) 0%, var(--success-light) 100%);
}

.toast-success::before {
    background: linear-gradient(90deg, var(--success-color), var(--accent-color));
}

.toast-error {
    border-left-color: var(--error-color);
    background: linear-gradient(135deg, var(--white) 0%, var(--error-light) 100%);
}

.toast-error::before {
    background: linear-gradient(90deg, var(--error-color), #ff6b6b);
}

.toast-warning {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, var(--white) 0%, var(--warning-light) 100%);
}

.toast-warning::before {
    background: linear-gradient(90deg, var(--warning-color), #ffd54f);
}

.toast-info {
    border-left-color: var(--info-color);
    background: linear-gradient(135deg, var(--white) 0%, var(--info-light) 100%);
}

.toast-info::before {
    background: linear-gradient(90deg, var(--info-color), #4fc3f7);
}

/* Iconos de notificaciones */
.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toast-success .toast-icon { 
    color: var(--success-color);
    background: rgba(46, 125, 50, 0.1);
}

.toast-error .toast-icon { 
    color: var(--error-color);
    background: rgba(211, 47, 47, 0.1);
}

.toast-warning .toast-icon { 
    color: var(--warning-color);
    background: rgba(245, 124, 0, 0.1);
}

.toast-info .toast-icon { 
    color: var(--info-color);
    background: rgba(25, 118, 210, 0.1);
}

/* Contenido de la notificación */
.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark-color);
    font-size: 1rem;
    line-height: 1.2;
}

.toast-message {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.9;
}

/* Botón de cerrar */
.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #95a5a6;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: var(--error-color);
    background: rgba(211, 47, 47, 0.1);
    transform: scale(1.1);
}

/* Barra de progreso (opcional) */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 100%;
    transform-origin: left;
    animation: progressBar 5s linear forwards;
}

.toast-success .toast-progress {
    background: linear-gradient(90deg, var(--success-color), var(--accent-color));
}

.toast-error .toast-progress {
    background: linear-gradient(90deg, var(--error-color), #ff6b6b);
}

.toast-warning .toast-progress {
    background: linear-gradient(90deg, var(--warning-color), #ffd54f);
}

.toast-info .toast-progress {
    background: linear-gradient(90deg, var(--info-color), #4fc3f7);
}

@keyframes progressBar {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

/* Efectos de hover */
.toast:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.toast:hover .toast-progress {
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        max-width: none;
        margin-bottom: 8px;
        padding: 14px 16px;
    }
    
    .toast-icon {
        font-size: 1.3rem;
        width: 20px;
        height: 20px;
    }
    
    .toast-title {
        font-size: 0.95rem;
    }
    
    .toast-message {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .toast-container {
        top: 5px;
        right: 5px;
        left: 5px;
    }
    
    .toast {
        padding: 12px 14px;
        border-radius: 10px;
    }
    
    .toast-icon {
        font-size: 1.2rem;
    }
}

/* Animaciones adicionales */
@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;
    }
}

.toast.show {
    animation: slideInRight 0.3s ease forwards;
}

.toast.hide {
    animation: slideOutRight 0.3s ease forwards;
}

/* Modo oscuro (opcional) */
@media (prefers-color-scheme: dark) {
    .toast {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .toast-title {
        color: #f7fafc;
    }
    
    .toast-message {
        color: #cbd5e0;
    }
    
    .toast-success {
        background: linear-gradient(135deg, #2d3748 0%, rgba(46, 125, 50, 0.2) 100%);
    }
    
    .toast-error {
        background: linear-gradient(135deg, #2d3748 0%, rgba(211, 47, 47, 0.2) 100%);
    }
    
    .toast-warning {
        background: linear-gradient(135deg, #2d3748 0%, rgba(245, 124, 0, 0.2) 100%);
    }
    
    .toast-info {
        background: linear-gradient(135deg, #2d3748 0%, rgba(25, 118, 210, 0.2) 100%);
    }
}
/* Modal de confirmación elegante */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirmation-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.confirmation-modal.show .modal-content {
    transform: translateY(0);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.modal-message {
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    min-width: 100px;
}

.modal-btn-cancel {
    background: #f8f9fa;
    color: var(--text-color);
    border: 1px solid #dee2e6;
}

.modal-btn-cancel:hover {
    background: #e9ecef;
}

.modal-btn-confirm {
    background: var(--primary-color);
    color: white;
}

.modal-btn-confirm:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
}