:root {
    --primary-color: #7209b7;
    --secondary-color: #2ecc71;
    --danger-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --connected-color: #2ecc71;
    --disconnected-color: #e74c3c;
    --connecting-color: #f39c12;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none;
}

body {
    background-color: #f72585;
    color: #333;
    overflow-x: hidden;
    touch-action: manipulation;
}

.container {
    max-width: 100%;
    min-height: 100vh;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 10px;
}

.header h1 {
    font-size: 1.5rem;
    color: var(--dark-color);
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--disconnected-color);
}

#status {
font-size: 0.9rem;
color: var(--dark-color);
}

.video-feed {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: var(--dark-color);
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
    background-color: rgba(0, 0, 0, 0.3);
}

.video-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.controls-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.joystick-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
}

.joystick-left, .joystick-right {
    width: 150px;
    height: 150px;
    background-color: var(--light-color);
    border-radius: 50%;
    position: relative;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2);
    touch-action: none;
}

.joystick-head {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    touch-action: none;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.additional-controls {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn {
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 1px solid #ddd;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn:active {
    transform: scale(0.95);
}

.telemetry {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    margin-top: 10px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.telemetry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
}

.telemetry-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Estilos para móviles más pequeños */
@media (max-width: 480px) {
    .joystick-left, .joystick-right {
        width: 120px;
        height: 120px;
    }

    .joystick-head {
        width: 50px;
        height: 50px;
    }

    .btn {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .telemetry-item {
        font-size: 0.7rem;
    }

    .telemetry-item i {
        font-size: 1rem;
    }
}

/* Estado conectado */
.connected {
    background-color: var(--connected-color);
}

.connecting {
    background-color: var(--connecting-color);
}
