import { Card, CardContent, CardHeader, CardTitle } from "../ui/card";
import { Input } from "../ui/input";
import { Button } from "../ui/button";
import { Label } from "../ui/label";
import { Switch } from "../ui/switch";
import { Wind } from "lucide-react";

export function EVAPSettingView() {
  return (
    <div className="space-y-4">
      <div className="flex items-center gap-3">
        <Wind className="w-6 h-6 text-blue-400" />
        <h1 className="text-2xl font-bold text-white">EVAP Setting</h1>
      </div>

      <Card className="bg-gray-900 border-gray-700">
        <CardHeader>
          <CardTitle className="text-white">Evaporation Configuration</CardTitle>
        </CardHeader>
        <CardContent className="space-y-4">
          <div className="flex items-center justify-between p-3 bg-gray-800 rounded">
            <Label htmlFor="evap-enable" className="text-gray-300">Enable EVAP Sensor</Label>
            <Switch id="evap-enable" defaultChecked />
          </div>

          <div className="space-y-2">
            <Label htmlFor="pan-coefficient" className="text-gray-300">Pan Coefficient</Label>
            <Input 
              id="pan-coefficient"
              type="number"
              defaultValue="0.75"
              step="0.01"
              className="bg-gray-800 border-gray-700 text-white"
            />
          </div>

          <div className="space-y-2">
            <Label htmlFor="measurement-interval" className="text-gray-300">Measurement Interval (hours)</Label>
            <Input 
              id="measurement-interval"
              type="number"
              defaultValue="24"
              className="bg-gray-800 border-gray-700 text-white"
            />
          </div>

          <Button className="w-full bg-blue-600 hover:bg-blue-700">
            Save Configuration
          </Button>
        </CardContent>
      </Card>
    </div>
  );
}
