/* ENSŌ Modal System */

#enso-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#enso-modal.enso-modal--visible {
    display: flex;
    opacity: 1;
}

.enso-modal-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    margin: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#enso-modal-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #343835;
    margin-bottom: 12px;
}

#enso-modal-message {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 24px;
}

#enso-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.enso-modal-btn--primary,
.enso-modal-btn--secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.enso-modal-btn--primary {
    background: #5F8575;
    color: white;
}

.enso-modal-btn--primary:hover {
    background: #4a6a5c;
}

.enso-modal-btn--secondary {
    background: #f0f0f0;
    color: #343835;
}

.enso-modal-btn--secondary:hover {
    background: #e0e0e0;
}

/* Toast Container */
#enso-toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9998;
    pointer-events: none;
}

.enso-toast {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #343835;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    pointer-events: all;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.enso-toast--visible {
    opacity: 1;
}

.enso-toast--success {
    border-left: 4px solid #5F8575;
}

.enso-toast--error {
    border-left: 4px solid #d32f2f;
}

.enso-toast--info {
    border-left: 4px solid #1976d2;
}

@media (max-width: 480px) {
    .enso-modal-content {
        max-width: 100%;
        margin: 20px;
        padding: 24px;
    }
    
    #enso-toast-container {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}
