/* ============================================================
   genotype-search.css — Genotype Search page
   ============================================================ */

.gs-page {
    padding: 30px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ---- Header ---- */
.gs-header { margin-bottom: 24px; }

.gs-header h1 {
    font-size: 1.6rem;
    color: #005068;
    margin: 0 0 6px;
}

.gs-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* ---- Search box ---- */
.gs-search-box {
    background: #f5fafd;
    border: 1px solid #d0e8f0;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.gs-form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gs-inline-label {
    font-weight: 600;
    color: #005068;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.gs-field { display: flex; flex-direction: column; }
.gs-field-grow { flex: 1; }

.gs-select {
    padding: 9px 12px;
    border: 1px solid #b0cdd8;
    border-radius: 6px;
    font-size: 0.92rem;
    background: #fff;
    color: #333;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 180px;
}
.gs-select:focus { border-color: #005068; box-shadow: 0 0 0 3px rgba(0,80,104,0.1); }

.gs-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gs-input {
    flex: 1;
    max-width: 400px;
    padding: 9px 14px;
    border: 1px solid #b0cdd8;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}
.gs-input:focus { border-color: #005068; box-shadow: 0 0 0 3px rgba(0,80,104,0.1); }

.btn-gs-search {
    background: #005068;
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background 0.2s;
}
.btn-gs-search:hover { background: #007a9a; }

.btn-gs-search:disabled { background: #aaa; cursor: not-allowed; }

/* ---- Import Box ---- */
.gs-import-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
}

.gs-import-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.gs-file-input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-gs-import {
    background: #0066cc;
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.btn-gs-import:hover { background: #0052a3; }
.btn-gs-import:disabled { background: #aaa; cursor: not-allowed; }

.btn-gs-search:disabled { background: #aaa; cursor: not-allowed; }

.gs-export-bar { margin-top: 14px; text-align: right; }

.btn-gs-export {
    background: #1d6f42;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background 0.2s;
}
.btn-gs-export:hover { background: #28a25f; }

/* ---- States ---- */
.gs-loading, .gs-empty, .gs-error {
    text-align: center;
    padding: 50px 20px;
    color: #888;
    font-size: 1rem;
}
.gs-loading i, .gs-empty i { font-size: 2rem; display: block; margin-bottom: 12px; color: #bbb; }
.gs-error { color: #c62828; }
.gs-error i { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.gs-no-geno {
    color: #888;
    font-size: 0.95rem;
    padding: 16px 0;
}
.gs-no-geno i { margin-right: 6px; color: #aaa; }

/* ---- Result header ---- */
.gs-result-header {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.gs-result-header i { margin-right: 6px; }

/* ---- Section titles ---- */
.gs-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #005068;
    margin: 28px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e0eef4;
    padding-bottom: 6px;
}

.gs-row-count {
    background: #e0f0f7;
    color: #005068;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 4px;
}

/* ---- Tables ---- */
.gs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 8px;
}

.gs-table thead th {
    background: #005068;
    color: #fff;
    padding: 9px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gs-table tbody tr { border-bottom: 1px solid #f0f0f0; transition: background 0.15s; }
.gs-table tbody tr:last-child { border-bottom: none; }
.gs-table tbody tr:hover { background: #f5fafd; }
.gs-table td { padding: 9px 12px; vertical-align: middle; }
.gs-table td.num { text-align: right; font-variant-numeric: tabular-nums; color: #555; }

/* ---- Sample COD ---- */
.gs-sample-cod { font-weight: 600; color: #005068; }

/* ---- Species badge ---- */
.gs-species-badge {
    display: inline-block;
    background: #005068;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.03em;
}
.gs-species-name { color: #666; font-size: 0.85rem; }

/* ---- Result preview ---- */
.gs-result-cell { max-width: 550px; }

.gs-result-preview {
    font-family: 'Courier New', monospace;
    font-size: 0.76rem;
    background: #f4f4f4;
    padding: 3px 7px;
    border-radius: 4px;
    color: #333;
    word-break: break-all;
}

.gs-truncated {
    color: #e65100;
    font-size: 0.76rem;
    margin-left: 6px;
    font-style: italic;
}
