@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@500;700&display=swap');

:root {
    --bg: #050508;
    --accent: #00f2ff;
    --wall: #3a3a45;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg);
    color: white;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.sidebar,
.chat-panel {
    width: 280px;
    background: #0a0a0f;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
}

.sidebar-header,
.chat-header {
    padding: 20px;
    font-family: 'Orbitron';
    color: var(--accent);
    border-bottom: 1px solid #222;
    font-size: 0.8rem;
}

.viewer {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #000;
    position: relative;
}

#canvas-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2500px;
}

.blueprint-overlay {
    position: relative;
    width: 85%;
    transition: 0.8s;
    transform-style: preserve-3d;
}

#plano-img {
    width: 100%;
    filter: brightness(0.4);
    border: 1px solid #333;
}

.modo-3d {
    transform: rotateX(50deg) rotateZ(-12deg) translateY(30px);
}

.muro-3d {
    position: absolute;
    transform-style: preserve-3d;
    transition: 0.8s;
    opacity: 0;
}

.modo-3d .muro-3d {
    opacity: 1;
}

.cara {
    position: absolute;
    background: var(--wall);
    border: 0.5px solid #555;
}

.tapa {
    width: 100%;
    height: 100%;
    transform: translateZ(40px);
    background: #4a4a55;
}

.frontal {
    width: 100%;
    height: 40px;
    bottom: 0;
    transform-origin: bottom;
    transform: rotateX(-90deg);
    filter: brightness(0.7);
}

.lateral {
    width: 40px;
    height: 100%;
    right: 0;
    transform-origin: right;
    transform: rotateY(-90deg);
    filter: brightness(0.5);
}

/* BOTONES DE EXPORTACIÓN */
.export-tools {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #111;
}

.export-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px;
    cursor: pointer;
    font-family: 'Orbitron';
    font-size: 0.65rem;
    transition: 0.3s;
}

.export-btn:hover {
    background: var(--accent);
    color: #000;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    font-size: 0.9rem;
}

.msg.ai {
    color: #ccc;
    margin-bottom: 15px;
    border-left: 2px solid var(--accent);
    padding-left: 10px;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid #222;
    display: flex;
    gap: 5px;
}

.chat-input-area input {
    background: #111;
    border: 1px solid #333;
    color: white;
    padding: 8px;
    flex: 1;
    font-size: 0.8rem;
}

.chat-input-area button {
    background: var(--accent);
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-family: 'Orbitron';
    font-size: 0.7rem;
}

.status-point {
    position: absolute;
    width: 22px;
    height: 22px;
    background: #0f0;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 15px #0f0;
    cursor: grab;
    z-index: 100;
}

.label {
    position: absolute;
    top: 30px;
    left: -10px;
    background: #000;
    padding: 2px 8px;
    font-size: 10px;
    border: 1px solid #0f0;
    color: var(--accent);
    font-family: 'Orbitron';
}