/* ==========================================================================
   Neta India - listing toolbar (listing-toolbar.php): count, category filter, search.
   Own class names (lt-*) so directory.php / birthday.php keep their legacy toolbar.
   ========================================================================== */

/* ---------- Bar ---------- */
.lt-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 24px;
    padding: 4px 0 24px;
    margin-bottom: 26px;
    border-bottom: 1px solid #e3e9f5;
}
.lt-title {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.lt-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff9933, #ffb457);
    color: #0b1f4b;
    font-size: 21px;
    box-shadow: 0 10px 22px rgba(255, 153, 51, 0.35);
}
.lt-count {
    margin: 0;
    font-family: 'Lora', serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: #56617c;
}
.lt-count b {
    font-size: 34px;
    font-weight: 600;
    color: #0b1f4b;
    font-variant-numeric: tabular-nums;
}
.lt-status {
    margin: 3px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #66708c;
}
.lt-status .lt-all {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    color: #2451b7;
    cursor: pointer;
}
.lt-status .lt-all:hover { color: #a14d00; text-decoration: underline; }

/* ---------- Controls ---------- */
.lt-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.lt-select,
.lt-search {
    position: relative;
    display: flex;
    align-items: center;
    height: 50px;
    margin: 0;
    background: #f6f8fd;
    border: 1px solid #e3e9f5;
    border-radius: 30px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.lt-select:hover,
.lt-search:hover { border-color: #ffc98f; }
.lt-select:focus-within,
.lt-search:focus-within {
    background: #fff;
    border-color: #ff9933;
    box-shadow: 0 0 0 4px rgba(255, 153, 51, 0.18);
}
.lt-lead {
    flex: 0 0 auto;
    width: 20px;
    text-align: center;
    color: #e07b12;
    font-size: 15px;
    pointer-events: none;
}

/* category select: native <select> so it stays accessible and touch friendly */
.lt-select {
    min-width: 270px;
    padding: 0 16px 0 18px;
    gap: 10px;
}
.lt-select label {
    flex: 0 0 auto;
    margin: 0;
    color: #66708c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    pointer-events: none;
}
.lt-select select {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 24px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    color: #0b1f4b;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    cursor: pointer;
}
.lt-select select option:disabled { color: #b6bdd0; }
.lt-chev {
    position: absolute;
    right: 18px;
    top: 50%;
    margin-top: -9px;
    color: #56617c;
    font-size: 18px;
    line-height: 18px;
    pointer-events: none;
}

/* search */
.lt-search {
    width: 400px;
    max-width: 100%;
    padding: 0 6px 0 18px;
    gap: 10px;
}
.lt-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    color: #0b1f4b;
    font-size: 14px;
}
.lt-search input[type="search"]::-webkit-search-cancel-button,
.lt-search input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.lt-search input::placeholder { color: #9aa6c0; }
.lt-clear {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #e3e9f5;
    color: #56617c;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.lt-clear:hover { background: #ff9933; color: #fff; }
.lt-search.has-value .lt-clear { display: inline-flex; }
.lt-kbd {
    flex: 0 0 auto;
    min-width: 22px;
    padding: 1px 6px;
    border: 1px solid #d7dff0;
    border-bottom-width: 2px;
    border-radius: 6px;
    background: #fff;
    color: #66708c;
    font: 600 12px/18px 'Roboto', sans-serif;
    text-align: center;
    box-shadow: none;
}
.lt-search.has-value .lt-kbd,
.lt-search:focus-within .lt-kbd { display: none; }
.lt-go {
    flex: 0 0 auto;
    height: 38px;
    padding: 0 20px;
    border: 0;
    border-radius: 30px;
    background: linear-gradient(120deg, #2451b7, #ff9933);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(36, 81, 183, 0.22);
    transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .2s ease;
}
.lt-go:hover {
    background: linear-gradient(120deg, #ffd6a5, #ff9933);
    color: #0b1f4b;
    box-shadow: 0 8px 18px rgba(255, 153, 51, 0.35);
}
.lt-go:active { transform: scale(.97); }
.lt-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Active filter chips ---------- */
.lt-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: -8px 0 24px;
}
.lt-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 14px;
    border: 1px solid rgba(255, 153, 51, 0.45);
    border-radius: 20px;
    background: rgba(255, 153, 51, 0.13);
    color: #a14d00;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}
.lt-chip i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 153, 51, 0.3);
    font-size: 10px;
    transition: background .2s ease, color .2s ease;
}
.lt-chip:hover { background: rgba(255, 153, 51, 0.24); border-color: #ff9933; color: #a14d00; text-decoration: none; }
.lt-chip:hover i { background: #ff9933; color: #fff; }
.lt-clearall {
    margin-left: 4px;
    color: #2451b7;
    font-size: 12.5px;
    font-weight: 700;
}
.lt-clearall:hover { color: #a14d00; }

/* ---------- Empty states ---------- */
.lt-hide { display: none !important; }
.lt-empty {
    grid-column: 1 / -1;
    padding: 46px 20px 50px;
    text-align: center;
}
.lt-empty[hidden] { display: none; }
.lt-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.2), rgba(36, 81, 183, 0.12));
    color: #e07b12;
    font-size: 28px;
}
.lt-empty h3 {
    margin: 18px 0 6px;
    font-family: 'Lora', serif;
    font-size: 22px;
    font-weight: 600;
    color: #0b1f4b;
}
.lt-empty p {
    max-width: 420px;
    margin: 0 auto 20px;
    color: #56617c;
    font-size: 14.5px;
    line-height: 1.6;
}
.lt-empty-btn {
    display: inline-block;
    padding: 12px 26px;
    border: 0;
    border-radius: 30px;
    background: linear-gradient(120deg, #2451b7, #ff9933);
    color: #fff !important;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(36, 81, 183, 0.22);
    transition: background .25s ease, color .25s ease;
}
.lt-empty-btn:hover { background: linear-gradient(120deg, #ffd6a5, #ff9933); color: #0b1f4b !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .lt-controls { flex: 1 1 100%; }
    .lt-search { flex: 1 1 300px; width: auto; }
}
@media (max-width: 767px) {
    .lt-bar { padding-bottom: 20px; margin-bottom: 20px; }
    .lt-icon { width: 46px; height: 46px; border-radius: 15px; font-size: 18px; }
    .lt-count b { font-size: 28px; }
    .lt-controls { flex-direction: column; align-items: stretch; }
    .lt-select { min-width: 0; width: 100%; }
    .lt-search { width: 100%; flex-basis: auto; }
    .lt-kbd { display: none; }
    .lt-search { padding-left: 16px; gap: 8px; }
    .lt-go { height: 36px; padding: 0 14px; font-size: 12px; letter-spacing: .6px; }
}
@media (prefers-reduced-motion: reduce) {
    .lt-select, .lt-search, .lt-clear, .lt-go, .lt-chip { transition: none; }
}
