        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: linear-gradient(135deg, #07edf5 0%, #77f8e7 100%);
            background: url(hg4.jpg);
          
            background-size:cover ;
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .header {
            text-align: center;
            margin-bottom: 10px;
            color: white;
            height: 5vh;
                        display: flex;
flex-direction: row;
            justify-content:space-between;
        }

        .header h1 {
            font-size: 2rem;
            margin-bottom: 0px;
            padding: 0;
            line-height: 1;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        .header p {
            font-size: 1rem;
            font-style: italic;
            color: #170966;

        }

        .domain-selector {
            background: #c7f8f4;
            border-radius: 15px;
            padding: 5px;
            margin-bottom: 5px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            backdrop-filter: blur(10px);
        }

        .domain-grid {
            display: flex;
flex-direction: row;
            justify-content:space-between;
   
            margin-bottom: 5px;
        }

        .domain-option {
            background: linear-gradient(135deg, #4c8b96 0%, #347baa 100%);
            border: none;
            border-radius: 15px;
            width:150px;
            padding: auto;
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 5px;
        }

        .domain-option:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        }

        .domain-option.active {
            background: linear-gradient(135deg, #358f1a 0%, #00f2fe 100%) !important;
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
            border: 2px solid #ffffff;
            font-size: larger;
        }

        .domain-option .icon {
            font-size: 2rem;
        }

        .upload-area {
            height: 10vh;
            background: #c7f8f4;
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 5px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        .drop-zone {
            height: fit-content;
            border: 2px dashed #cbd5e0;
            border-radius: 15px;

            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #f8fafc;
        }

        .drop-zone:hover, .drop-zone.dragover {
            border-color: #4facfe;
            background: #e6f7ff;
            transform: scale(1.02);
        }

        .controls {
            background: #c7f8f4;
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        .search-filters {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }

        .search-input, .filter-select {
            padding: 15px;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .search-input:focus, .filter-select:focus {
            outline: none;
            border-color: #4facfe;
            box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
        }

        .ai-controls {
            display: flex;
flex-direction: row;
            justify-content:space-between;
   
            margin-bottom: 5px;
        }

        .ai-toggle {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 15px;
            background: #f1f5f9;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .ai-toggle:hover {
            background: #e2e8f0;
        }

        .ai-toggle input[type="checkbox"] {
            width: 18px;
            height: 18px;
        }

        .stats {
            background: #c7f8f4;
            border-radius: 20px;
            padding: 20px;
            margin-bottom: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 20px;
        }

        .stat-item {
            text-align: center;
            padding: 15px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 15px;
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .cards-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
            gap: 25px;
        }

        .document-card {
            background: white;
            border-radius: 20px;
            padding: 25px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            transition: all 0.3s ease;
            border-left: 5px solid transparent;
        }

        .document-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.2);
        }

        .document-card.medical { border-left-color: #ef4444; }
        .document-card.scientific { border-left-color: #3b82f6; }
        .document-card.business { border-left-color: #10b981; }
        .document-card.legal { border-left-color: #8b5cf6; }
        .document-card.news { border-left-color: #f59e0b; }
        .document-card.general { border-left-color: #6b7280; }

        .card-header {
            margin-bottom: 15px;
        }

        .card-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .card-meta {
            color: #64748b;
            font-size: 0.875rem;
            margin-bottom: 15px;
        }

        .card-content {
            color: #374151;
            line-height: 1.6;
            margin-bottom: 15px;
        }

        .ai-insights {
            background: #f8fafc;
            border-radius: 10px;
            padding: 15px;
            margin: 15px 0;
            border-left: 4px solid #4facfe;
        }

        .ai-insight-item {
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .ai-badge {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 15px;
        }

        .tag {
            background: #e2e8f0;
            color: #475569;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 500;
        }

        .loading {
            text-align: center;
            padding: 40px;
            color: #64748b;
        }

        .spinner {
            border: 3px solid #f3f4f6;
            border-top: 3px solid #4facfe;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .export-buttons {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }

        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-primary {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: white;
        }

        .btn-secondary {
            background: #f1f5f9;
            color: #475569;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }

        .progress-bar {
            width: 100%;
            height: 8px;
            background: #e2e8f0;
            border-radius: 4px;
            overflow: hidden;
            margin: 10px 0;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #4facfe, #00f2fe);
            transition: width 0.3s ease;
            border-radius: 4px;
        }

        @media (max-width: 768px) {
            .domain-grid {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
            }
            
            .search-filters {
                display: grid;
                grid-template-columns: 1fr;
            }
            
            .cards-container {
                display: grid;
                grid-template-columns: 1fr;
            }
            
            .stats-grid {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
            }
        }
