body {
    background-color: #f8f9fa;
}

.tag-badge {
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

.table-hover tbody tr:hover {
    cursor: pointer;
}

.search-container {
    max-width: 400px;
}

.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Tag badge checkboxes */
.tag-badge-label.btn-outline-secondary {
    border-radius: 50rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border-color: var(--tag-color) !important;
    color: var(--tag-color) !important;
    background-color: transparent !important;
}

.tag-badge-label.btn-outline-secondary:hover {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
}

.btn-check:checked + .tag-badge-label.btn-outline-secondary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
}

.btn-check:checked + .tag-badge-label.btn-outline-secondary:hover {
    background-color: #0b5ed7 !important;
    border-color: #0a58ca !important;
}

.btn-check:focus + .tag-badge-label.btn-outline-secondary {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
}

/* Fixed width for tags column */
.table th:nth-child(5),
.table td:nth-child(5) {
    width: 20%;
    min-width: 150px;
}

/* Prevent modal layout jump during loading */
#addressModal .modal-content {
    min-height: 480px;
}
