        :root {
            --primary-color: #4361ee;
            --secondary-color: #3f37c9;
            --success-color: #4cc9f0;
            --error-color: #f72585;
            --text-color: #2b2d42;
            --light-gray: #f8f9fa;
            --dark-gray: #6c757d;
        }
        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            background-color: #f5f7ff;
            padding: 20px;
        }


        #installBtn {
            padding: 10px 20px;
            background: #4CAF50;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            margin: 20px;
        }
        #installBtn:hover {
            background: #45a049;
        }
        
        .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px;
        }
        
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }
        
        h1 {
            color: var(--primary-color);
            font-size: 1.8rem;
            margin-bottom: 10px;
        }
        
        .login-link {
            display: inline-block;
            padding: 8px 16px;
            background-color: var(--primary-color);
            color: white;
            text-decoration: none;
            border-radius: 4px;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .login-link:hover {
            background-color: var(--secondary-color);
            transform: translateY(-2px);
        }
        
        /* Tab styles */
        .tab-container {
            margin-bottom: 20px;
        }
        
        .tab-buttons {
            display: flex;
            margin-bottom: 20px;
            border-bottom: 1px solid #ddd;
        }
        
        .tab-btn {
            padding: 10px 20px;
            background: none;
            border: none;
            border-bottom: 3px solid transparent;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            color: var(--dark-gray);
            transition: all 0.3s ease;
        }
        
        .tab-btn.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
            animation: fadeIn 0.5s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        /* Face recognition tab styles */
        .camera-container {
            position: relative;
            width: 100%;
            height: 65%;
            max-width: 400px;
            margin: 0 auto 20px;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }
        
        #video {
            width: 100%;
            display: block;
            background-color: #000;
        }
        
        #canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
        
        .controls {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 20px;
        }
        
        .attendance-btn {
            padding: 12px 24px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 10px rgba(67, 97, 238, 0.3);
            width: 100%;
            max-width: 300px;
            margin-bottom: 20px;
        }
        
        .attendance-btn:hover {
            background-color: var(--secondary-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
        }
        
        .attendance-btn:disabled {
            background-color: var(--dark-gray);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        #faceResult, #mobileResult {
            width: 100%;
            padding: 15px;
            border-radius: 8px;
            margin-top: 20px;
            text-align: center;
            font-size: 1rem;
        }
        
        .loading {
            color: var(--dark-gray);
            font-style: italic;
            background-color: var(--light-gray);
        }
        
        .scanning {
            animation: pulse 2s infinite;
            background-color: rgba(76, 201, 240, 0.1);
        }
        
        .success {
            color: white;
            background-color: var(--success-color);
            font-weight: 600;
        }
        
        .error {
            color: white;
            background-color: var(--error-color);
            padding: 15px;
        }
        
        /* Location input styles */
        .location-inputs {
            margin-top: 30px;
            padding: 20px;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            text-align: center;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .location-inputs h3 {
            color: var(--primary-color);
            margin-bottom: 15px;
        }
        
        .location-btn {
            padding: 12px 24px;
            background-color: #4cc9f0;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 10px rgba(76, 201, 240, 0.3);
            width: 100%;
            max-width: 300px;
            margin-bottom: 15px;
        }
        
        .location-btn:hover {
            background-color: #3ab8d8;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(76, 201, 240, 0.4);
        }
        
        .location-btn:disabled {
            background-color: var(--dark-gray);
            cursor: not-allowed;
        }
        
        .input-group {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 10px;
        }
        
        .input-field {
            flex: 1;
            min-width: 200px;
        }
        
        .input-field label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
            color: var(--text-color);
            text-align: left;
        }
        
        .input-field input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 1rem;
        }
        
        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(76, 201, 240, 0.4); }
            70% { box-shadow: 0 0 0 10px rgba(76, 201, 240, 0); }
            100% { box-shadow: 0 0 0 0 rgba(76, 201, 240, 0); }
        }
        
        /* Success popup styles */
        .success-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 5px 30px rgba(0,0,0,0.3);
            z-index: 1000;
            text-align: center;
            max-width: 90%;
            width: 400px;
            animation: fadeIn 0.3s ease-out;
        }
        
        /* Company location styles */
        .company-location-btn {
            padding: 8px 16px;
            background-color: #4cc9f0;
            color: white;
            border: none;
            border-radius: 4px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 10px;
        }
        
        .company-location-btn:hover {
            background-color: #3ab8d8;
        }
        
        .company-location-container {
            margin-top: 15px;
        }
        
        /* QR code styles */
        #qrcode { 
            margin: 20px 0; 
            text-align: center; 
        }
        
        /* Mobile-specific styles */
        @media (max-width: 768px) {
            body {
                padding: 15px;
            }
            
            h1 {
                font-size: 1.5rem;
            }
            
            .camera-container {
                border-radius: 6px;
            }
            
            .attendance-btn {
                padding: 14px 24px;
                font-size: 1.1rem;
            }
            
            #faceResult, #mobileResult {
                font-size: 0.95rem;
                padding: 12px;
            }
            
            .input-field {
                min-width: 100%;
            }
        }



.camera-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

#video {
    width: 100%;
    display: block;
    transform: scaleX(-1); /* Mirror effect for front camera */
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}