/* ==========================================================================
   GSTIN Search Pro — Frontend CSS
   Self-contained. No theme dependency.
   ========================================================================== */

/* ----- Checker Wrapper ----- */
.gstc-checker-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #334155;
    margin: 0;
    padding: 0;
}

/* ----- Form Row ----- */
.gstc-form-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: stretch;
}

/* ----- Input ----- */
.gstc-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}
.gstc-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

/* ----- Button ----- */
.gstc-btn {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #1e3a8a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, box-shadow .2s;
    line-height: 1.4;
}
.gstc-btn:hover,
.gstc-btn:focus {
    background: #1e40af;
    outline: none;
}
.gstc-btn:active {
    background: #1e3a8a;
}

/* ----- Result Area ----- */
.gstc-result-area {
    margin-top: 16px;
}
.gstc-result-area:empty {
    display: none;
}

/* ----- Inline result card (ajax-result.php) ----- */
.gstc-result-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.gstc-result-card table {
    width: 100%;
    border-collapse: collapse;
}
.gstc-result-card table td {
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: .95rem;
}
.gstc-result-card table tr:last-child td {
    border-bottom: none;
}
.gstc-result-card table td:first-child {
    color: #64748b;
    width: 38%;
    font-weight: 500;
}

/* ----- Status Badges ----- */
.gst-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
}
.gst-badge-success  { background: #f0fdf4; color: #16a34a; }
.gst-badge-danger   { background: #fef2f2; color: #dc2626; }
.gst-badge-secondary{ background: #f1f5f9; color: #64748b; }

/* ----- Result footer ----- */
.gst-result-footer  { padding: 12px 16px; background: #fff; border-top: 1px solid #e2e8f0; }
.gst-result-footer a.gstc-btn { text-decoration: none; display: inline-block; }
.gst-result-footer p { margin: 8px 0 0; font-size: .85rem; color: #64748b; }

/* ----- Loading / error states ----- */
.gst-loading { color: #64748b; padding: 12px 0; }
.gst-error   { color: #dc2626; padding: 8px 0; font-weight: 500; }

/* ----- Search-by-name form (gst_search_form shortcode) ----- */
.gstc-search-form-wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.gstc-search-form-wrap input[type="text"] {
    flex: 1; min-width: 200px; padding: 10px 14px;
    font-size: 1rem; border: 1px solid #cbd5e1; border-radius: 6px;
    outline: none; box-sizing: border-box;
}
.gstc-search-form-wrap input[type="text"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

@media (max-width: 480px) {
    .gstc-form-row, .gstc-search-form-wrap { flex-direction: column; }
    .gstc-btn { width: 100%; text-align: center; }
}
