<style>
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            max-width: 1400px;
            margin: 0 auto;
            padding: 10px;
            background-color: #f5f5f5;
        }
        
        .container {
            background: white;
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }
        
        h1 {
            color: #333;
            text-align: center;
            margin-bottom: 30px;
            font-size: 1.8rem;
        }
        
        h2 {
            color: #2c3e50;
            border-bottom: 2px solid #3498db;
            padding-bottom: 10px;
            font-size: 1.4rem;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
            color: #555;
            font-size: 0.9rem;
        }
        
        input, textarea, select {
            width: 100%;
            border: 2px solid #ddd;
            border-radius: 5px;
            padding: 12px;
            font-family: inherit;
            font-size: 16px; /* Prevents zoom on iOS */
            box-sizing: border-box;
        }
        
        textarea {
            resize: vertical;
            min-height: 100px;
        }
        
        button {
            background: linear-gradient(135deg, #3498db, #2980b9);
            color: white;
            padding: 14px 20px;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s;
            margin-right: 10px;
            margin-bottom: 10px;
            width: 100%;
            box-sizing: border-box;
        }
        
        button:hover {
            background: linear-gradient(135deg, #2980b9, #21618c);
            transform: translateY(-2px);
        }
        
        button.danger {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
        }
        
        button.danger:hover {
            background: linear-gradient(135deg, #c0392b, #a93226);
        }
        
        button.success {
            background: linear-gradient(135deg, #27ae60, #229954);
        }
        
        button.success:hover {
            background: linear-gradient(135deg, #229954, #1e8449);
        }
        
        button.purple {
            background: linear-gradient(135deg, #8e44ad, #7d3c98);
        }
        
        button.purple:hover {
            background: linear-gradient(135deg, #7d3c98, #6c3483);
        }
        
        /* Table responsive wrapper */
        .table-wrapper {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            margin: 20px -15px;
        }
        
        table {
            width: 100%;
            min-width: 600px; /* Minimum width to maintain readability */
            border-collapse: collapse;
            background: white;
            border-radius: 5px;
            overflow: hidden;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        th {
            background: linear-gradient(135deg, #34495e, #2c3e50);
            color: white;
            padding: 12px 8px;
            text-align: left;
            font-size: 0.9rem;
            white-space: nowrap;
        }
        
        td {
            padding: 10px 8px;
            border-bottom: 1px solid #eee;
            vertical-align: top;
            font-size: 0.9rem;
        }
        
        tr:hover {
            background-color: #f8f9fa;
        }
        
        .match-high { color: #27ae60; font-weight: bold; }
        .match-medium { color: #f39c12; font-weight: bold; }
        .match-low { color: #e74c3c; font-weight: bold; }
        
        .keywords {
            font-size: 0.8rem;
            color: #666;
            max-width: 150px;
            word-wrap: break-word;
        }
        
        .matched-keywords { color: #27ae60; }
        .missed-keywords { color: #e74c3c; }
        
        .stats {
            background: #ecf0f1;
            padding: 15px;
            border-radius: 5px;
            margin: 20px 0;
        }
        
        .tabs {
            display: flex;
            flex-wrap: wrap;
            margin-bottom: 20px;
            background: #ecf0f1;
            border-radius: 5px;
            padding: 5px;
        }
        
        .tab {
            flex: 1;
            min-width: 120px;
            padding: 12px 10px;
            text-align: center;
            cursor: pointer;
            border-radius: 3px;
            transition: all 0.3s;
            font-size: 0.9rem;
        }
        
        .tab.active {
            background: #3498db;
            color: white;
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }
        
        .designation-card {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 5px;
            padding: 15px;
            margin-bottom: 15px;
            transition: all 0.3s;
        }
        
        .designation-card:hover {
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .shortlisted-info {
            background: #e8f5e8;
            border: 1px solid #27ae60;
            border-radius: 5px;
            padding: 15px;
            margin: 20px 0;
        }
        
        .file-location {
            background: #fff3cd;
            border: 1px solid #ffc107;
            border-radius: 5px;
            padding: 15px;
            margin: 10px 0;
            font-family: monospace;
            font-size: 0.8rem;
            word-break: break-all;
        }
        
        .checkbox-group {
            display: flex;
            align-items: center;
            margin: 10px 0;
        }
        
        .checkbox-group input[type="checkbox"] {
            width: auto;
            margin-right: 10px;
            min-width: 20px;
            height: 20px;
        }
        
        .pdf-link {
            color: #3498db;
            text-decoration: none;
            word-break: break-word;
        }
        
        .pdf-link:hover {
            text-decoration: underline;
        }
        
        .debug-info, .test-copy {
            background: #ffeaa7;
            border: 1px solid #ffc107;
            border-radius: 5px;
            padding: 15px;
            margin: 20px 0;
            font-family: monospace;
            font-size: 0.8rem;
            word-break: break-all;
            overflow-x: auto;
        }
        
        .test-copy {
            background: #e8f4fd;
            border: 1px solid #3498db;
        }

        /* Tablet styles (768px and up) */
        @media (min-width: 768px) {
            body {
                padding: 20px;
            }
            
            .container {
                padding: 25px;
            }
            
            h1 {
                font-size: 2.2rem;
            }
            
            h2 {
                font-size: 1.6rem;
            }
            
            button {
                width: auto;
                display: inline-block;
                min-width: 120px;
            }
            
            .tabs {
                flex-wrap: nowrap;
            }
            
            .tab {
                min-width: auto;
                padding: 10px 20px;
                font-size: 1rem;
            }
            
            th, td {
                padding: 12px 15px;
                font-size: 1rem;
            }
            
            .keywords {
                max-width: 200px;
                font-size: 0.9rem;
            }
            
            .file-location, .debug-info, .test-copy {
                font-size: 14px;
            }
            
            .table-wrapper {
                margin: 20px 0;
            }
        }

        /* Desktop styles (1024px and up) */
        @media (min-width: 1024px) {
            body {
                padding: 20px;
            }
            
            .container {
                padding: 30px;
            }
            
            h1 {
                font-size: 2.5rem;
            }
            
            h2 {
                font-size: 1.8rem;
            }
            
            button {
                padding: 12px 25px;
                font-size: 14px;
            }
            
            th, td {
                padding: 15px;
            }
            
            table {
                min-width: auto;
            }
            
            .stats {
                padding: 20px;
            }
        }

        /* Large desktop styles (1200px and up) */
        @media (min-width: 1200px) {
            .keywords {
                max-width: 250px;
            }
        }

        /* Mobile-specific optimizations */
        @media (max-width: 767px) {
            /* Stack buttons vertically on mobile */
            .button-group {
                display: flex;
                flex-direction: column;
            }
            
            .button-group button {
                margin-right: 0;
                margin-bottom: 10px;
            }
            
            /* Improve touch targets */
            button, .tab {
                min-height: 44px;
            }
            
            /* Better mobile table experience */
            .table-mobile-view {
                display: block;
            }
            
            .table-mobile-view table,
            .table-mobile-view thead,
            .table-mobile-view tbody,
            .table-mobile-view th,
            .table-mobile-view td,
            .table-mobile-view tr {
                display: block;
            }
            
            .table-mobile-view thead tr {
                position: absolute;
                top: -9999px;
                left: -9999px;
            }
            
            .table-mobile-view tr {
                border: 1px solid #ccc;
                margin-bottom: 10px;
                padding: 10px;
                border-radius: 5px;
                background: white;
            }
            
            .table-mobile-view td {
                border: none;
                position: relative;
                padding: 8px 8px 8px 40%;
                word-wrap: break-word;
            }
            
            .table-mobile-view td:before {
                content: attr(data-label) ": ";
                position: absolute;
                left: 6px;
                width: 35%;
                padding-right: 10px;
                white-space: nowrap;
                font-weight: bold;
                color: #555;
            }
        }
        
        /* Print styles */
        @media print {
            body {
                background: white;
                padding: 0;
            }
            
            .container {
                box-shadow: none;
                border: 1px solid #ddd;
            }
            
            button {
                display: none;
            }
            
            .tabs {
                display: none;
            }
            
            .tab-content {
                display: block !important;
            }
        }
    </style>