tr/* Modern Dark Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: #e2e8f0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(99, 102, 241, 0.3);
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 18px;
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 15px;
}

.loading-warning {
    font-size: 14px;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
}

.stop-button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin: 15px auto 0;
}

.stop-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.container {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

/* Filter Panel */
.filter-panel {
    width: 320px;
    background: linear-gradient(145deg, #1e1e2e, #2a2a3e);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.filter-panel h2 {
    margin-bottom: 24px;
    color: #f8fafc;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.filter-group select option {
    background: #1e1e2e;
    color: #e2e8f0;
}

.checkbox-group {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    accent-color: #6366f1;
}

.checkbox-item label {
    font-size: 13px;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.checkbox-item label:hover {
    color: #f8fafc;
}

.apply-button,
.generate-button {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.apply-button {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.apply-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.generate-button {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.generate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Results Panel */
.results-panel {
    flex: 1;
    background: linear-gradient(145deg, #1e1e2e, #2a2a3e);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.results-count {
    font-size: 16px;
    font-weight: 600;
    color: #f8fafc;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-subtitle {
    font-size: 12px;
    color: #cbd5e1;
    margin-top: 4px;
    font-weight: 400;
}

.results-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.results-controls label {
    font-size: 14px;
    color: #cbd5e1;
    white-space: nowrap;
    font-weight: 500;
}

.results-controls select {
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: black;
    transition: all 0.3s ease;
}

.results-controls select option {
    background: white;
    color: black;
}

.results-controls select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.table-container {
    flex: 1;
    overflow: auto;
    padding: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

thead {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #2a2a3e, #1e1e2e);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

th, td {
    padding: 8px 6px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 150px;
}

th {
    font-weight: 700;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 10px 6px;
}

td {
    color: #cbd5e1;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: background-color 0.2s ease;
    vertical-align: middle;
    line-height: 1.4;
}

/* Expand email, phone, and LinkedIn columns to show full "✓ Found (Scrape To Reveal)" text */
td:nth-child(4), /* Email column */
td:nth-child(5), /* Phone column */
td:nth-child(10) { /* LinkedIn column */
    max-width: 200px;
    min-width: 180px;
}

td:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* Text truncation popup */
.text-popup {
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-width: 400px;
    word-wrap: break-word;
    white-space: normal;
    font-size: 14px;
    line-height: 1.5;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-popup.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.found {
    color: #10b981;
    font-weight: 600;
}

.not-found {
    color: #ef4444;
    font-weight: 600;
}

/* Table improvements for full display */
.table-container {
    flex: 1;
    overflow: auto;
    padding: 0;
    max-width: 100%;
}

/* Ensure table takes full width and allows horizontal scrolling */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 2000px; /* Ensure minimum width for all columns */
}

/* Custom scrollbar for dark theme */
.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

/* Firefox scrollbar */
.table-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.5) rgba(255, 255, 255, 0.05);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.page-button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.page-button:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#page-info {
    font-size: 14px;
    color: #cbd5e1;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(145deg, #1e1e2e, #2a2a3e);
    margin: 5% auto;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.close {
    color: #cbd5e1;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #f8fafc;
}

.modal-content h3 {
    color: #f8fafc;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#json-output {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    line-height: 1.5;
}

.copy-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Apify Modal Styles */
.modal-section {
    margin-bottom: 20px;
}

.modal-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #cbd5e1;
}

.modal-section input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.modal-section input[type="number"]:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.modal-section h4 {
    color: #f8fafc;
    margin-bottom: 10px;
    font-size: 16px;
}

.modal-section ol {
    color: #cbd5e1;
    padding-left: 20px;
}

.modal-section li {
    margin-bottom: 5px;
    line-height: 1.4;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.cancel-button {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cancel-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    .filter-panel {
        width: 100%;
        max-height: 400px;
    }

    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding: 20px;
    }

    .table-container {
        overflow-x: auto;
    }

    table {
        min-width: 1200px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .filter-panel {
        padding: 20px;
        max-height: 300px;
    }

    .results-header {
        padding: 16px;
    }

    .table-container {
        padding: 0 10px;
    }

    th, td {
        padding: 10px 8px;
        font-size: 12px;
    }

    .pagination {
        padding: 16px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .page-button {
        padding: 8px 16px;
        font-size: 13px;
    }

    .modal-content {
        margin: 5px auto;
        padding: 15px;
        width: calc(100vw - 10px);
        max-width: calc(100vw - 10px);
        max-height: calc(100vh - 10px);
        border-radius: 8px;
        overflow-y: auto;
    }

    .modal-content h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    #json-output {
        font-size: 10px;
        padding: 10px;
        margin: 10px 0;
        max-height: 50vh;
        overflow-y: auto;
    }

    .copy-button {
        padding: 8px 16px;
        font-size: 12px;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 8px;
        margin-top: 15px;
    }

    .modal-buttons button {
        width: 100%;
    }

    .modal-section {
        margin-bottom: 15px;
    }

    .modal-section input[type="number"] {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Header with Logo */
.app-header {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.contact-info {
    margin-top: 10px;
    font-size: 14px;
    color: #cbd5e1;
}

.contact-text {
    font-weight: 500;
}

.contact-email {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-email:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

/* Instructions Section */
.instructions-section {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
}

.instructions-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.instructions-content h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #f8fafc;
    font-size: 1.5rem;
    font-weight: 600;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.instruction-item {
    background: rgba(42, 42, 62, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.instruction-item:hover {
    background: rgba(42, 42, 62, 0.7);
    transform: translateY(-2px);
}

.instruction-item strong {
    color: #60a5fa;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.instruction-item p {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* New Layout - Filters above results */
.filters-section {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
}

.filters-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Email Filter Message */
.email-filter-message {
    background: linear-gradient(145deg, #1e1e2e, #2a2a3e);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
    margin: 20px;
    padding: 16px 0;
}


.email-filter-inner {
    background: rgba(99, 102, 241, 0.05);
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 8px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.email-filter-inner:last-child {
    margin-bottom: 0;
}

.email-filter-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #cbd5e1;
    font-size: 14px;
    text-align: center;
}


.results-section {
    background: linear-gradient(145deg, #1e1e2e, #2a2a3e);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Collapsible Filter Groups */
.filter-group-collapsible {
    background: rgba(42, 42, 62, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.filter-group-collapsible.collapsed {
    background: rgba(42, 42, 62, 0.3);
}

.filter-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.filter-group-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8fafc;
}

.filter-group-toggle {
    font-size: 1.2rem;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.filter-group-content {
    padding: 20px;
    display: block;
    transition: all 0.3s ease;
}

.filter-item {
    margin-bottom: 20px;
}

.filter-item:last-child {
    margin-bottom: 0;
}

.filter-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-item select,
.filter-item input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.filter-item select:focus,
.filter-item input[type="text"]:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.filter-item select option {
    background: #1e1e2e;
    color: #e2e8f0;
}

.filter-item .checkbox-group {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.filter-item .checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.filter-item .checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    accent-color: #6366f1;
}

.filter-item .checkbox-item label {
    font-size: 13px;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.filter-item .checkbox-item label:hover {
    color: #f8fafc;
}

/* Keyword Input Styles */
.keyword-container {
    margin-top: 8px;
}

.keyword-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.keyword-input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.keyword-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.keyword-input::placeholder {
    color: #94a3b8;
}

.delete-keyword-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background: rgba(239, 68, 68, 0.8);
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.delete-keyword-btn:hover {
    background: #ef4444;
    transform: scale(1.1);
}

.add-keyword-btn {
    padding: 6px 12px;
    border: 2px solid rgba(99, 102, 241, 0.5);
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 4px;
}

.add-keyword-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
}

/* Responsive updates for new layout */
@media (max-width: 1024px) {
    .instructions-grid {
        grid-template-columns: 1fr;
    }

    .filters-container {
        padding: 0 15px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .results-section {
        margin: 15px;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }

    .instructions-section {
        padding: 20px 0;
    }

    .instructions-content {
        padding: 0 15px;
    }

    .filters-section {
        padding: 20px 0;
    }

    .filter-group-header {
        padding: 12px 16px;
    }

    .filter-group-content {
        padding: 16px;
    }

    .results-section {
        margin: 10px;
    }
}