        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f0f2f5;
            color: #333;
        }
        
        h1, h2 {
            color: #2c3e50;
            text-align: center;
        }
        
        .camera-container {
            position: relative;
            width: 100%;
            margin: 20px 0;
            background-color: #000;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        
        #video {
            width: 100%;
            display: block;
            transform: scaleX(1);
        }
        
        #canvas {
            display: none;
            width: 100%;
        }
        
        .controls {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
            margin: 20px 0;
        }
        
        button {
            padding: 10px 20px;
            font-size: 16px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
            min-width: 120px;
        }
        
        #captureBtn {
            background-color: #27ae60;
            color: white;
        }
        
        #recordBtn {
            background-color: #e74c3c;
            color: white;
        }
        
        #switchBtn {
            background-color: #3498db;
            color: white;
        }
        
        #toggleCameraBtn {
            background-color: #9b59b6;
            color: white;
        }
        
        button:hover {
            opacity: 0.9;
            transform: translateY(-2px);
        }
        
        button:disabled {
            background-color: #95a5a6;
            cursor: not-allowed;
            transform: none;
        }
        
        .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 15px;
            margin-top: 30px;
        }
        
        .gallery-item {
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            background-color: white;
        }
        
        .gallery-item img, .gallery-item video {
            width: 100%;
            height: 150px;
            object-fit: cover;
            display: block;
        }
        
        .gallery-item-info {
            padding: 8px;
            font-size: 14px;
            color: #7f8c8d;
        }
        
        .delete-btn {
            position: absolute;
            top: 5px;
            right: 5px;
            background-color: rgba(231, 76, 60, 0.8);
            color: white;
            border: none;
            border-radius: 50%;
            width: 25px;
            height: 25px;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .mode-indicator {
            text-align: center;
            margin: 10px 0;
            font-weight: bold;
            color: #2c3e50;
            font-size: 18px;
        }
        
        .recording-indicator {
            display: none;
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: #e74c3c;
            color: white;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: bold;
            animation: pulse 1.5s infinite;
        }
        
        .camera-off {
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #333;
            color: white;
            height: 300px;
            font-size: 18px;
        }
        
        @keyframes pulse {
            0% { opacity: 0.6; }
            50% { opacity: 1; }
            100% { opacity: 0.6; }
        }
        
        .settings {
            background-color: white;
            padding: 15px;
            border-radius: 8px;
            margin: 20px 0;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        .settings label {
            display: flex;
            align-items: center;
            margin: 10px 0;
            cursor: pointer;
        }
        
        .settings input[type="checkbox"] {
            margin-right: 10px;
            width: 18px;
            height: 18px;
        }