
:root {
    --lb-bg:         transparent;
    --lb-surface:    rgba(0,0,0,0.06);
    --lb-border:     rgba(0,0,0,0.15);
    --lb-accent:     #0099bb;
    --lb-accent2:    #cc4400;
    --lb-gold:       #b8860b;
    --lb-silver:     #707888;
    --lb-bronze:     #8b5a2b;
    --lb-text:       #1a1a1a;
    --lb-muted:      #666;
    --lb-success:    #1a7a52;
    --lb-error:      #cc2233;
    --lb-radius:     6px;
    --lb-font:       Helvetica, Arial, sans-serif;
    --lb-font-mono:  'Courier New', Courier, monospace;
}

.nvlb-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.nvlb-search-wrap {
    flex: 1 1 220px;
}

#nvlb-search {
    width: 100%;
    background: #fff;
    border: 1px solid var(--lb-border);
    border-radius: var(--lb-radius);
    color: var(--lb-text);
    font-family: var(--lb-font);
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
#nvlb-search:focus { border-color: var(--lb-accent); }
#nvlb-search::placeholder { color: var(--lb-muted); }

.nvlb-loading {
    text-align: center;
    padding: 2.5rem;
    color: var(--lb-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}
.nvlb-spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid var(--lb-border);
    border-top-color: var(--lb-accent);
    border-radius: 50%;
    animation: lb-spin 0.7s linear infinite;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }

.nvlb-table-scroll { overflow-x: auto; }

table.nvlb-lb {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

table.nvlb-lb thead tr {
    background: var(--lb-surface);
    border-bottom: 2px solid var(--lb-accent);
}

table.nvlb-lb thead th {
    font-family: var(--lb-font);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lb-accent);
    padding: 0.7rem 1rem;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}
table.nvlb-lb thead th:hover { color: #000; }
table.nvlb-lb thead th.sorted-asc::after  { content: ' ↑'; }
table.nvlb-lb thead th.sorted-desc::after { content: ' ↓'; }

table.nvlb-lb tbody tr {
    border-bottom: 1px solid var(--lb-border);
    transition: background 0.12s;
}
table.nvlb-lb tbody tr:hover { background: rgba(0,153,187,0.06); }

table.nvlb-lb tbody td {
    padding: 0.65rem 1rem;
    color: var(--lb-text);
    text-align: center;
}

#nvlb-lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex; align-items: center; justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(4px);
    animation: lb-fade-in 0.15s ease;
}
#nvlb-lightbox img {
    max-width: 92vw; max-height: 88vh;
    border-radius: 6px;
    box-shadow: 0 0 60px rgba(0,0,0,0.6);
}
#nvlb-lightbox-close {
    position: absolute; top: 1.2rem; right: 1.5rem;
    font-size: 2rem; color: #fff; cursor: pointer;
    line-height: 1; opacity: 0.7;
    transition: opacity 0.15s;
}
#nvlb-lightbox-close:hover { opacity: 1; }
@keyframes lb-fade-in { from { opacity: 0; } to { opacity: 1; } }


.nvlb-field {
    margin-bottom: 1.2rem;
}

.nvlb-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lb-muted);
    margin-bottom: 0.4rem;
}
.nvlb-field label .req      { color: var(--lb-accent2); }
.nvlb-field label .optional { font-weight: 400; text-transform: none; letter-spacing: 0; }

.nvlb-field input[type="text"],
.nvlb-field textarea {
    width: 100%;
    background: #fff;
    border: 1px solid var(--lb-border);
    border-radius: var(--lb-radius);
    color: var(--lb-text);
    font-family: var(--lb-font);
    font-size: 0.95rem;
    padding: 0.6rem 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.nvlb-field input:focus,
.nvlb-field textarea:focus { border-color: var(--lb-accent); }
.nvlb-field input::placeholder,
.nvlb-field textarea::placeholder { color: #aaa; }

.nvlb-field small {
    display: block;
    font-size: 0.77rem;
    color: var(--lb-muted);
    margin-top: 0.3rem;
}
.nvlb-field small code {
    background: var(--lb-surface);
    border: 1px solid var(--lb-border);
    border-radius: 3px;
    padding: 0 4px;
    font-family: var(--lb-font-mono);
    font-size: 0.8rem;
    color: var(--lb-accent);
}

.nvlb-submit-row { margin-top: 1.5rem; text-align: center; }

#nvlb-submit-btn {
    background: var(--lb-accent);
    color: #fff;
    border: none;
    border-radius: var(--lb-radius);
    font-family: var(--lb-font);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.7rem 2.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex; align-items: center; gap: 0.5rem;
}
#nvlb-submit-btn:hover  { background: #007a99; transform: translateY(-1px); }
#nvlb-submit-btn:active { transform: translateY(0); }
#nvlb-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-spinner {
    display: inline-block;
    width: 15px; height: 15px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lb-spin 0.7s linear infinite;
}

@media (max-width: 600px) {
    table.nvlb-lb thead th:nth-child(5),
    table.nvlb-lb tbody td:nth-child(5) { display: none; }
    .nvlb-controls { flex-direction: column; }
}
.wp-block-post-title { display: none; }
