/* Basic layout */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f5f7;
    color: #222;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* Header */
header h1 {
    margin: 0 0 4px;
    font-size: 1.9rem;
}

header p {
    margin: 0 0 16px;
    color: #555;
}

/* Filter section */
.filter-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
}

.filter-group label,
.filter-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.filter-group input[type="text"],
.filter-group select {
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #d0d4dc;
    font-size: 0.95rem;
    background: #fff;
}

.filter-group input[type="text"]:focus,
.filter-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

/* Labels as pills */
.labels-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.label-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e5e7eb;
    font-size: 0.8rem;
    cursor: pointer;
    user-select: none;
}

.label-pill input {
    margin: 0;
}

/* Filter actions */
.filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.filter-actions button {
    padding: 6px 14px;
    border-radius: 999px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.filter-actions button:hover {
    background: #1d4ed8;
}

.reset-link {
    font-size: 0.85rem;
    color: #6b7280;
    text-decoration: none;
}

.reset-link:hover {
    text-decoration: underline;
}

/* Results section */
.results-section h2 {
    margin: 0 0 8px;
    font-size: 1.3rem;
}

.no-results {
    margin-top: 10px;
    color: #6b7280;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

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

.inventory-table thead {
    background: #f3f4f6;
}

.inventory-table th,
.inventory-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.inventory-table th {
    text-align: left;
    font-weight: 600;
    color: #374151;
}

.inventory-table tr:nth-child(even) td {
    background: #f9fafb;
}

/* Special cells */
.club-cell a {
    color: #2563eb;
    text-decoration: none;
}

.club-cell a:hover {
    text-decoration: underline;
}

.logo-cell {
    width: 80px;
}

.logo-cell img {
    max-width: 60px;
    max-height: 60px;
    border-radius: 6px;
    object-fit: contain;
    background: #f3f4f6;
    padding: 4px;
}

.no-logo {
    font-size: 0.75rem;
    color: #9ca3af;
}

.item-name-cell {
    font-weight: 600;
}

.description-cell {
    max-width: 280px;
    white-space: pre-wrap;
}

.labels-cell {
    font-size: 0.8rem;
    color: #4b5563;
}

.contact-cell a {
    color: #2563eb;
    text-decoration: none;
    word-break: break-all;
}

.contact-cell a:hover {
    text-decoration: underline;
}

/* Small screens */
@media (max-width: 768px) {
    .page-container {
        padding: 12px;
    }
    .filter-row {
        flex-direction: column;
    }
    .description-cell {
        max-width: 200px;
    }
}
