/* Hit Simulator */
body[data-page="hit-prob"] {
    height: 100vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

body[data-page="hit-prob"] .app-container {
    width: 100%;
}

/* Status bar - centered controls */
.status-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 8px;
}

.sim-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Progress bar */
.progress-bar {
    height: 22px;
    width: 100%;
    max-width: 400px;
    background: #e9ecef;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #28a745;
    border-radius: 4px;
    transition: width 0.1s ease;
    width: 0%;
}

.progress-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

/* Target panel with canvas */
.target-panel {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.canvas-container {
    flex: 1;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: white;
    width: 100%;
    margin: 0 auto;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;
}

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

/* Stats panel below canvas */
.stats-panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 16px 20px;
    margin-top: 12px;
}

#statsTable {
    width: 100%;
    border-collapse: collapse;
}

#statsTable tr {
    border-bottom: 1px solid #f0f0f0;
}

#statsTable tr:last-child {
    border-bottom: none;
}

#statsTable td {
    padding: 6px 4px;
}

.stat-label {
    color: #555;
    font-weight: 500;
    font-size: 13px;
}

.stat-value {
    color: #2c3e50;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    text-align: right;
    white-space: nowrap;
}

/* Disclaimer */
.sim-disclaimer {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 3px solid #95a5a6;
    border-radius: 6px;
    color: #666;
    font-size: 12.5px;
    line-height: 1.4;
}

.loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 20px;
    border-radius: 8px;
    z-index: 1000;
}

.loading.show {
    display: block;
}

