/* DCAT-AP CH Keyword Generator - Style based on I14Y harmgraph project */
/* Adopted from: https://github.com/I14Y-ch/harmgraph */

:root {
    --primary-color: #dc0018;
    --text-color: #15141A;
    --secondary-text: #5B5B66;
    --background-light: #F0F0F4;
    --border-color: #e0e0e0;
    --header-height: 83px;
}

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

html {
    font-size: 14px;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', "Helvetica Neue", sans-serif;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f4 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
header {
    background: white;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 5px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-wrapper {
    max-width: none;
    width: 100%;
    height: 83px;
    margin: 0;
    padding: 10px 24px;
}

.layout-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    width: 100%;
}

.brand-left {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: auto;
    width: 112px;
    margin-right: 0;
    padding: 20px 15px;
}

.header-title {
    font-family: Roboto, sans-serif;
    font-size: 26.4px;
    color: rgb(117, 117, 117);
    margin: 0;
    padding-left: 20px;
    border-left: 1px solid lightgrey;
    font-weight: 400;
}

/* Main content */
main {
    margin-top: var(--header-height);
    padding-top: 32px;
    min-height: calc(100vh - var(--header-height));
}

.container {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 48px 1.5rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-family: Roboto, sans-serif;
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 400;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.03em;
}

.page-lead {
    font-size: 1.25em;
    color: var(--secondary-text);
    font-weight: 400;
    line-height: 1.6;
}

/* Search section */
.search-section {
    padding: 40px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.search-input {
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.1em;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 0, 24, 0.1);
}

.search-btn {
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 200px;
}

.search-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 0, 24, 0.3);
}

.search-btn.secondary {
    background: var(--primary-color);
}

.search-btn.secondary:hover:not(:disabled) {
    box-shadow: 0 10px 25px rgba(220, 0, 24, 0.3);
}

.search-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-count {
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

/* Keyword cards */
.keyword-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.keyword-card {
    background: white;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 10px;
    transition: all 0.2s ease;
    position: relative;
    cursor: grab;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.keyword-card:hover {
    border-color: #3182ce;
    transform: translateX(3px);
}

.keyword-card.selected {
    border-color: #059669;
    background: #ecfdf5;
    box-shadow: 0 2px 8px rgba(5,150,105,0.2);
}

.keyword-source {
    font-size: 0.9em;
    font-weight: 700;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    margin-bottom: 8px;
    align-self: flex-start;
}

.keyword-source.source-termdat { background: #059669; }
.keyword-source.source-gemet { background: #7c3aed; }
.keyword-source.source-wikidata { background: #2563eb; }
.keyword-source.source-existing { background: #64748b; }

.keyword-title {
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    word-break: break-word;
    line-height: 1.4;
}

.keyword-description {
    font-size: 0.9em;
    color: #6b7280;
    margin: 0;
}

.keyword-uri {
    font-size: 0.85em;
    margin: 4px 0 0 0;
    color: #666;
}

.keyword-uri a {
    color: #3182ce;
    text-decoration: none;
}

.keyword-uri a:hover {
    text-decoration: underline;
}

.keyword-meta {
    font-size: 0.85em;
    color: #888;
    margin: 4px 0 0 0;
}

.icon-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.2em;
    cursor: pointer;
    padding: 2px 6px;
    transition: all 0.2s ease;
    border-radius: 3px;
    flex-shrink: 0;
}

.icon-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Language tags */
.language-indicators {
    display: flex;
    gap: 5px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.lang-tag {
    background: #e2e8f0;
    color: #475569;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.lang-tag.current {
    background: var(--primary-color);
    color: white;
}

/* Footer */
footer {
    background: #f7f7f7;
    padding: 2rem 0;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.footer-content {
    width: 100%;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links h3 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-info {
    margin-left: auto;
    color: #666;
    font-size: 0.875rem;
}

.footer-info p {
    margin: 0;
    align-self: flex-end;
}

/* Loading states */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--secondary-text);
}

.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Error states */
.error {
    background: #fee2e2;
    color: #dc2626;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #dc2626;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

/* Status messages */
.status {
    margin: 15px 0;
    padding: 12px 16px;
    font-size: 14px;
    color: #2c3e50;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f9ff 100%);
    border: 1px solid #bee3f8;
    border-radius: 8px;
    border-left: 4px solid #3182ce;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    animation: statusSlideIn 0.3s ease-out;
}

.status::before {
    content: "🔍";
    margin-right: 8px;
    font-size: 16px;
}

/* Workflow status timeline */
.status-panel-card {
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.status-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.status-panel-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0f172a;
    margin-bottom: 4px;
}

.status-panel-summary {
    font-size: 0.95rem;
    color: #0f172a;
}

.status-panel-card .spinner {
    margin: 0;
}

.status-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.status-step {
    position: relative;
    padding-left: 28px;
    padding-top: 6px;
    padding-bottom: 6px;
    border-left: 2px solid #cbd5f5;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.status-content {
    display: flex;
    flex-direction: column;
}

.status-step .status-title {
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 2px 0;
}

.status-step .status-detail {
    font-size: 0.85rem;
    color: #475569;
}

.status-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #cbd5f5;
    left: -7px;
    top: 12px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.status-step.pending {
    opacity: 0.75;
}

.status-step.current {
    border-left-color: #2563eb;
    opacity: 1;
}

.status-step.current .status-dot {
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
    transform: scale(1.15);
}

.status-step.done {
    border-left-color: #0ea5e9;
    opacity: 1;
}

.status-step.done .status-dot {
    background: #0ea5e9;
}

.status-panel-card.status-panel-error {
    border-color: #fecaca;
    background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
}

.status-panel-card.status-panel-error .status-panel-title,
.status-panel-card.status-panel-error .status-panel-summary {
    color: #b91c1c;
}

.status-panel-card.status-panel-error .status-dot {
    background: #dc2626;
}

@keyframes statusSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Beta Badge */
.beta-badge {
    position: fixed;
    top: 50px;
    right: -5px;
    z-index: 10000;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 8px 40px;
    text-transform: uppercase;
    box-shadow: -3px 3px 8px rgba(0, 0, 0, 0.3);
    transform: translateX(20%) translateY(20%) rotate(45deg);
    transform-origin: top right;
    letter-spacing: 1px;
    pointer-events: none;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 0 20px;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #000;
}

.modal h3 {
    margin-top: 0;
    color: #333;
}

.modal ol {
    padding-left: 20px;
}

.modal li {
    margin-bottom: 10px;
}

.modal a {
    color: var(--primary-color);
    text-decoration: none;
}

.modal a:hover {
    text-decoration: underline;
}

/* Info icon */
.info-icon {
    display: inline-block;
    margin-left: 8px;
    width: 18px;
    height: 18px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    cursor: pointer;
    vertical-align: middle;
}

.info-icon:hover {
    background-color: #b30014;
}

/* Responsive layout */
@media (max-width: 960px) {
    .main-content {
        flex-direction: column;
        min-height: calc(100vh - 320px);
    }

    .content-area {
        width: 100%;
        flex: 1;
        min-height: 60vh;
    }

    .info-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
    }
    
    .page-header h1 {
        font-size: 2em;
    }
    
    .keyword-grid {
        grid-template-columns: 1fr;
    }
    
    .beta-badge {
        font-size: 1rem;
        padding: 6px 30px;
    }
    
    .container {
        padding: 2rem 24px 1rem;
    }
    
    .footer-content {
        padding: 0 24px;
    }
}

/* Additional utility classes */
.synonym-result {
    border-left: 3px solid #28a745 !important;
}

.synonym-indicator {
    margin-bottom: 8px;
}
/* Welcome page workflow cards */
.workflow-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.workflow-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.workflow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-color);
}

.workflow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), 0 12px 24px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.workflow-title {
    font-family: Roboto, sans-serif;
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.workflow-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.workflow-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.workflow-features li {
    padding: 0.5rem 0;
    color: var(--secondary-text);
    font-size: 0.95rem;
}

.workflow-features li::before {
    content: "✓ ";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 8px;
}

.workflow-button {
    display: inline-block;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.workflow-button:hover {
    background: #b30014;
    transform: scale(1.02);
}

/* Refine workflow step indicator */
.step-indicator-bar {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 25px 0;
    position: relative;
    border: 1px solid #e2e8f0;
}

.step-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #059669 100%);
    border-radius: 8px 0 0 0;
    transition: width 0.5s ease;
}

.step-text {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.select-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-btn:hover {
    background: #b30014;
    transform: scale(1.05);
}

/* Keyword comparison layout */
.keyword-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.selection-info {
    background: #e8f4fd;
    border-left: 4px solid #3182ce;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #1e40af;
}

@media (max-width: 768px) {
    .keyword-comparison {
        grid-template-columns: 1fr;
    }
}

/* Step Navigation Styles */

/* Keyword Card Styles for Step 3 */
.keyword-card {
    border: 2px solid transparent;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    cursor: move;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.keyword-card.selected {
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(5,150,105,0.15);
}
.keyword-card-header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
}
.keyword-title {
    font-weight: 700;
    color: #1f2937;
}
.keyword-source {
    font-size: 0.8em;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 600;
}
.keyword-source.source-termdat {
    background: #dbeafe;
    color: #1e40af;
}
.keyword-source.source-gemet {
    background: #d1fae5;
    color: #065f46;
}
.keyword-source.source-wikidata {
    background: #fce7f3;
    color: #9f1239;
}
.keyword-source.source-existing {
    background: #f3f4f6;
    color: #374151;
}
.keyword-uri {
    margin-top: 6px;
    font-family: monospace;
    font-size: 0.85em;
    color: #4b5563;
    word-break: break-all;
}
.keyword-uri a {
    color: #2563eb;
    text-decoration: none;
}
.keyword-uri a:hover {
    text-decoration: underline;
}
.keyword-meta {
    margin-top: 8px;
    font-size: 0.85em;
    color: #111827;
    background: #f1f5f9;
    padding: 8px 10px;
    border-radius: 6px;
}
.icon-btn {
    border: none;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 999px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
}
.icon-btn:hover {
    background: #fecaca;
}

/* Refine Page Styles */
.back-link {
    display: inline-flex;
    align-items: center;
    color: #3182ce;
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.back-link:hover {
    text-decoration: underline;
}

.back-link::before {
    content: "← ";
    margin-right: 5px;
}

.workflow-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.section-description {
    color: #666;
    margin-bottom: 20px;
}

.keyword-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.selection-info {
    background: #e8f4fd;
    border-left: 4px solid #3182ce;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #1e40af;
}

/* Upload Page Styles */
.tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
}
.tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}
.tab.active {
    border-bottom-color: #4c63d2;
    color: #4c63d2;
}
.tab:hover {
    background-color: #f8fafc;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

.keyword-label {
    font-weight: 600;
    margin-bottom: 5px;
}

.input-field {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}
.input-field:focus {
    border-color: #4c63d2;
    outline: none;
}
.action-btn {
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}
.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 0, 24, 0.3);
}
.action-btn.secondary {
    background: var(--primary-color);
}
.action-btn.secondary:hover {
    box-shadow: 0 5px 15px rgba(220, 0, 24, 0.3);
}

.success-message {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.success-message a {
    color: #059669;
    font-weight: 600;
}

.language-indicators {
    margin: 8px 0;
    font-size: 0.85em;
}

.lang-tag {
    background: #e2e8f0;
    color: #475569;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 600;
    margin-right: 5px;
}

/* Filter input styling to match search input */
.filter-input {
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: text;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(16,24,40,0.06), 0 0 0 3px rgba(220,0,24,0.08);
}

.filter-input:hover:not(:focus) {
    border-color: #cbd5e1;
}

.filter-select {
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(16,24,40,0.06), 0 0 0 3px rgba(220,0,24,0.08);
}

.filter-select:hover:not(:focus) {
    border-color: #cbd5e1;
}

/* Filter container and labels to match search area */
.filters-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filters-row .filter-group {
    display: flex;
    flex-direction: column;
}

.filters-row label {
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}

.filter-input,
.filter-select {
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    min-width: 200px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-input::placeholder {
    color: #94a3b8;
    font-style: italic;
}

/* Datalist styling for organization autocomplete */
#orgFilter {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

#orgFilter:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23dc0018' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(16,24,40,0.06), 0 0 0 3px rgba(220,0,24,0.08);
}

/* Make filters visually aligned with search controls */

/* Checkbox option styling for workflow 2 */
.search-options {
    background: white;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin: 10px 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-options:hover {
    border-color: #cbd5e1;
}

.search-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
}

.search-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.search-options span {
    user-select: none;
}

/* Keyword Summary spacing */
#keywordSummary {
    margin-bottom: 1rem;
}
