/* Gravity Force Lab Custom Styles */

.phet-theme {
    background: #000;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
    margin: 0;
}

#phet-stage {
    position: absolute;
    top: 0; left: 0;
    transform-origin: top left;
    width: 100%; height: 100%;
    background-color: #fdfdfd;
    display: flex;
    flex-direction: column;
}

.drag-handle {
    cursor: grab;
    user-select: none;
}
.drag-handle:active {
    cursor: grabbing;
}

nav {
    position: relative !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #0f172a !important;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    flex-shrink: 0;
    top: 0 !important;
}

#sim-app {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.sim-container {
    display: flex;
    width: 100%;
}

.canvas-panel {
    flex: 1;
    position: relative;
    background: #eef2f6;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 40px 40px;
    overflow: hidden;
    cursor: default;
}

#simCanvas {
    width: 100%;
    height: 100%;
}

/* Control Panel Styles */
.control-panel {
    width: 320px;
    background: #f1f5f9;
    padding: 20px;
    border-left: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

.phet-box {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.section-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #1e293b;
}

.val-display {
    font-weight: 700;
}

.m1-color { color: #2563eb; }
.m2-color { color: #ef4444; }

input[type="range"] {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #475569;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

/* Overlay Styles */
#force-overlay {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 10;
}

.force-equation {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.force-text {
    font-weight: 500;
    color: #64748b;
}

#force-value {
    color: #1e293b;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Animations and Transitions */
.btn-primary {
    background: #8b5cf6;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}
