/* --- Кнопка просмотра лога --- */
.view-log-btn {
    background: rgba(79, 172, 254, 0.15);
    color: #4facfe;
    border: 1px solid rgba(79, 172, 254, 0.3);
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    align-self: center;
}

.view-log-btn:hover {
    background: rgba(79, 172, 254, 0.25);
    transform: translateY(-1px);
}

/* --- Модальное окно лога --- */
.log-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.log-modal.show {
    opacity: 1;
    pointer-events: all;
}

.log-modal-content {
    background: rgba(15, 32, 39, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.log-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.log-modal-header h3 {
    font-size: 1.3rem;
    color: #00f2fe;
    margin: 0;
}

.log-modal-close {
    background: none;
    border: none;
    color: #a0d2ff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.log-modal-close:hover {
    opacity: 1;
    color: #ff6b6b;
    transform: rotate(90deg);
}

.log-entry {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #4facfe;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #d0f0ff;
}

.log-entry.error {
    border-left-color: #ff6b6b;
}

.log-entry .timestamp {
    color: #80c0ff;
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: block;
}

.log-entry .context {
    color: #a0d2ff;
    font-style: italic;
    margin: 0.3rem 0;
}

.log-entry .stack {
    color: #ff9a9e;
    font-size: 0.8rem;
    white-space: pre-wrap;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    overflow-x: auto;
}