/* shadcn/ui inspired design system */
:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 221.2 83.2% 53.3%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 221.2 83.2% 53.3%;
    --radius: 0.5rem;
}

.dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 217.2 91.2% 59.8%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 224.3 76.3% 48%;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.modal-open {
    overflow: hidden;
    touch-action: none;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.dark {
    color-scheme: dark;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-muted-foreground {
    color: hsl(var(--muted-foreground));
}

/* Layout */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
    width: 100%;
}

main {
    transition: opacity 0.2s ease-in-out;
    opacity: 1;
}

/* Subtle fade-in when main content is shown */
#main-content.main-transition {
    animation: mainFadeIn 0.18s ease-out;
}

@keyframes mainFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.flex {
    display: flex;
}

.gap-2 {
    gap: 0.5rem;
}

.items-center {
    align-items: center;
}

.w-full {
    width: 100%;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Card (shadcn Card) */
.card {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.card-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.75rem;
    margin: 0;
}

.card-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin: 0.25rem 0 0 0;
}

.card-content {
    padding: 1.5rem;
}

/* Header */
.header {
    background-color: hsl(var(--card));
    border-bottom: 1px solid hsl(var(--border));
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
    border-radius: 50%;
    overflow: hidden;
}
.header-logo-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.nav-menu {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-item {
    padding: 0.5rem 1rem;
    border-radius: calc(var(--radius) - 2px);
    text-decoration: none;
    color: hsl(var(--muted-foreground));
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-item:hover {
    background-color: hsl(var(--muted) / 0.3);
    color: hsl(var(--foreground));
}

.nav-item.active {
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

/* Menu em grupos (dropdowns) */
.nav-group {
    position: relative;
}
.nav-group-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: calc(var(--radius) - 2px);
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.nav-group-trigger:hover {
    background-color: hsl(var(--muted) / 0.3);
    color: hsl(var(--foreground));
}
.nav-group.active .nav-group-trigger {
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}
.nav-group-trigger::after {
    content: "▾";
    font-size: 0.7rem;
    opacity: 0.8;
}
.nav-group-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    min-width: 160px;
    padding: 0.25rem 0;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius));
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.15);
    z-index: 100;
    display: none;
}
.nav-group:hover .nav-group-dropdown,
.nav-group.open .nav-group-dropdown {
    display: block;
}
.nav-group-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.nav-group-dropdown a:hover {
    background: hsl(var(--muted) / 0.3);
    color: hsl(var(--foreground));
}
.nav-group-dropdown a.active {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    padding: 0.5rem 1rem;
    height: 2.25rem;
}

.btn:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
}

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
    background-color: hsl(var(--secondary) / 0.8);
}

/* shadcn-style: outline, ghost, destructive, sizes */
.btn-outline {
    background: transparent;
    border: 1px solid hsl(var(--input));
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-ghost {
    background: transparent;
    color: hsl(var(--foreground));
}

.btn-ghost:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-destructive {
    background-color: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
}

.btn-destructive:hover {
    background-color: hsl(var(--destructive) / 0.9);
}

.btn-sm {
    height: 2rem;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    height: 2.75rem;
    padding: 0 1.5rem;
    font-size: 0.9375rem;
}

/* Form Elements (shadcn Field pattern) */
.form-group {
    margin-bottom: 1rem;
}

/* Log Bet modal: Market+Line and Market+Outcome on same row */
#betForm .bet-form-row-2 {
    display: flex !important;
    gap: 0.75rem;
    flex-wrap: wrap;
}
#betForm .bet-form-row-2 > .form-group {
    flex: 1 1 0;
    min-width: 0;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    color: hsl(var(--foreground));
}

.form-description {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
    display: block;
}

.input {
    display: block;
    width: 100%;
    min-height: 2.5rem;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid hsl(var(--input));
    background-color: hsl(var(--background));
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: hsl(var(--foreground));
}

.input::placeholder {
    color: hsl(var(--muted-foreground));
}

.input:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.25);
}

/* Select same height and cursor as input (shadcn-like) */
select.input {
    cursor: pointer;
    appearance: auto;
}

/* Date and datetime inputs – mesma altura dos outros campos, sem alterar o calendário nativo */
.input[type="date"],
.input[type="datetime-local"],
.input[type="time"] {
    min-height: 2.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    gap: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    accent-color: hsl(var(--primary));
}

/* Alerts */
.alert {
    position: relative;
    width: 100%;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid hsl(var(--border));
    padding: 1rem;
    margin-bottom: 1rem;
    display: none;
}

.alert.show {
    display: block;
}

.alert-destructive {
    background-color: hsl(var(--destructive) / 0.1);
    color: hsl(var(--destructive-foreground));
    border-color: hsl(var(--destructive));
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to bottom right, hsl(var(--background)), hsl(var(--muted) / 0.3));
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 1.5rem;
}

.login-container .card {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.login-container .card-header {
    text-align: center;
}
.login-logo {
    display: inline-flex;
    text-decoration: none;
    line-height: 0;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.login-logo-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* Filters */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

/* Stats grid (Bets page - shadcn-style cards) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Toolbar: title + actions row */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Matches Table */
.matches-table-container {
    margin-top: 1.5rem;
    overflow-x: auto;
}

.matches-table {
    width: 100%;
    border-collapse: collapse;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    overflow: hidden;
}

.matches-table thead {
    background-color: hsl(var(--muted) / 0.3);
}

.matches-table th {
    padding: 0.75rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    letter-spacing: 0.05em;
    border-bottom: 1px solid hsl(var(--border));
}

.matches-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-bottom: 1px solid hsl(var(--border));
}

.matches-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s;
}

.matches-table tbody tr:nth-child(even) {
    background-color: hsl(var(--muted) / 0.55);
}

.matches-table tbody tr:nth-child(odd) {
    background-color: hsl(var(--muted) / 0.12);
}

.matches-table tbody tr:hover {
    background-color: hsl(var(--muted) / 0.3);
}

.match-row-sport {
    font-size: 0.75rem;
    color: hsl(var(--primary));
    text-transform: uppercase;
    font-weight: 600;
}

.match-row-league-small {
    font-size: 0.625rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.25rem;
}

.match-row-time {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.match-row-teams {
    font-weight: 500;
    min-width: 200px;
    margin-bottom: 0.25rem;
}

.match-row-score {
    font-size: 0.75rem;
    color: hsl(var(--primary));
    font-weight: 600;
}

.match-info-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.match-row-odds {
    min-width: 400px;
}

.odds-preview-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
}

.odds-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.75rem;
    flex: 1;
}

.odds-section:first-child {
    padding-left: 0;
}

.odds-section:last-child {
    padding-right: 0;
}

.odds-section-divider {
    width: 1px;
    background-color: hsl(var(--border));
    align-self: stretch;
    margin: 0 0.5rem;
}

.odds-section-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    letter-spacing: 0.05em;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid hsl(var(--border));
    margin-bottom: 0.25rem;
}

.odds-section-content {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
    align-items: center;
    min-height: 1.5rem;
}

.odd-empty {
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
}

.odd-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    background-color: hsl(var(--muted) / 0.3);
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.75rem;
    min-width: 2.5rem;
}

.odd-badge-value {
    color: hsl(var(--primary));
    font-weight: 600;
}

.odd-badge-line {
    color: hsl(var(--muted-foreground));
    font-weight: 500;
    font-size: 0.625rem;
}

.odd-label {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.odd-value {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--primary));
}

.odd-line {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
}

.max-bet {
    font-size: 0.625rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
}

/* Match Detail */
.match-info {
    margin-bottom: 1.5rem;
}

.match-info h2 {
    color: hsl(var(--primary));
    margin-bottom: 0.5rem;
}

.match-info .match-teams {
    font-size: 1.5rem;
    margin: 1rem 0;
}

/* Odds Container */
.odds-container {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.odds-section h3 {
    color: hsl(var(--primary));
    margin-bottom: 1rem;
    font-size: 1.125rem;
    text-transform: uppercase;
    border-bottom: 1px solid hsl(var(--border));
    padding-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Moneyline Grid */
.moneyline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.moneyline-item {
    background-color: hsl(var(--muted) / 0.3);
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    padding: 1rem;
    text-align: center;
}

.moneyline-item .odd-label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.moneyline-item .odd-value {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Spread/Total Grid */
.spread-total-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.spread-total-item {
    background-color: hsl(var(--muted) / 0.3);
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    padding: 0.75rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.spread-total-item .odd-label {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.spread-total-item .odd-value {
    text-align: center;
    font-size: 1rem;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2.5rem;
    color: hsl(var(--primary));
    font-size: 1rem;
}

/* Modal loading state (inside odds modal) */
.modal-loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.modal-loading-spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid hsl(var(--border));
    border-top-color: hsl(var(--primary));
    border-radius: 50%;
    animation: modal-spin 0.7s linear infinite;
}

@keyframes modal-spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: hsl(var(--muted-foreground));
}

/* Modal */
.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, backdrop-filter 0.2s ease-in-out, background-color 0.2s ease-in-out, visibility 0s 0.2s;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Edit Bet Modal - keep it at standard z-index */
#editBetModal {
    z-index: 1000;
}

/* Alert result modal (Admin Alerts) - fixed width via ID so it always applies */
#alertResultModal .modal-content,
#alertResultModal .alert-result-modal-content {
    width: 260px;
    max-width: 260px;
}
#alertResultModal .modal-header {
    padding: 0.5rem 0.75rem;
}
#alertResultModal .modal-body {
    padding: 0.6rem 0.75rem;
}
#alertResultModal .form-group {
    margin-bottom: 0.6rem;
}
#alertResultModal .form-group:last-of-type {
    margin-bottom: 0;
}
#alertResultModal .alert-result-info-block {
    padding: 0.45rem 0.55rem;
    background: hsl(var(--muted) / 0.35);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    line-height: 1.3;
}
#alertResultModal .alert-result-set-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
#alertResultModal .alert-result-set-row .alert-result-select {
    flex: 1;
    min-width: 0;
}
#alertResultModal #alertResultBtnSet {
    flex-shrink: 0;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    transition: opacity 0.2s ease-in-out, backdrop-filter 0.2s ease-in-out, background-color 0.2s ease-in-out, visibility 0s;
}

.modal-content {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius));
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    overflow: hidden;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

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

.modal-header h2 {
    margin: 0;
}

/* Close button (X) – shadcn-style icon button, use with aria-label="Close" where possible */
.btn-close,
.close-modal {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: calc(var(--radius) - 2px);
    transition: background-color 0.2s, color 0.2s;
}

.btn-close:hover,
.close-modal:hover {
    background-color: hsl(var(--muted) / 0.5);
    color: hsl(var(--foreground));
}

.btn-close:focus-visible,
.close-modal:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--ring));
}

.modal-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* Command Palette (Ctrl+K) */
.command-palette-content {
    max-width: 520px;
}

.command-palette-search-wrap {
    position: relative;
    margin-bottom: 0.75rem;
}

.command-palette-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted-foreground));
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.command-palette-input {
    padding-left: 2.5rem;
}

.command-palette-results {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background-color: hsl(var(--background));
}

.command-palette-results:empty {
    display: none;
}

.command-palette-hint {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.command-palette-item {
    display: block;
    width: 100%;
    padding: 0.625rem 1rem;
    text-align: left;
    border: none;
    border-bottom: 1px solid hsl(var(--border));
    background: none;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.command-palette-item:last-child {
    border-bottom: none;
}

.command-palette-item:hover,
.command-palette-item:focus {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    outline: none;
}

.command-palette-item:hover .command-palette-item-meta,
.command-palette-item:focus .command-palette-item-meta {
    color: hsl(var(--accent-foreground) / 0.85);
}

.command-palette-item-title {
    display: block;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 0.125rem;
}

.command-palette-item-meta {
    display: block;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.3;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.modal-match-info {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.modal-match-info .match-teams {
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

.odds-table-container {
    overflow-x: auto;
}

.odds-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.odds-detail-table thead {
    background-color: hsl(var(--muted) / 0.3);
}

.odds-detail-table th {
    padding: 0.5rem 0.5rem;
    text-align: left;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    letter-spacing: 0.05em;
    border-bottom: 1px solid hsl(var(--border));
    white-space: nowrap;
}

.odds-detail-table th.market-col {
    min-width: 80px;
    border-right: 1px solid hsl(var(--border));
}

.odds-detail-table th.outcome-col {
    min-width: 120px;
}

.odds-detail-table th.nvp-col,
.odds-detail-table th.p-col,
.odds-detail-table th.v-col,
.odds-detail-table th.l-col,
.odds-detail-table th.open-col,
.odds-detail-table th.variation-col {
    text-align: center;
    min-width: 70px;
}

.odds-detail-table td {
    padding: 0.5rem;
    font-size: 0.7rem;
    border-bottom: 1px solid hsl(var(--border));
    vertical-align: middle;
}

.odds-detail-table td.market-col {
    border-right: 1px solid hsl(var(--border));
    vertical-align: top;
    text-align: left;
}

.odds-detail-table td.outcome-col {
    text-align: left;
    white-space: nowrap;
}

.odds-detail-table td.nvp-col {
    text-align: center;
    color: hsl(var(--primary));
    font-weight: 600;
}

.odds-detail-table td.p-col {
    text-align: center;
    color: hsl(var(--foreground));
}

.odds-detail-table td.v-col {
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-size: 0.65rem;
}

.odds-detail-table td.l-col {
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-size: 0.65rem;
}

.odds-detail-table td.open-col {
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-size: 0.7rem;
}

.odds-detail-table td.variation-col {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 500;
}

.odds-detail-table tbody tr:nth-child(even) {
    background-color: hsl(var(--muted) / 0.55);
}

.odds-detail-table tbody tr:nth-child(odd) {
    background-color: hsl(var(--muted) / 0.15);
}

.odds-detail-table tbody tr:hover {
    background-color: hsl(var(--muted) / 0.3);
}

.odds-detail-table tbody tr:not(:has(.market-col)):hover {
    background-color: hsl(var(--primary) / 0.15);
}

/* Modal de detalhe do jogo (odds) - mais compacto */
#oddsModal .modal-content {
    max-height: 85vh;
}

#oddsModal .modal-header {
    padding: 0.5rem 1rem;
}

#oddsModal .modal-header h2 {
    font-size: 1rem;
    font-weight: 600;
}

#oddsModal .modal-body {
    padding: 0.5rem 1rem;
}

#oddsModal .modal-match-info {
    margin-bottom: 0.35rem;
    padding-bottom: 0.35rem;
}

#oddsModal .modal-match-info .match-teams {
    font-size: 0.8rem;
    margin: 0.1rem 0;
}

#oddsModal .odds-table-container {
    min-height: 0;
    overflow: auto;
}

#oddsModal .odds-detail-table {
    font-size: 0.7rem;
}

#oddsModal .odds-detail-table th {
    padding: 0.25rem 0.35rem;
    font-size: 0.6rem;
}

#oddsModal .odds-detail-table td {
    padding: 0.25rem 0.35rem;
    font-size: 0.68rem;
}

#oddsModal .odds-detail-table th.market-col {
    min-width: 64px;
}

#oddsModal .odds-detail-table th.outcome-col {
    min-width: 96px;
}

#oddsModal .odds-detail-table th.nvp-col,
#oddsModal .odds-detail-table th.p-col,
#oddsModal .odds-detail-table th.v-col,
#oddsModal .odds-detail-table th.l-col,
#oddsModal .odds-detail-table th.open-col,
#oddsModal .odds-detail-table th.variation-col {
    min-width: 52px;
}

#oddsModal .odds-detail-table td.v-col,
#oddsModal .odds-detail-table td.l-col {
    font-size: 0.62rem;
}

#oddsModal .odds-detail-table tbody tr:nth-child(even) {
    background-color: hsl(var(--muted) / 0.55);
}

#oddsModal .odds-detail-table tbody tr:nth-child(odd) {
    background-color: hsl(var(--muted) / 0.15);
}

/* Odds modal with right history sidebar – tamanho padronizado, rolagem interna */
#oddsModal .modal-content.odds-modal-content {
    height: 82vh;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    max-width: min(95vw, 720px);
}

#oddsModal .modal-content.odds-modal-content.with-history-sidebar {
    max-width: min(98vw, 1200px);
}

.odds-modal-content {
    display: flex;
    flex-direction: column;
}

.odds-modal-body-wrap {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: contain;
}

.odds-modal-body-wrap .modal-body {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.odds-modal-history-sidebar {
    display: none;
    flex-direction: column;
    width: 420px;
    min-width: 320px;
    max-width: 50vw;
    border-left: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    flex-shrink: 0;
    min-height: 0;
    overflow: hidden;
}

.odds-modal-history-sidebar.is-open {
    display: flex;
}

.history-sidebar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid hsl(var(--border));
    flex-shrink: 0;
}

.history-sidebar-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: hsl(var(--foreground));
}

.history-sidebar-team {
    font-weight: 500;
}

.history-sidebar-market {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.history-sidebar-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    padding: 1rem;
    overscroll-behavior: contain;
}

.history-sidebar-content .history-graph-container {
    margin-bottom: 1rem;
    max-width: 100%;
    flex-shrink: 0;
}

.history-sidebar-content .history-graph {
    display: block;
    max-height: 200px;
    width: 100%;
    height: auto;
}

.history-sidebar-content .history-table-container {
    min-height: 80px;
    overflow-x: auto;
}

/* History table in sidebar: same compact spacing as odds detail table in modal */
.odds-modal-history-sidebar .history-table {
    font-size: 0.7rem;
}

.odds-modal-history-sidebar .history-table thead th {
    padding: 0.25rem 0.35rem;
    font-size: 0.6rem;
}

.odds-modal-history-sidebar .history-table tbody td {
    padding: 0.25rem 0.35rem;
    font-size: 0.68rem;
}

/* History Modal (legacy / unused when sidebar is used) */
.modal-large {
    max-width: 1000px;
}

.history-graph-container {
    margin-bottom: 1.5rem;
    background-color: hsl(var(--muted) / 0.2);
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    padding: 1rem;
    flex-shrink: 0;
    background-color: hsl(var(--card));
}

.history-graph {
    width: 100%;
    height: auto;
}

.history-table-container {
    overflow-y: auto;
    overflow-x: auto;
    flex: 1;
    min-height: 0;
    position: relative;
    margin-right: 0;
}

.history-table-container::-webkit-scrollbar {
    width: 12px;
}

.history-table-container::-webkit-scrollbar-track {
    background: hsl(var(--muted) / 0.2);
}

.history-table-container::-webkit-scrollbar-thumb {
    background: hsl(var(--muted-foreground) / 0.3);
    border-radius: 4px;
}

.history-table-container::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--muted-foreground) / 0.5);
}

.history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.75rem;
}

.history-table thead {
    background-color: hsl(var(--muted) / 0.3);
}

.history-table thead th {
    padding: 0.5rem;
    text-align: left;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    letter-spacing: 0.05em;
    border-bottom: 1px solid hsl(var(--border));
    background-color: hsl(var(--muted) / 0.3);
}

.history-table thead th:last-child {
    padding-right: 1rem;
}

.history-table tbody td {
    padding: 0.5rem;
    font-size: 0.7rem;
    border-bottom: 1px solid hsl(var(--border));
}

.history-table tbody td:last-child {
    padding-right: 1rem;
}

.history-table tbody tr:nth-child(even) {
    background-color: hsl(var(--muted) / 0.55);
}

.history-table tbody tr:nth-child(odd) {
    background-color: hsl(var(--muted) / 0.12);
}

.history-table tbody tr:hover {
    background-color: hsl(var(--muted) / 0.3);
}

.history-table td:nth-child(2) {
    color: hsl(var(--primary));
    font-weight: 600;
}

/* Range Slider */
.range-slider-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

.range-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: hsl(var(--muted));
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: hsl(var(--primary));
    cursor: pointer;
    border: 2px solid hsl(var(--background));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: hsl(var(--primary));
    cursor: pointer;
    border: 2px solid hsl(var(--background));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.range-slider:focus {
    outline: none;
}

.range-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.3);
}

/* Odds Table */
.odds-table-container {
    margin-top: 1.5rem;
    overflow-x: auto;
}

.odds-table {
    width: 100%;
    border-collapse: collapse;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    overflow: hidden;
}

.odds-table thead {
    background-color: hsl(var(--muted) / 0.3);
}

.odds-table th {
    padding: 0.75rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    letter-spacing: 0.05em;
    border-bottom: 1px solid hsl(var(--border));
    user-select: none;
}

.odds-table th.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 1.5rem;
}

.odds-table th.sortable:hover {
    background-color: hsl(var(--muted) / 0.5);
}

.odds-table th .sort-indicator {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.625rem;
    opacity: 0.3;
}

.odds-table th.sort-asc .sort-indicator::after {
    content: '▲';
    opacity: 1;
}

.odds-table th.sort-desc .sort-indicator::after {
    content: '▼';
    opacity: 1;
}

.odds-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-bottom: 1px solid hsl(var(--border));
}

.odds-table tbody tr {
    transition: background-color 0.2s;
}

.odds-table tbody tr:nth-child(even) {
    background-color: hsl(var(--muted) / 0.6) !important;
}

.odds-table tbody tr:nth-child(odd) {
    background-color: hsl(var(--muted) / 0.2) !important;
}

.odds-table tbody tr:hover {
    background-color: hsl(var(--muted) / 0.6) !important;
}

/* Remover underline de spans com classe no-underline-ticks - regra muito específica */
.no-underline-ticks,
span.no-underline-ticks,
.clickable-odd .no-underline-ticks,
.clickable-odd span.no-underline-ticks,
td.clickable-odd .no-underline-ticks,
td.clickable-odd span.no-underline-ticks,
.odd-number + .no-underline-ticks,
span.odd-number + .no-underline-ticks,
.clickable-odd span.odd-number + .no-underline-ticks {
    text-decoration: none !important;
    color: #22c55e !important;
}

/* Garantir que nenhum elemento dentro de no-underline-ticks tenha underline */
.no-underline-ticks * {
    text-decoration: none !important;
}

.text-green-500 {
    color: #22c55e;
}

.text-red-500 {
    color: #ef4444;
}

.history-table td:nth-child(3) {
    color: hsl(var(--foreground));
    font-weight: 500;
}

/* Dual Range Slider */
.dual-range-container {
    position: relative;
    width: 100%;
    height: 40px;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.dual-range-input {
    position: absolute;
    width: 100%;
    height: 6px;
    background: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
}

.dual-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: hsl(var(--primary));
    cursor: pointer;
    border: 2px solid hsl(var(--background));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    pointer-events: all;
    position: relative;
    z-index: 3;
}

.dual-range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: hsl(var(--primary));
    cursor: pointer;
    border: 2px solid hsl(var(--background));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    pointer-events: all;
    position: relative;
    z-index: 3;
}

.dual-range-input:focus {
    outline: none;
}

.dual-range-input:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.3);
}

.dual-range-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    background: hsl(var(--muted));
    border-radius: 3px;
    transform: translateY(-50%);
    z-index: 1;
}

.dual-range-input:nth-of-type(1) {
    z-index: 3;
}

.dual-range-input:nth-of-type(2) {
    z-index: 4;
}

.range-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: hsl(var(--muted));
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: hsl(var(--primary));
    cursor: pointer;
    border: 2px solid hsl(var(--background));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: hsl(var(--primary));
    cursor: pointer;
    border: 2px solid hsl(var(--background));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.range-slider:focus {
    outline: none;
}

.range-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.3);
}

/* Odds Table */
.odds-table-container {
    margin-top: 1.5rem;
    overflow-x: auto;
}

.odds-table {
    width: 100%;
    border-collapse: collapse;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    overflow: hidden;
}

.odds-table thead {
    background-color: hsl(var(--muted) / 0.3);
}

.odds-table th {
    padding: 0.75rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    letter-spacing: 0.05em;
    border-bottom: 1px solid hsl(var(--border));
    user-select: none;
}

.odds-table th.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 1.5rem;
}

.odds-table th.sortable:hover {
    background-color: hsl(var(--muted) / 0.5);
}

.odds-table th .sort-indicator {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.625rem;
    opacity: 0.3;
}

.odds-table th.sort-asc .sort-indicator::after {
    content: '▲';
    opacity: 1;
}

.odds-table th.sort-desc .sort-indicator::after {
    content: '▼';
    opacity: 1;
}

.odds-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-bottom: 1px solid hsl(var(--border));
}

.odds-table td.nvp-cell {
    font-weight: 700;
    font-size: 1rem;
    color: #ca8a04;
}

.dark .odds-table td.nvp-cell {
    color: #eab308;
}

/* Current Odd com destaque - amarelo mais escuro que o NVP */
.odds-table td.current-odd-cell {
    font-weight: 700;
    font-size: 1rem;
    color: #a16207;
}

.dark .odds-table td.current-odd-cell {
    color: #ca8a04;
}

/* Garantir que o número dentro de current-odd-cell também tenha o destaque */
.odds-table td.current-odd-cell .odd-number {
    font-weight: 700;
    font-size: 1rem;
    color: #a16207;
}

.dark .odds-table td.current-odd-cell .odd-number {
    color: #ca8a04;
}

.odds-table td.mini-chart-cell {
    padding: 0.25rem !important;
    text-align: center;
    vertical-align: middle;
}

.odds-table td.mini-chart-cell svg {
    display: block;
    margin: 0 auto;
}

.odds-table tbody tr {
    transition: background-color 0.2s;
}

.odds-table tbody tr:nth-child(even) {
    background-color: hsl(var(--muted) / 0.6) !important;
}

.odds-table tbody tr:nth-child(odd) {
    background-color: hsl(var(--muted) / 0.2) !important;
}

.odds-table tbody tr:hover {
    background-color: hsl(var(--muted) / 0.6) !important;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: calc(var(--radius) - 2px);
    text-transform: uppercase;
}

.badge-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.badge-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

/* Button sizes */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-danger {
    background-color: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
}

.btn-danger:hover {
    background-color: hsl(var(--destructive) / 0.9);
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Confirmation Modal - Must appear above all other modals */
#confirmModal {
    z-index: 2000 !important;
}

#confirmModal .modal-content {
    max-width: 400px;
}

#confirmModal .modal-body p {
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

#confirmModal .modal-body .form-group {
    margin-top: 1.5rem;
}

/* Utility classes */
.mb-4 {
    margin-bottom: 1rem;
}

/* Alert styles */
.alert {
    padding: 0.75rem 1rem;
    border-radius: calc(var(--radius) - 2px);
    margin-bottom: 1rem;
}

.alert-error {
    background-color: hsl(var(--destructive) / 0.1);
    color: hsl(var(--destructive-foreground));
    border: 1px solid hsl(var(--destructive));
}

.alert-success {
    background-color: hsl(142 76% 36% / 0.1);
    color: hsl(142 76% 36%);
    border: 1px solid hsl(142 76% 36%);
}

/* Clickable odds */
.clickable-odd {
    cursor: pointer;
    transition: opacity 0.2s;
}

.clickable-odd:hover {
    opacity: 0.7;
}

/* Drops: Manage filters modal list */
.drops-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

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

.drops-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    background: hsl(var(--secondary));
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s, opacity 0.2s;
}

.drops-icon-btn:hover {
    background: hsl(var(--muted) / 0.6);
    color: hsl(var(--foreground));
}

.drops-icon-btn.muted {
    opacity: 0.85;
}

/* Sino: risco escondido por padrão; quando .muted o risco aparece e o sino fica mais fraco */
.drops-sound-btn .drops-sound-slash {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.15s, opacity 0.15s;
}

.drops-sound-btn.muted .drops-sound-slash {
    visibility: visible;
    opacity: 1;
}

.drops-sound-btn.muted .drops-sound-bell {
    opacity: 0.4;
}

.drops-icon {
    flex-shrink: 0;
}

.filters-list-table-wrap {
    overflow-x: auto;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
}

.filters-list-table-wrap .odds-table {
    margin: 0;
}

.filters-list-table-wrap .odds-table th {
    font-size: 0.7rem;
    padding: 0.5rem 0.75rem;
}

.filters-list-table-wrap .odds-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
}

.filter-form-grid {
    grid-template-columns: 1fr 1fr;
}
.filter-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.filter-form-row-2 .form-label { margin-bottom: 0.35rem; }
.filter-form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}
.filter-form-row-3 .form-label { margin-bottom: 0.35rem; }
.filter-form-row-3 .input { width: 100%; box-sizing: border-box; }

.manual-bet-modal-content {
    max-width: 720px;
    width: 100%;
}

/* Filter form (Add/Edit) – single column, range rows, actions always visible */
.filter-form-modal-content {
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.filter-form-modal-content .modal-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
    padding-bottom: 0;
}
.filter-form-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}
.filter-form-scroll {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding-bottom: 0.5rem;
}
.filter-form-body .form-group {
    margin-bottom: 0.75rem;
}
.filter-form-body .form-group:last-of-type { margin-bottom: 0; }
.filter-form-body .form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: hsl(var(--foreground));
}
/* Range row: two inputs with dash between (e.g. Odds range 1.5 – 2.2) */
.filter-form-range-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.filter-form-range-row .input {
    flex: 1;
    min-width: 0;
}
.filter-form-range-sep {
    flex-shrink: 0;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}
.filter-form-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 0.5rem;
}
.filter-form-checkboxes .checkbox-label {
    margin: 0;
}
.filter-form-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding: 1rem 0 1rem 0;
    border-top: 1px solid hsl(var(--border));
    flex-shrink: 0;
    background: hsl(var(--card));
}

/* Responsive */
@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .match-odds-compact {
        grid-template-columns: 1fr;
    }
    
    .spread-total-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 1rem;
    }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 200px;
    max-width: 400px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease-out;
    color: hsl(var(--foreground));
}

.toast.success {
    border-color: #22c55e;
    background-color: hsl(var(--card));
}

.toast.error {
    border-color: hsl(var(--destructive));
    background-color: hsl(var(--card));
}

.toast-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.toast-icon.success {
    color: #22c55e;
}

.toast-icon.error {
    color: hsl(var(--destructive));
}

.toast-message {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease-in forwards;
}

/* Admin Dashboard - modern layout & typography */
.dashboard-page {
    font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

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

.dashboard-header-actions .dashboard-filter-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.dashboard-filter-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
}

.dashboard-grouper-select {
    min-width: 160px;
}

.dashboard-section-hint {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin: -0.5rem 0 1rem 0;
}

.dashboard-modal-content {
    max-width: min(95vw, 1400px);
    width: 100%;
}

.dashboard-modal-filter {
    margin-bottom: 1rem;
}

.dashboard-modal-filter .dashboard-filter-label {
    flex-direction: row;
    align-items: center;
}

.user-bets-filters-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.user-bets-filters-row .dashboard-filter-label {
    flex: 0 0 auto;
}

.dashboard-modal-filter .input {
    min-width: 140px;
}

/* Scroll for user bets list in Accounts & results modal */
.user-bets-table-wrap {
    max-height: 55vh;
    overflow-y: auto;
}

.dashboard-table tfoot td {
    font-weight: 700;
    border-top: 2px solid hsl(var(--border));
    background: hsl(var(--muted) / 0.25);
}

.dashboard-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: hsl(var(--foreground));
    margin: 0 0 0.25rem 0;
}

.dashboard-subtitle {
    font-size: 0.95rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
    font-weight: 500;
}

.dashboard-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.dashboard-refresh-icon {
    font-size: 1.1rem;
    opacity: 0.9;
}

.dashboard-alert {
    margin-bottom: 1.5rem;
}

.dashboard-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.dashboard-loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid hsl(var(--border));
    border-top-color: hsl(var(--primary));
    border-radius: 50%;
    animation: dashboard-spin 0.8s linear infinite;
}

@keyframes dashboard-spin {
    to { transform: rotate(360deg); }
}

.dashboard-content {
    animation: dashboard-fadeIn 0.35s ease-out;
}

@keyframes dashboard-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-section {
    margin-bottom: 2.5rem;
}

.dashboard-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.dashboard-tab {
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
}

.dashboard-tab:hover {
    color: hsl(var(--foreground));
}

.dashboard-tab.active {
    color: hsl(var(--primary));
    border-bottom-color: hsl(var(--primary));
}

.dashboard-tab-panel {
    animation: dashboard-fadeIn 0.2s ease-out;
}

.dashboard-analysis-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-chart-wrap {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.8);
    border-radius: 12px;
    padding: 1rem;
    max-width: 480px;
}

.dashboard-section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: hsl(var(--foreground));
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid hsl(var(--primary) / 0.35);
    display: inline-block;
}

/* Hero KPI cards */
.dashboard-hero-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.dashboard-hero-card {
    background: hsl(var(--card));
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    border: 1px solid hsl(var(--border) / 0.8);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.dashboard-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: hsl(var(--muted-foreground) / 0.4);
}

.dashboard-hero-card.positive::before {
    background: linear-gradient(180deg, #22c55e, #16a34a);
}

.dashboard-hero-card.negative::before {
    background: linear-gradient(180deg, hsl(var(--destructive)), #b91c1c);
}

.dashboard-hero-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: hsl(var(--muted-foreground));
}

.dashboard-hero-value {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: hsl(var(--foreground));
}

.dashboard-hero-card.positive .dashboard-hero-value {
    color: #22c55e;
}

.dashboard-hero-card.negative .dashboard-hero-value {
    color: hsl(var(--destructive));
}

/* Stats grid */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.dashboard-stat-card {
    background: hsl(var(--muted) / 0.25);
    border: 1px solid hsl(var(--border) / 0.6);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dashboard-stat-card:hover {
    border-color: hsl(var(--border));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dashboard-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: hsl(var(--muted-foreground));
}

.dashboard-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: hsl(var(--foreground));
}

/* Table card */
.dashboard-table-card {
    background: hsl(var(--card));
    border-radius: 16px;
    border: 1px solid hsl(var(--border) / 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.dashboard-table-card .table-responsive {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.dashboard-table thead {
    background: linear-gradient(180deg, hsl(var(--muted) / 0.5), hsl(var(--muted) / 0.35));
}

.dashboard-table th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--muted-foreground));
    border-bottom: 1px solid hsl(var(--border));
}

.dashboard-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid hsl(var(--border) / 0.6);
    font-weight: 500;
}

.dashboard-table tbody tr {
    transition: background-color 0.15s ease;
}

.dashboard-table tbody tr:hover {
    background: hsl(var(--muted) / 0.2);
}

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

.dashboard-table td.positive {
    color: #22c55e;
    font-weight: 700;
}

.dashboard-table td.negative {
    color: hsl(var(--destructive));
    font-weight: 700;
}

.dashboard-user-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: hsl(var(--primary));
    cursor: pointer;
    text-decoration: none;
    text-align: left;
}

.dashboard-user-link:hover {
    text-decoration: underline;
}

/* Legacy table class when used outside dashboard */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 1rem;
}

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

.table thead {
    background: hsl(var(--muted) / 0.4);
}

.table th {
    padding: 0.6rem 0.75rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid hsl(var(--border));
}

.table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid hsl(var(--border));
}

.table tbody tr:hover {
    background: hsl(var(--muted) / 0.2);
}

.table td.positive {
    color: #22c55e;
}

.table td.negative {
    color: hsl(var(--destructive));
}

/* Bets page + Admin dashboard: use full width of viewport */
.container:has(.bets-page-full),
.container:has(.admin-dashboard-full) {
    max-width: none;
    width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
@media (min-width: 768px) {
    .container:has(.bets-page-full),
    .container:has(.admin-dashboard-full) {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}
@media (min-width: 1024px) {
    .container:has(.bets-page-full),
    .container:has(.admin-dashboard-full) {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
.admin-dashboard-full {
    width: 100%;
    max-width: none;
}
.admin-dashboard-full .dashboard-section,
.admin-dashboard-full .dashboard-content,
.admin-dashboard-full .dashboard-tab-panel {
    max-width: none;
    width: 100%;
}
.admin-dashboard-full .dashboard-table-card {
    max-width: none;
}
.admin-overview-section .admin-hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.admin-overview-section .admin-stats-grid,
.admin-analysis-overview .admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.6rem;
    margin-bottom: 0;
}
@media (max-width: 1023px) {
    .admin-overview-section .admin-stats-grid,
    .admin-analysis-overview .admin-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 479px) {
    .admin-overview-section .admin-stats-grid,
    .admin-analysis-overview .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.admin-overview-section .admin-stats-grid .dashboard-stat-card,
.admin-analysis-overview .admin-stats-grid .dashboard-stat-card {
    min-width: 0;
}
.admin-analysis-overview .admin-hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.admin-analysis-sub {
    margin-top: 1rem !important;
    font-size: 1rem;
}
.admin-analysis-overview {
    margin-bottom: 0.5rem;
}
.admin-dashboard-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.admin-dashboard-toolbar .dashboard-filter-label {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}
.admin-dashboard-tabs {
    margin-bottom: 0.75rem;
}

/* Admin alerts filters */
.alerts-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}
.alerts-filter-row .form-group {
    flex: 1 1 auto;
    min-width: 140px;
}
.alerts-filter-row .form-group .input,
.alerts-filter-row .form-group select.input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.alerts-filter-row .form-group:last-child {
    flex: 0 0 auto;
}
.alerts-filter-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
.alerts-combobox-form-group {
    min-width: 260px;
    max-width: 520px;
    flex: 2 1 320px;
}
.alerts-combobox-wrap {
    position: relative;
    min-width: 260px;
    max-width: 520px;
}
.alerts-combobox-trigger {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    min-height: 2.5rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid hsl(var(--input));
    border-radius: calc(var(--radius) - 2px);
    background: hsl(var(--background));
    cursor: pointer;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    max-height: 2.5rem;
    overflow: hidden;
}
.alerts-combobox-trigger:hover {
    border-color: hsl(var(--ring) / 0.5);
}
.alerts-combobox-trigger:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.25);
}
.alerts-combobox-chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.alerts-combobox-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.4rem;
    background: hsl(var(--primary) / 0.15);
    color: hsl(var(--primary));
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
}
.alerts-combobox-chip-remove {
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.8;
}
.alerts-combobox-chip-remove:hover {
    opacity: 1;
}
.alerts-combobox-placeholder {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}
.alerts-combobox-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 2px;
    max-height: 220px;
    overflow-y: auto;
    background: hsl(var(--popover));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 50;
    display: none;
}
.alerts-combobox-dropdown.open {
    display: block;
}
.alerts-combobox-option {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s;
}
.alerts-combobox-option:hover {
    background: hsl(var(--muted) / 0.5);
}
.alerts-combobox-option.selected {
    background: hsl(var(--primary) / 0.12);
    color: hsl(var(--primary));
}
.alerts-dashboard-header {
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}
.alerts-dashboard-filters {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0.75rem;
}
.alerts-dashboard-filters > .form-group {
    flex: 0 0 auto;
}
.alerts-dashboard-filters > .alerts-combobox-form-group {
    flex: 1 1 260px;
}
@media (max-width: 900px) {
    .alerts-dashboard-filters {
        flex-wrap: wrap;
    }
}
.alerts-dashboard-filters .form-group {
    margin-bottom: 0;
}
.alerts-dashboard-filters .form-group-btn .btn {
    min-height: 2.5rem;
}
.form-label-invisible {
    visibility: hidden;
    display: block;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}
#alertsDashboardHeroCards {
    margin-bottom: 1.25rem;
}
#alertsDashboardStatsGrid {
    margin-bottom: 1.25rem;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    width: 100%;
}
@media (max-width: 900px) {
    #alertsDashboardStatsGrid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 520px) {
    #alertsDashboardStatsGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Analysis tab (admin dashboard): second row of cards full width, same as alerts dashboard */
#analysisStats {
    margin-bottom: 1.25rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    width: 100%;
}
#analysisStats .dashboard-stat-card {
    min-width: 0;
}
@media (max-width: 900px) {
    #analysisStats {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 520px) {
    #analysisStats {
        grid-template-columns: repeat(2, 1fr);
    }
}
.alerts-dashboard-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}
@media (max-width: 900px) {
    .alerts-dashboard-charts-grid {
        grid-template-columns: 1fr;
    }
}
.alerts-dashboard-chart-wrap {
    position: relative;
    min-height: 380px;
    margin-top: 0.5rem;
}
.alerts-dashboard-chart-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(var(--muted-foreground));
}
.alerts-dashboard-canvas {
    width: 100% !important;
    max-height: 420px;
}
.bets-page-full {
    width: 100%;
    max-width: none;
}
.bets-page-full .dashboard-section {
    max-width: none;
    width: 100%;
}
.bets-page-full .dashboard-content,
.bets-page-full .dashboard-tab-panel {
    width: 100%;
    max-width: none;
}
.bets-page-full .dashboard-table-card {
    max-width: none;
}
.bets-page-full .card-content {
    max-width: none;
}
.bets-card-full {
    width: 100%;
    max-width: none;
}
.bets-list-card-content {
    padding: 1rem 1.25rem;
    max-width: none;
}
.bets-list-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
.bets-list-toolbar-right {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
}
.bets-search-input {
    min-width: 200px;
    width: 260px;
}
@media (min-width: 640px) {
    .bets-search-input {
        min-width: 280px;
        width: 320px;
    }
}
.bets-status-select {
    width: 8rem;
    min-width: 7.5rem;
}
.bets-overview-section {
    margin-bottom: 0.75rem;
}
.bets-hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
@media (max-width: 639px) {
    .bets-hero-cards { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}
.bets-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.6rem;
    margin-bottom: 0;
}
@media (max-width: 1023px) {
    .bets-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 479px) {
    .bets-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.bets-stats-grid .dashboard-stat-card {
    min-width: 0;
}
.dashboard-stat-card-won .dashboard-stat-value { color: #22c55e; }
.dashboard-stat-card-lost .dashboard-stat-value { color: hsl(var(--destructive)); }
.bets-chart-section {
    margin-top: 0.5rem;
}
.bets-chart-section .dashboard-section-title {
    margin-bottom: 0.35rem;
}
.bets-chart-card {
    padding: 1rem;
}
.bets-chart-container {
    width: 100%;
    min-height: 320px;
    position: relative;
}
.bets-analysis-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.bets-analysis-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.bets-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 768px) {
    .bets-charts-row { grid-template-columns: 1fr; }
}
.bets-analysis-canvas {
    width: 100% !important;
    max-height: 280px;
}

/* Bets list: use full horizontal space like other screens */
.bets-list-table-wrap {
    overflow-x: auto;
    width: 100%;
    margin-top: 0.5rem;
    -webkit-overflow-scrolling: touch;
}
.bets-list-table-wrap .odds-table {
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
}
.bets-list-table-wrap .odds-table th,
.bets-list-table-wrap .odds-table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.8125rem;
}
.bets-list-table-wrap .odds-table th:nth-child(1),
.bets-list-table-wrap .odds-table td:nth-child(1) { width: 20%; min-width: 10rem; white-space: normal; word-break: break-word; }  /* Event */
.bets-list-table-wrap .odds-table th:nth-child(2),
.bets-list-table-wrap .odds-table td:nth-child(2) { width: 8%; min-width: 5rem; }   /* Start */
.bets-list-table-wrap .odds-table th:nth-child(3),
.bets-list-table-wrap .odds-table td:nth-child(3) { width: 6%; min-width: 4rem; }  /* Sport */
.bets-list-table-wrap .odds-table th:nth-child(4),
.bets-list-table-wrap .odds-table td:nth-child(4) { width: 14%; min-width: 8rem; white-space: normal; word-break: break-word; }  /* Competition */
.bets-list-table-wrap .odds-table th:nth-child(5),
.bets-list-table-wrap .odds-table td:nth-child(5) { width: 7%; min-width: 4.5rem; }  /* Market */
.bets-list-table-wrap .odds-table th:nth-child(6),
.bets-list-table-wrap .odds-table td:nth-child(6) { width: 9%; min-width: 5rem; }  /* Outcome */
.bets-list-table-wrap .odds-table th:nth-child(7),
.bets-list-table-wrap .odds-table td:nth-child(7) { width: 6%; min-width: 4rem; }  /* Stake */
.bets-list-table-wrap .odds-table th:nth-child(8),
.bets-list-table-wrap .odds-table td:nth-child(8) { width: 5%; min-width: 3.5rem; }  /* Odds */
.bets-list-table-wrap .odds-table th:nth-child(9),
.bets-list-table-wrap .odds-table td:nth-child(9) { width: 6%; min-width: 4rem; }   /* Logged EV */
.bets-list-table-wrap .odds-table th:nth-child(10),
.bets-list-table-wrap .odds-table td:nth-child(10) { width: 7%; min-width: 4.5rem; } /* Current EV/CLV */
.bets-list-table-wrap .odds-table th:nth-child(11),
.bets-list-table-wrap .odds-table td:nth-child(11) { width: 5%; min-width: 4rem; } /* Status */
.bets-list-table-wrap .odds-table th:nth-child(12),
.bets-list-table-wrap .odds-table td:nth-child(12) { width: 6%; min-width: 4rem; }  /* Profit */
.bets-list-table-wrap .odds-table th:nth-child(13),
.bets-list-table-wrap .odds-table td:nth-child(13) { width: 3%; min-width: 2.5rem; } /* Actions */
.bets-analysis-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.bets-analysis-toolbar .dashboard-filter-label {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}
.bets-analysis-toolbar .dashboard-filter-label .input,
.bets-analysis-toolbar .btn {
    height: 2.25rem;
    min-height: 2.25rem;
    box-sizing: border-box;
}
