:root {
    /* New Theme Palette (CRM Hq Admin Style) */
    --bg-dark: #0F111A;
    /* Deep Navy Background */
    --bg-card: #1A1D26;
    /* Slightly lighter card bg */
    --bg-hover: #232732;
    /* Hover state */

    --primary: #FF3E3E;
    /* Racing Red (Keep brand identity) */
    --primary-hover: #E02E2E;

    --accent: #2F80ED;
    /* Dashboard Blue for stats/links */
    --accent-green: #00D09C;
    /* Success/Live indicator */

    --text-main: #FFFFFF;
    --text-muted: #6C7293;
    /* Cool grey text */

    --border: #2E323B;
    /* Subtle border */
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    /* Reduced shadow */

    --radius: 20px;
    /* Softer corners */
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border: 3px solid var(--bg-dark);
    /* Creates space around the thumb */
    background-clip: content-box;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Firefox support */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg-dark);
}

.app-container {
    width: 100%;
    height: 100vh;
    max-width: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

/* SIDEBAR */
.sidebar {
    width: 320px;
    /* Increased from 280px for more footer space */
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 1.5rem;
    /* Reduced padding for more internal width */
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 100;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sidebar-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 62, 62, 0.3));
}

.logo-container h2 {
    font-size: 1.4rem;
    line-height: 1.2;
}

/* NAV MENU */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Match gap */
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    background: var(--bg-dark);
    /* Changed from transparent to match grid rows */
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    width: 100%;
    justify-content: flex-start;
    /* Align left */
    font-size: 0.95rem;
}

.nav-item ion-icon {
    font-size: 1.4rem;
}

.nav-item:hover {
    background: var(--bg-hover);
    /* Same hover as table */
    color: var(--text-main);
    transform: translateY(-2px);
    /* Subtle lift */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(255, 62, 62, 0.1), transparent);
    background-color: var(--bg-hover);
    color: var(--primary);
    border-left: 3px solid var(--primary);
    border-radius: 4px 12px 12px 4px;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.group-toggle {
    justify-content: space-between;
    background: var(--bg-dark);
}

.group-toggle .chevron {
    font-size: 1rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.nav-group.menu-open .chevron {
    transform: rotate(180deg);
}

.nav-group-items {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-group-items.hidden {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    margin: 0;
    display: flex;
    /* Override base hidden display:none if needed, but we use flex/max-hide combo */
}

/* Ensure hidden sub-menu doesn't take space */
.nav-group-items:not(.hidden) {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.25rem;
}

.sub-item {
    padding: 0.75rem 1.2rem;
    font-size: 0.85rem;
    background: transparent;
    opacity: 0.8;
}

.sub-item ion-icon {
    font-size: 1.1rem;
}

.sub-item:hover {
    opacity: 1;
}

.sub-item.active {
    opacity: 1;
    background-color: var(--bg-hover);
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 0;
    width: 100%;
}

/* SIDEBAR FOOTER (USER) */
.sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.sidebar-btn {
    width: 100%;
    background: var(--bg-hover);
    color: var(--text-main);
}

.user-profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-dark);
    padding: 0.6rem;
    /* Minimal padding */
    border-radius: 12px;
    gap: 0.5rem;
}

.avatar-img {
    width: 36px;
    /* Slightly smaller avatar */
    height: 36px;
    min-width: 36px;
    /* Prevent shrink */
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.user-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Take available space */
    min-width: 0;
    /* CRITICAL for flex truncation */
    overflow: hidden;
    margin-right: 0.5rem;
    /* Space before buttons */
}

.user-role {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
    white-space: nowrap;
}

#username-span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
}

.icon-btn-small {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-hover);
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    /* Don't shrink buttons */
}

.icon-btn-small:hover {
    color: var(--primary);
    background: transparent;
}

.icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: invert(1);
    /* Ensure white icon if source is black, or adjusts based on theme */
    opacity: 0.7;
    transition: opacity 0.2s;
}

.icon-btn-small:hover .icon-img {
    opacity: 1;
    filter: drop-shadow(0 0 2px var(--primary));
}


/* MAIN CONTENT ADJUSTMENT */
main {
    flex-grow: 1;
    padding: 2rem 3rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.page-title h1 {
    font-size: 1.8rem;
}

.date-display {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo h1 {
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -1px;
}

.highlight {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    background: var(--bg-card);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-muted);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.dot.connected {
    background-color: var(--accent-green);
    box-shadow: 0 0 10px rgba(0, 208, 156, 0.4);
}

/* User Display */
#user-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    padding: 0.5rem 0.5rem 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
}

#user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.copyright {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.6;
}

/* DASHBOARD TAB LAYOUT */
.tab-content {
    display: grid;
    gap: 3rem;
    /* Increased significantly to ensure visible change */
    grid-template-rows: auto auto 1fr;
    height: 100%;
}

/* Stats Row */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    /* Match main gap */
    margin-bottom: 0;
    padding-bottom: 0;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    /* Match main card radius */
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 2rem;
    /* Increased padding */
    height: 100px;
    /* Slightly taller for better balance */
}

.stat-card h3 {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.stat-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    opacity: 0.15;
    color: var(--text-main);
}

.stat-card.clickable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary);
}

/* Content Area */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    /* Sidebar Form | Main Table */
    gap: 2rem;
    height: 100%;
    overflow: hidden;
}

.public-view .content-grid {
    grid-template-columns: 1fr;
    /* Full width if no form */
}

/* CARDS */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid transparent;
    /* Prepare for hover border */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: visible;
    /* Ensure pagination controls aren't cut off */
}

.card .table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    margin-bottom: 0;
    min-height: 0;
    /* Important: allows flex child to shrink and scroll */
}

.card.list-card {
    height: 100%;
    /* Fill available space */
}

.card .pagination-controls {
    flex-shrink: 0;
    /* Prevent pagination from being squeezed */
    margin-top: 0;
    /* Pagination has its own padding-top from CSS */
}

.card h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* FORM STYLES */
.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input,
select {
    width: 100%;
    padding: 1rem 1.2rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
    outline: none;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1rem;
    padding-right: 3.5rem !important;
    /* Buffering the arrow */
    cursor: pointer;
}

input:focus,
select:focus {
    outline: none;
    background-color: var(--bg-hover);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.1);
}

.small-select {
    width: auto;
    padding: 0.5rem 2.8rem 0.5rem 1rem !important;
    font-size: 0.85rem;
    height: auto;
    background-color: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    cursor: pointer;
    background-position: right 0.8rem center;
}

.small-select:focus {
    border-color: var(--accent) !important;
    background-color: var(--bg-hover);
}

/* BUTTONS */
button {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 62, 62, 0.3);
}

button:active {
    transform: translateY(0);
}

.secondary-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: auto;
    padding: 0.6rem 1.5rem;
}

.secondary-btn:hover {
    background: var(--bg-hover);
    box-shadow: none;
}

.icon-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: var(--bg-hover);
    color: var(--text-muted);
    font-size: 1.2rem;
    display: inline-flex;
}

.icon-btn:hover {
    background: var(--border);
    color: var(--text-main);
}


/* TABLE */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table-container {
    overflow-y: auto;
    flex-grow: 1;
    /* Take remaining space */
    border-radius: 12px;
    padding-right: 1.5rem;
    /* Buffer for scrollbar */
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    /* Space between rows */
}

th {
    text-align: left;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

td {
    padding: 1.2rem 1.5rem;
    background: var(--bg-dark);
    /* Rows match background for "floating" look */
    border: none;
}

tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

/* Ensure the visible last cell always has a radius */
tr td:last-child,
tr td:has(+ td.hidden) {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

tr:hover td {
    background: var(--bg-hover);
    cursor: default;
}

.empty-state {
    text-align: center;
    background: transparent;
    padding: 3rem;
    font-style: italic;
    color: var(--text-muted);
}

/* DROPDOWN */
.dropdown-container {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    min-width: 220px;
    z-index: 1000;
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    display: flex;
    gap: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

/* MODALS */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 17, 26, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    /* Ensure padding on all viewports */
    overflow-y: auto;
    /* Allow overlay to scroll if modal exceeds vh */
}

.modal {
    background: var(--bg-card);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    position: relative;
    text-align: center;
    max-height: 90vh;
    /* Max height */
    display: flex;
    flex-direction: column;
    margin: auto;
    /* Center in the scrolling overlay */
}

.modal-content-scroll {
    overflow-y: auto;
    flex: 1;
    padding-right: 1.5rem;
    /* Consistent buffer in modals */
    margin-top: 1rem;
}

.modal h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.modal p.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    /* Increased spacing */
}

.modal-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 0;
    text-align: left;
}

/* PAGINATION */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
    /* Push to bottom if flex column */
}

#page-indicator {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.pagination-controls button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: transparent;
    border-color: transparent;
}

/* Specific Login Styling */
.login-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 4px solid var(--border);
    box-shadow: 0 0 20px rgba(255, 62, 62, 0.2);
    /* Subtle glow matching brand */
}

/* Removed .logo-large style as it is replaced */

#login-modal input {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    padding: 1rem 1.2rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

#login-modal input:focus {
    border-color: var(--primary);
    background: var(--bg-hover);
    box-shadow: 0 0 0 4px rgba(255, 62, 62, 0.1);
}

#login-submit-btn {
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
}

.hidden {
    display: none !important;
}

/* SPINNER */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: none;
    animation: rotation 1s linear infinite;
}

.loading .loader {
    display: inline-block;
}

.loading span {
    display: none;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* USER MGMT STYLES */
.section-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 25px 0;
}

.section-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.admin-table th {
    text-align: left;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-table td {
    padding: 1rem 1.5rem;
    background: var(--bg-dark);
    border: none;
    vertical-align: middle;
}

.admin-table tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.admin-table tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.admin-table tr:hover td {
    background: var(--bg-hover);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* UI UTILITIES */
.user-role-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.user-role-badge.sysadmin {
    background: rgba(255, 62, 62, 0.15);
    color: var(--primary);
}

.user-role-badge.admin {
    background: rgba(54, 162, 235, 0.15);
    color: #36a2eb;
}

.icon-btn-small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-hover);
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.icon-btn-small:hover {
    background: var(--border);
    color: var(--text-main);
}

.icon-btn-small.danger {
    color: var(--primary);
    background: rgba(255, 62, 62, 0.05);
}

.icon-btn-small.danger:hover {
    background: var(--primary);
    color: white;
}

/* TRACKS MODULE */
.track-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    cursor: zoom-in;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s, border-color 0.2s;
    display: block;
}

.track-thumb:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

#tracks-table td {
    vertical-align: middle;
}

/* LIGHTBOX */
.lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tab-content.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

/* RESULTS MODAL & GRID */
.results-modal .modal {
    max-width: 950px;
    width: 95%;
    text-align: left;
    max-height: 90vh;
}

/* Scaling for Large Screens */
@media (min-width: 1920px) {
    .modal {
        max-width: 500px;
        padding: 4rem;
    }

    .results-modal .modal {
        max-width: 1200px;
    }

    .modal h2 {
        font-size: 2.2rem;
    }
}

@media (min-width: 2560px) {
    .modal {
        max-width: 600px;
        padding: 5rem;
    }

    .results-modal .modal {
        max-width: 1600px;
    }

    .modal h2 {
        font-size: 2.5rem;
    }
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 850px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

.results-modal .table-container {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    /* Critical for flex scrolling */
}

.results-modal table {
    width: 100%;
}

.clickable-row {
    cursor: pointer;
    transition: background 0.2s;
}

.clickable-row:hover td {
    background: var(--bg-hover) !important;
}