/* 
 * Realistic PhET Style Lab Canvas 
 */

* {
    box-sizing: border-box;
}

html,
body.phet-theme {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f8fafc;
    font-family: 'Outfit', sans-serif;
    overscroll-behavior: none;
    touch-action: none;
}

#phet-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 1280px;
    height: 720px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: 0 0;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
    touch-action: none;
}
body {
    font-family: 'Arial', sans-serif;
}

nav {
    position: relative;
    background: #ffffff;
    height: 65px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    border-bottom: 2px solid #e2e8f0;
    flex-shrink: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.separator {
    color: #cbd5e1;
    font-weight: 300;
}

.subject-tag {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.experiment-tag {
    font-size: 0.95rem;
    color: #3b82f6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-exit {
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.btn-exit:hover {
    color: #3b82f6;
}

.sim-container {
    flex: 1;
    width: 100%;
    position: relative;
    background: #000;
    overflow: hidden;
}

#simCanvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: default;
}

#simCanvas:active {
    cursor: grabbing;
}

/* Floating Overlay Panels */
.ph-panel {
    position: absolute;
    background: #f8f9fa;
    border: 1px solid #777;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
    font-size: 13px;
    color: #111;
}

.ph-panel label {
    display: block;
    margin-bottom: 5px;
    cursor: pointer;
}

.ph-panel select,
.ph-panel input[type=range] {
    cursor: pointer;
}

/* Panel Positioning */
.panel-blocks {
    top: 15px;
    right: 15px;
    width: 130px;
}

.panel-volume {
    top: 220px;
    right: 15px;
    width: 220px;
}

.panel-forces {
    bottom: 15px;
    left: 15px;
    width: 150px;
}

.panel-fluid {
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
}

/* Force Arrows Colors in panel */
.arr-blue {
    color: #3b82f6;
    font-weight: bold;
}

.arr-pink {
    color: #ec4899;
    font-weight: bold;
}

.arr-orange {
    color: #f59e0b;
    font-weight: bold;
}

/* General utility */
input[type=radio],
input[type=checkbox] {
    margin-right: 5px;
}