/* Slingshot Sandbox Specific Styles */

.lab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 2rem;
    background: rgba(2, 16, 52, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(222, 235, 255, 0.1);
}

.lab-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lab-title h1 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

.badge.complexity-high {
    background: rgba(255, 165, 0, 0.2); /* Orange instead */
    color: #FFA500;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.lab-container {
    display: flex;
    padding: 0.8rem 1rem;
    gap: 1rem;
    max-width: 100%;
    width: 100%;
    margin: 0;
    height: calc(100vh - 55px);
    box-sizing: border-box;
}

/* Left Pane: Simulation */
.simulation-pane {
    flex: 2.5;
    display: flex;
    flex-direction: row-reverse;
    gap: 1rem;
    height: 100%;
}

.canvas-container {
    background: #021034;
    border-radius: 16px;
    border: 1px solid rgba(222, 235, 255, 0.1);
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
    position: relative;
    height: 100%;
}

canvas {
    max-width: 100%;
    max-height: 100%;
}

.controls-panel {
    background: rgba(2, 16, 52, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(222, 235, 255, 0.1);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 270px;
    flex-shrink: 0;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}

.controls-panel::-webkit-scrollbar {
    width: 6px;
}
.controls-panel::-webkit-scrollbar-track {
    background: rgba(2, 16, 52, 0.3);
    border-radius: 3px;
}
.controls-panel::-webkit-scrollbar-thumb {
    background: rgba(222, 235, 255, 0.2);
    border-radius: 3px;
}
.controls-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(18, 93, 255, 0.6);
}

.controls-panel .action-btn {
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
}

.preset-dropdown {
    width: 100%;
    background: rgba(2, 16, 52, 0.8);
    color: #FFF;
    border: 1px solid rgba(222, 235, 255, 0.2);
    padding: 0.5rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}
.preset-dropdown:focus {
    border-color: #125DFF;
}

.control-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #DEEBFF;
}

.value-display {
    color: #FFFFFF;
    font-weight: 600;
    font-family: monospace;
}

input[type="range"] {
    width: 100%;
    accent-color: #125DFF;
}

.action-btn {
    height: 40px;
    padding: 0 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Right Pane: Analysis */
.analysis-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.telemetry-card, .edu-card {
    background: rgba(2, 16, 52, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(222, 235, 255, 0.1);
    padding: 1.5rem;
}

.telemetry-card h3, .edu-card h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.telemetry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.t-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.t-item.highlight {
    background: rgba(18, 93, 255, 0.1);
    border-color: #125DFF;
}

.t-label {
    font-size: 0.8rem;
    color: #C4C4C4;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.t-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    font-family: monospace;
}

.t-item.highlight .t-value {
    color: #DEEBFF;
    text-shadow: 0 0 10px rgba(18, 93, 255, 0.5);
}

.unit {
    font-size: 0.9rem;
    color: #C4C4C4;
    font-weight: 400;
}

.edu-card p {
    color: #C4C4C4;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.edu-card strong {
    color: #DEEBFF;
}

/* Audio Toggle Button */
.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFF;
    width: 40px;
    height: 40px;
    padding: 0;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon.active {
    background: #125DFF !important;
    border-color: #DEEBFF !important;
    box-shadow: 0 0 15px rgba(18, 93, 255, 0.4) !important;
}

@media (max-width: 1024px) {
    .lab-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }
    
    .simulation-pane {
        flex-direction: column;
        height: 600px;
        gap: 1.5rem;
    }
    
    .canvas-container {
        height: 400px;
        flex: none;
    }
    
    .controls-panel {
        width: 100%;
        height: auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        overflow-y: visible;
        gap: 1.2rem;
        padding: 1.2rem;
    }
    
    .controls-panel .action-btn {
        margin-top: 0;
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .simulation-pane {
        height: auto;
    }
    
    .canvas-container {
        height: 300px;
    }
    
    .controls-panel {
        grid-template-columns: 1fr;
    }
}

/* Reset View Button styling */
.reset-view-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(2, 16, 52, 0.8) !important;
    border: 1px solid rgba(222, 235, 255, 0.2) !important;
    backdrop-filter: blur(5px);
    color: #FFF !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    display: flex;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.reset-view-btn:hover {
    background: #125DFF !important;
    border-color: #DEEBFF !important;
    transform: translateY(-1px);
}
