/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a3a, #0d1b2a);
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
}

.main-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(25, 35, 45, 0.95);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(64, 156, 255, 0.2);
    overflow: hidden;
}

.panel-title {
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    color: white;
    padding: 18px 24px;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(64, 156, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-text {
    flex: 1;
}

.content-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 25px;
}

/* BUTOANE CAMERA */
.camera-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.camera-btn {
    padding: 10px 15px;
    background: rgba(30, 40, 50, 0.8);
    border: 1px solid #4a9eff;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.camera-btn:hover {
    background: rgba(74, 158, 255, 0.3);
    transform: translateY(-2px);
}

.camera-btn.active {
    background: #4a9eff;
    color: #0d1b2a;
}

/* BUSOLA */
.compass-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(30, 40, 50, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(74, 158, 255, 0.3);
}

.compass-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    cursor: grab;
}

.compass-wrapper:active {
    cursor: grabbing;
}

#compassCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.7),
        0 5px 15px rgba(0, 0, 0, 0.5);
    border: 8px solid #2a3a4a;
    transition: transform 0.2s;
}

.compass-wrapper:hover #compassCanvas {
    transform: scale(1.02);
}

/* SIMULATOR */
.simulator-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.boat-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.4);
    border: 3px solid #2a3a4a;
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%);
}

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

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #4a9eff;
    font-size: 16px;
    text-align: center;
}

.gyro-controls {
    display: flex; /* ← ADAUGĂ ASTA */
    gap: 20px; /* ← ADAUGĂ ASTA */
    padding: 20px;
    background: rgba(30, 40, 50, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(74, 158, 255, 0.3);
}

.control-group {
    flex: 1; /* ← ADAUGĂ ASTA */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-weight: 600;
    color: #4a9eff;
}

.control-group select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #4a9eff;
    background: rgba(20, 30, 40, 0.9);
    color: white;
    font-size: 14px;
}
/* LAYOUT BUSOLĂ + CEAȘURI */
.compass-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

.compass-wrapper {
    flex-shrink: 0;
}

.axis-gauges {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

/* Pe mobil - una sub alta */
@media (max-width: 768px) {
    .compass-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .axis-gauges {
        flex-direction: row;
        gap: 40px;
    }
}
.status-display {
    background: rgba(30, 40, 50, 0.7);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(74, 158, 255, 0.3);
    text-align: center;
    font-size: 0.9rem;
}

.angle-display {
    display: none;
}

.cardinal {
    display: none;
}
/* GAUGE STYLES */
.axis-gauges {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}

.axis-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.gauge-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a9eff;
    text-align: center;
}

.gauge-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    cursor: grab;
}

.gauge-wrapper:active {
    cursor: grabbing;
}

.gauge-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(30, 40, 50, 0.8);
    border: 3px solid #4a9eff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 18%;
    transform: translate(-18%, -50%);
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
}

.gauge-scale {
    font-size: 0.8rem;
    color: #888;
}

@media (max-width: 600px) {
    .axis-gauges {
        flex-direction: column;
        gap: 20px;
    }
}
@media (max-width: 600px) {
    .compass-wrapper {
        width: 240px;
        height: 240px;
    }
    
    #compassCanvas {
        width: 240px;
        height: 240px;
    }
    
    .boat-wrapper {
        height: 250px;
    }
    
    .panel-title {
        flex-direction: column;
        gap: 10px;
    }
    
    .title-slider-container {
        margin-left: 0;
    }
}