/* ============================================================
   FDH License Verifier - Frontend Styles
   ============================================================ */

.fdh-lv-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.fdh-lv-form {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 30px;
}

.fdh-lv-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 20px;
}

.fdh-lv-form-row.full-width-row {
    grid-template-columns: 1fr;
}

.fdh-lv-form-row:last-of-type {
    margin-bottom: 0;
}

.fdh-lv-form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.fdh-lv-form-group.full-width {
    grid-column: 1 / -1;
    width: 100%;
}

.fdh-lv-form label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333333;
}

.fdh-lv-input,
.fdh-lv-select {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #ffffff;
    color: #333333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fdh-lv-input:focus,
.fdh-lv-select:focus {
    outline: none;
    border-color: #10284F;
    box-shadow: 0 0 0 3px rgba(16, 40, 79, 0.15);
}

.fdh-lv-input::placeholder {
    color: #999999;
}

.fdh-lv-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333333'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

.fdh-lv-form small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666666;
    font-weight: 400;
}

.fdh-lv-form-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.fdh-lv-btn {
    padding: 14px 36px;
    font-family: 'Archivo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fdh-lv-btn-search {
    background: var(--fdh-search-color, #E91E8C) !important;
    color: var(--fdh-search-text-color, #ffffff) !important;
    border: 2px solid var(--fdh-search-color, #E91E8C) !important;
}

.fdh-lv-btn-search:hover,
.fdh-lv-btn-search:focus {
    filter: brightness(0.9);
    text-decoration: none;
}

.fdh-lv-btn-search:focus-visible {
    outline: 3px solid var(--fdh-search-color, #E91E8C);
    outline-offset: 2px;
}

.fdh-lv-btn-reset {
    background: var(--fdh-reset-color, #ffffff) !important;
    color: var(--fdh-reset-text-color, #333333) !important;
    border: 2px solid var(--fdh-reset-border, #333333) !important;
}

.fdh-lv-btn-reset:hover,
.fdh-lv-btn-reset:focus {
    filter: brightness(0.95);
}

.fdh-lv-btn-reset:focus-visible {
    outline: 3px solid var(--fdh-reset-border, #333333);
    outline-offset: 2px;
}

/* ============================================================
   Results
   ============================================================ */

.fdh-lv-results {
    margin-top: 40px;
}

.fdh-lv-results-table {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.fdh-lv-results-table h3 {
    margin: 0;
    padding: 20px 30px;
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    font-size: 18px;
    font-weight: 700;
    color: #333333;
}

.fdh-lv-results-table table {
    width: 100%;
    border-collapse: collapse;
}

.fdh-lv-results-table thead {
    background: #f5f5f5;
}

.fdh-lv-results-table th {
    padding: 14px 15px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #333333;
    border-bottom: 1px solid #e0e0e0;
}

.fdh-lv-results-table td {
    padding: 14px 15px;
    font-size: 15px;
    color: #555555;
    border-bottom: 1px solid #f0f0f0;
}

.fdh-lv-results-table tbody tr:hover {
    background: #fafafa;
}

.fdh-lv-result-row {
    cursor: pointer;
}

.fdh-lv-result-row:hover {
    background: #f0f7f9 !important;
}

.fdh-lv-result-row:focus {
    outline: 2px solid #0E7C8C;
    outline-offset: -2px;
}

.fdh-lv-view-cell {
    color: #0E7C8C;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

.fdh-lv-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.fdh-lv-status-clear-active {
    background: #E8F5E9;
    color: #2E7D32;
}

.fdh-lv-status-active {
    background: #E8F5E9;
    color: #2E7D32;
}

.fdh-lv-status-null-and-void,
.fdh-lv-status-retired,
.fdh-lv-status-expired {
    background: #EDEBE9;
    color: #3E2723;
}

.fdh-lv-status-delinquent,
.fdh-lv-status-suspended,
.fdh-lv-status-revoked {
    background: #FDECEA;
    color: #C62828;
}

.fdh-lv-status-inactive,
.fdh-lv-status-probation {
    background: #FFF3E0;
    color: #E65100;
}

/* ============================================================
   License Detail View (matches reference MQA license lookup)
   ============================================================ */

.fdh-lv-detail {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 30px;
}

.fdh-lv-back-top {
    margin-bottom: 20px;
}

.fdh-lv-detail-name {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #0E7C8C;
    letter-spacing: 0.01em;
}

.fdh-lv-detail-license-num {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: #0E7C8C;
}

.fdh-lv-detail-dataof {
    margin: 0 0 20px;
    font-size: 13px;
    color: #666666;
}

.fdh-lv-detail-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 24px;
}

.fdh-lv-tab {
    padding: 12px 20px;
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: #0E7C8C;
    border: none;
    border-radius: 3px 3px 0 0;
    cursor: pointer;
    transition: background 0.15s ease;
}

.fdh-lv-tab:hover {
    background: #0B6672;
}

.fdh-lv-tab.active {
    background: #E4761B;
}

.fdh-lv-tab-content {
    display: none;
}

.fdh-lv-tab-content.active {
    display: block;
}

.fdh-lv-info-table {
    width: 100%;
    border-collapse: collapse;
}

.fdh-lv-info-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.fdh-lv-info-table th {
    text-align: right;
    vertical-align: top;
    padding: 10px 20px 10px 0;
    width: 240px;
    font-size: 14px;
    font-weight: 600;
    color: #0E7C8C;
    white-space: nowrap;
}

.fdh-lv-info-table td {
    text-align: left;
    padding: 10px 0;
    font-size: 15px;
    color: #333333;
}

.fdh-lv-empty-note {
    color: #666666;
    font-style: italic;
}

.fdh-lv-secondary-list {
    font-size: 15px;
    color: #333333;
    line-height: 1.6;
}

.fdh-lv-tab-content h4 {
    margin: 20px 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #0E7C8C;
}

.fdh-lv-tab-content h4:first-child {
    margin-top: 0;
}

.fdh-lv-tab-content p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
}

.fdh-lv-link {
    color: #0E7C8C;
    font-weight: 600;
    text-decoration: underline;
}

.fdh-lv-tab-content hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 20px 0;
}

.fdh-lv-detail-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.fdh-lv-back-btn {
    padding: 10px 28px;
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: #0E7C8C;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.fdh-lv-back-btn:hover {
    background: #0B6672;
}

@media (max-width: 600px) {
    .fdh-lv-detail {
        padding: 20px;
    }

    .fdh-lv-info-table th {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0 2px;
    }

    .fdh-lv-info-table td {
        display: block;
        padding: 0 0 10px;
    }

    .fdh-lv-tab {
        flex: 1 1 auto;
        font-size: 12px;
        padding: 10px 8px;
        text-align: center;
    }
}

/* ============================================================
   Error/Loading States
   ============================================================ */

.fdh-lv-error {
    background: #f8d7da;
    color: #721c24;
    padding: 14px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.fdh-lv-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    .fdh-lv-form {
        padding: 20px;
    }

    .fdh-lv-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fdh-lv-form-buttons {
        flex-direction: column;
    }

    .fdh-lv-btn {
        width: 100%;
    }

    .fdh-lv-results-table {
        overflow-x: auto;
    }

    .fdh-lv-results-table th,
    .fdh-lv-results-table td {
        padding: 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .fdh-lv-container {
        padding: 15px 10px;
    }

    .fdh-lv-form {
        padding: 15px;
    }

    .fdh-lv-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fdh-lv-input,
    .fdh-lv-select,
    .fdh-lv-btn {
        transition: none;
    }
}
