* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #333;
    background: #f5f7fa;
    padding: 20px;
}

#app {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Loading State */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #5a67f2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.error-container {
    text-align: center;
    padding: 60px 20px;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.error-container h3 {
    color: #e74c3c;
    margin-bottom: 10px;
    font-size: 20px;
}

.error-container p {
    color: #666;
    margin-bottom: 30px;
}

/* Success State */
.success-container {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.success-container h3 {
    color: #27ae60;
    margin-bottom: 10px;
    font-size: 20px;
}

.success-container p {
    color: #666;
    margin-bottom: 30px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    background: #fafbfc;
}

.header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #e0e0e0;
    color: #333;
}

/* Search Criteria */
.search-criteria {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.search-criteria h3 {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
}

.search-tag {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    font-size: 13px;
}

.search-tag strong {
    color: #333;
}

.search-tag span {
    color: #5a67f2;
    margin-left: 5px;
}

/* Data Table */
.data-table {
    padding: 20px 30px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f8f9fa;
}

th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #666;
    border-bottom: 2px solid #e0e0e0;
}

th.checkbox-column {
    width: 50px;
    text-align: center;
}

td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

td.checkbox-cell {
    text-align: center;
}

.field-name {
    color: #333;
    font-weight: 500;
}

.existing-value {
    color: #999;
    font-style: italic;
}

.existing-value.has-value {
    color: #666;
    font-style: normal;
}

.enriched-value {
    color: #27ae60;
    font-weight: 500;
}

.enriched-value.highlight {
    background: #e8f5e9;
    padding: 4px 8px;
    border-radius: 4px;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #5a67f2;
}

tr:hover {
    background: #fafbfc;
}

/* Footer */
.footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    background: #fafbfc;
}

.feedback-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Buttons */
button {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #5a67f2;
    color: white;
}

.btn-primary:hover {
    background: #4854d9;
    box-shadow: 0 2px 8px rgba(90, 103, 242, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: white;
    color: #666;
    border: 1px solid #d0d0d0;
}

.btn-secondary:hover {
    background: #f5f5f5;
    border-color: #b0b0b0;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header, .search-criteria, .data-table, .footer {
        padding: 15px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px;
    }

    .action-buttons {
        flex-direction: column;
    }

    button {
        width: 100%;
    }
}
