/* css/error.css */

#error-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000; /* Acima de tudo, até do confete */
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
    width: 100%;
}

.error-toast {
    background: #fff;
    border-left: 5px solid #ff3b5c; /* Vermelho erro */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-radius: 5px;
    padding: 15px;
    color: #333;
    animation: slideInRight 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.error-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1rem;
}

.error-close {
    cursor: pointer;
    opacity: 0.5;
    font-size: 1.2rem;
    line-height: 1;
}
.error-close:hover { opacity: 1; }

.error-toggle-details {
    font-size: 0.8rem;
    color: #3498db;
    cursor: pointer;
    margin-top: 5px;
    display: inline-block;
    text-decoration: underline;
}

.error-details {
    margin-top: 10px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.75rem;
    color: #e74c3c;
    white-space: pre-wrap;
    word-break: break-all;
    display: none; /* Oculto por padrão */
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #eee;
}

.error-details.visible { display: block; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}