/**
 * Studio 3D Villa HARRAJ — Styles complets
 */

/* ── Reset ──────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: #e0e0e0;
}

/* ── Canvas 3D ──────────────────────────────────── */
#canvas3d {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* ── Toolbar supérieure ─────────────────────────── */
#toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(22, 33, 62, 0.95);
    border-bottom: 1px solid #0f3460;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 4px;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.tool-btn {
    padding: 8px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #8892b0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.tool-btn:hover {
    background: rgba(233, 69, 96, 0.1);
    color: #e0e0e0;
}

.tool-btn.active {
    background: #e94560;
    color: #ffffff;
    border-color: #e94560;
}

.toolbar-separator {
    width: 1px;
    height: 24px;
    background: #0f3460;
    margin: 0 8px;
}

.toolbar-spacer {
    flex-grow: 1;
}

/* ── Coordonnées curseur ────────────────────────── */
#coords {
    position: fixed;
    bottom: 12px;
    left: 12px;
    background: rgba(22, 33, 62, 0.9);
    border: 1px solid #0f3460;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-family: 'SF Mono', 'Consolas', monospace;
    color: #8892b0;
    z-index: 100;
    pointer-events: none;
}

/* ── Stats (nombre d'objets) ────────────────────── */
#stats {
    position: fixed;
    bottom: 12px;
    right: 12px;
    background: rgba(22, 33, 62, 0.9);
    border: 1px solid #0f3460;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    color: #8892b0;
    z-index: 100;
    pointer-events: none;
}

/* ── Nom du projet ──────────────────────────────── */
#projectName {
    position: fixed;
    top: 56px;
    left: 12px;
    background: rgba(22, 33, 62, 0.9);
    border: 1px solid #0f3460;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: #e0e0e0;
    z-index: 100;
}

/* ── Toast notifications ────────────────────────── */
#toast {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(22, 33, 62, 0.95);
    border: 1px solid #0f3460;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    color: #e0e0e0;
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

#toast.visible {
    opacity: 1;
}
