* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #222;
}

/* Preferred Table */
#preferred-container {
    margin-bottom: 20px;
}

.preferred-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    background: #f0f7ff;
    border: 1px solid #cce5ff;
    border-radius: 6px;
    overflow: hidden;
}

.preferred-table thead {
    background: #e6f0ff;
}

.preferred-table th {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 2px solid #cce5ff;
    font-weight: 600;
    white-space: nowrap;
}

.preferred-table td {
    padding: 10px;
    border-bottom: 1px solid #ddeeff;
}

.preferred-table tr:last-child td {
    border-bottom: none;
}

.preferred-table tr:hover {
    background: #e6f0ff;
}

/* Search Container */
.search-container {
    margin-bottom: 15px;
}

#search-input {
    width: 100%;
    max-width: 300px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#search-input:focus {
    outline: none;
    border-color: #0066cc;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background: #f8f9fa;
}

th {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
    white-space: nowrap;
}

th.sortable {
    cursor: pointer;
    user-select: none;
}

th.sortable:hover {
    background: #e9ecef;
}

th[data-sort-state="asc"]::after {
    content: " ↑";
}

th[data-sort-state="desc"]::after {
    content: " ↓";
}

td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

tr:hover {
    background: #f8f9fa;
}

tr[data-hidden="true"] {
  display: none;
}

/* Checkbox Column */
.checkbox-column {
    width: 40px;
    text-align: center;
}

.venue-checkbox {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* Name Column */
.name-column a {
    color: #0066cc;
    text-decoration: none;
}

.name-column a:hover {
    text-decoration: underline;
}

/* Limit Value Column */
.limit-value {
    text-align: center;
}
