:root { 
            --accent-color: #166088;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --danger-color: #dc3545;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
        }
        .nav-link:hover, .page-header {
            background: linear-gradient(135deg, rgba(108, 140, 192, 0.4) 0%, rgba(74, 111, 165, 0.4) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(74, 111, 165, 0.2);
            position: relative;
            overflow: hidden;
        }
        .breadcrumb {
            background-color: transparent;
            padding: 0.5rem 0;
            margin-bottom: 0.5rem;
        }
        .camera-container {
            position: relative;
            width: 100%;
            background-color: #111;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 1.5rem;
            min-height: 300px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        #cameraPreview {
            width: 100%;
            max-width: 100%;
            height: auto;
            display: block;
        }
        .camera-placeholder {
            color: #999;
            position:absolute;
            text-align: center;
            padding: 3rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
        }
        .camera-placeholder i {
            font-size: 4rem;
            margin-bottom: 1rem;
            display: block;
        }
        .camera-placeholder h4 {
            margin-bottom: 0.75rem;
            font-weight: 600;
        }
        .camera-placeholder p {
            margin-bottom: 1.5rem;
            max-width: 400px;
            line-height: 1.5;
        }
        .camera-controls {
            position: absolute;
            bottom: 20px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            gap: 10px;
            z-index: 10;
        }
        .camera-controls .btn {
            border-radius: 50%;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        }
        .camera-controls .btn i {
            font-size: 1.5rem;
        }
        .test-results {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }
        .test-card {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        .test-card .test-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            font-size: 1.5rem;
        }
        .test-card.passed .test-icon {
            background-color: rgba(40, 167, 69, 0.1);
            color: var(--success-color);
        }
        .test-card.failed .test-icon {
            background-color: rgba(220, 53, 69, 0.1);
            color: var(--danger-color);
        }
        .test-card.pending .test-icon {
            background-color: rgba(255, 193, 7, 0.1);
            color: var(--warning-color);
        }
        .test-card .test-status {
            font-weight: 600;
            margin-bottom: 0.5rem;
        }
        .test-card.passed .test-status {
            color: var(--success-color);
        }
        .test-card.failed .test-status {
            color: var(--danger-color);
        }
        .test-card.pending .test-status {
            color: var(--warning-color);
        }
        .settings-panel {
            background-color: var(--light-gray);
            border-radius: 8px;
            padding: 1.5rem;
            margin-top: 1.5rem;
        }
        .settings-title {
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-color);
        }
        .snapshot-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 1rem;
            margin-top: 1.5rem;
        }
        .snapshot-item {
            position: relative;
            border-radius: 6px;
            overflow: hidden;
            height: 150px;
            background-color: #f1f1f1;
        }
        .snapshot-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .snapshot-actions {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0,0,0,0.7);
            padding: 0.5rem;
            display: flex;
            justify-content: space-around;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .snapshot-item:hover .snapshot-actions {
            opacity: 1;
        }
        .mic-test-container {
            background-color: var(--light-gray);
            border-radius: 8px;
            padding: 1.5rem;
            margin-top: 1.5rem;
        }
        .mic-visualizer {
            height: 80px;
            width: 100%;
            background-color: #111;
            border-radius: 4px;
            margin: 1rem 0;
            position: relative;
            overflow: hidden;
        }
        .mic-level {
            height: 100%;
            width: 0;
            background: linear-gradient(to right, #4CAF50, #FF9800, #F44336);
            transition: width 0.1s;
        }
        .mic-level-markers {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            justify-content: space-between;
            padding: 0 10px;
            align-items: flex-end;
        }
        .mic-marker {
            width: 2px;
            background-color: rgba(255,255,255,0.5);
            height: 20px;
        }
        .btn-success {
            background-color: var(--success-color);
            border-color: var(--success-color);
        }
        .btn-danger {
            background-color: var(--danger-color);
            border-color: var(--danger-color);
        }
        .btn-warning {
            background-color: var(--warning-color);
            border-color: var(--warning-color);
            color: #212529;
        }
        .nav-tabs {
            border-bottom: 1px solid var(--border-color);
        }
        .nav-tabs .nav-tabs .progress {
            height: 10px;
            border-radius: 5px;
            margin-bottom: 1rem;
        }
        .progress-bar {
            border-radius: 5px;
        }
        @media (max-width: 768px) {
            .camera-placeholder {
                padding: 1.5rem;
            }
            .camera-placeholder i {
                font-size: 3rem;
            }
            .camera-controls .btn {
                width: 50px;
                height: 50px;
            }
            .camera-controls .btn i {
                font-size: 1.2rem;
            }
            .test-results {
                grid-template-columns: 1fr;
            }
        }
        .loading {
            display: inline-block;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        .camera-placeholder.error {
            background-color: rgba(220, 53, 69, 0.05);
            border: 1px solid rgba(220, 53, 69, 0.2);
            border-radius: 8px;
        }
        .camera-placeholder.error i {
            color: #dc3545;
        }
        .related-tool .related-name {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }
        .related-tool .related-desc {
            font-size: 0.875rem;
            color: var(--text-muted);
        }
        .social-icons {
            display: flex;
            gap: 0.75rem;
            margin-top: 1rem;
        }
        .social-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background-color: var(--light-gray);
            border-radius: 50%;
            color: var(--text-color);
            text-decoration: none;
            transition: all 0.3s;
        }
        .social-icon:hover {
            background-color: var(--primary-color);
            color: white;
            transform: translateY(-2px);
        }