:root {
    /* Vegas Poker - Cores do Logo (Roxo Profundo #663399) */
    --primary-color: #663399; /* Roxo profundo do logo Vegas Poker */
    --primary-dark: #512e7a; /* Roxo mais escuro */
    --primary-hover: #7d4ba8; /* Roxo mais claro para hover */
    --purple-light: #8e6db8; /* Roxo claro para variações */
    --purple-dark: #4a2c6b; /* Roxo escuro para bordas */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;
    --border-color: #4a4a4a;
    --hover-bg: #333333;
    
    /* Gradiente suave baseado no roxo do logo */
    --vegas-gradient: linear-gradient(180deg, #512e7a 0%, #663399 50%, #4a2c6b 100%);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
}

.page {
    display: flex;
    min-height: 100vh;
    overflow-x: visible;
    width: 100%;
}

/* Sidebar Simples e Clara */
.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 1rem 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    transition: width 0.3s ease, padding 0.3s ease;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 70px;
    padding: 1rem 0;
}

.sidebar.collapsed .vegas-logo-text {
    font-size: 0.9rem;
    padding: 0 0.5rem;
    margin-bottom: 1rem;
}

.sidebar.collapsed .menu-section-title {
    display: none;
}

.sidebar.collapsed .list-group-item {
    justify-content: center;
    padding: 0.75rem 0.5rem !important;
    text-align: center;
    position: relative;
}

.sidebar.collapsed .list-group-item span:not(.icon-only) {
    display: none;
}

.sidebar.collapsed .list-group-item .icon-only {
    font-size: 1.5rem;
    display: block;
    margin: 0 auto;
}

.sidebar .list-group-item .icon-only {
    display: inline-block;
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.sidebar.collapsed .btn {
    padding: 0.75rem 0.5rem !important;
    min-height: 44px;
}

.sidebar.collapsed .btn .icon-only {
    display: block;
    margin: 0 auto;
    font-size: 1.5rem;
}

.sidebar.collapsed .btn span:not(.icon-only) {
    display: none;
}

/* Tooltip para menu colapsado */
.sidebar.collapsed .list-group-item {
    position: relative;
}

.sidebar.collapsed .list-group-item:hover::after {
    content: attr(data-title);
    position: absolute;
    left: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

/* Botão para colapsar sidebar (desktop) */
.sidebar-toggle {
    display: none;
    position: relative;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-toggle .icon-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

@media (min-width: 992px) {
    .sidebar-toggle {
        display: flex;
    }

    .page.sidebar-collapsed main {
        margin-left: 0;
    }
}

.sidebar h5 {
    background: var(--vegas-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    font-size: 1.25rem;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color); /* Fallback para browsers que não suportam background-clip */
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    width: 100%;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
}

.sidebar .list-group {
    background: transparent;
    padding: 0 0.75rem;
    border: none;
}

.sidebar .list-group-item,
.sidebar .list-group-item-action {
    background: transparent !important;
    border: none !important;
    color: var(--text-primary) !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: 0.25rem !important;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, padding 0.3s ease;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.sidebar .list-group-item span:not(.icon-only) {
    transition: opacity 0.3s ease, width 0.3s ease;
}

.sidebar .list-group-item:link,
.sidebar .list-group-item:visited,
.sidebar .list-group-item:any-link,
.sidebar .list-group-item-action:link,
.sidebar .list-group-item-action:visited,
.sidebar .list-group-item-action:any-link {
    background: transparent !important;
    border: none !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
}

.sidebar .list-group-item:hover,
.sidebar .list-group-item-action:hover {
    background: var(--hover-bg) !important;
    color: var(--primary-hover) !important;
    text-decoration: none !important;
    outline: none !important;
    transform: none !important;
}

.sidebar .list-group-item:focus,
.sidebar .list-group-item:active,
.sidebar .list-group-item-action:focus,
.sidebar .list-group-item-action:active {
    background: var(--hover-bg) !important;
    color: var(--primary-hover) !important;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.sidebar .list-group-item.active,
.sidebar .list-group-item-action.active {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
    font-weight: 600 !important;
}

.sidebar .list-group-item.active:hover,
.sidebar .list-group-item.active:focus,
.sidebar .list-group-item-action.active:hover,
.sidebar .list-group-item-action.active:focus {
    background: var(--primary-hover) !important;
    color: #ffffff !important;
}

/* Main Content */
main {
    flex: 1;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    overflow-x: visible !important;
    width: 100%;
    min-width: 0;
}

.top-row {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-dark) 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 60px;
    overflow-x: visible !important;
    width: 100%;
    box-sizing: border-box;
}

.top-row .navbar-brand {
    color: #ffffff !important;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0 auto;
    flex: 0 0 auto;
    white-space: nowrap;
    overflow: visible !important;
    text-overflow: clip;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.content {
    flex: 1;
    padding: 1.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(102, 51, 153, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(102, 51, 153, 0.05) 0px, transparent 50%);
    overflow-x: visible;
}

main {
    overflow-x: visible !important;
    width: 100%;
}

.content h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.content h2 {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.content h4, .content h5 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

/* Links Grandes e Claros */
a {
    text-decoration: none;
    color: var(--primary-hover);
    font-size: 1rem;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Cards Modernos */
.card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.card-body {
    padding: 1.5rem;
    font-size: 1rem;
}

.card-header {
    background: var(--primary-color);
    border-bottom: 2px solid var(--primary-dark);
    color: #ffffff;
    padding: 1.25rem 2rem;
    font-weight: bold;
    font-size: 1.25rem;
}

.card-title {
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

/* Botões Modernos */
.btn {
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.15rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
}

.btn-success {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border-color: transparent;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(102, 51, 153, 0.4);
    transform: translateY(-2px);
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 51, 153, 0.3);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-dark);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-color);
    color: #ffffff;
}

.btn-outline-light {
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(102, 51, 153, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(102, 51, 153, 0.2);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-height: 44px;
}

/* Tabelas Modernas */
.table-dark {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.table-dark thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.15rem;
    padding: 1.5rem 2rem;
    text-align: left;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.table-dark tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.table-dark tbody tr:hover {
    background: var(--hover-bg);
}

.table-dark tbody td {
    padding: 1.5rem 2rem;
    border: none;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(45, 45, 45, 0.5);
}

/* Badges Grandes */
.badge {
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
}

.bg-success {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

.bg-secondary {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

/* Formulários Modernos e Grandes */
.form-control {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 1.125rem 1.5rem;
    font-size: 1.35rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 64px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.form-control:hover {
    border-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(102, 51, 153, 0.2);
}

.form-control:focus {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 4px rgba(102, 51, 153, 0.25), 0 6px 16px rgba(0, 0, 0, 0.2);
    outline: none;
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--text-muted);
    font-size: 1.25rem;
    opacity: 0.7;
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.875rem;
    font-size: 1.3rem;
    display: block;
    letter-spacing: 0.3px;
}

.form-text {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
}

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

.form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
}

.form-check-label {
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
}

/* Alertas Grandes e Claros */
.alert {
    border: 2px solid;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.15);
    border-color: #dc3545;
    color: #ffcccc;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.15);
    border-color: #ffc107;
    color: #fff3cd;
}

.alert-info {
    background: rgba(13, 202, 240, 0.15);
    border-color: #0dcaf0;
    color: #cff4fc;
}

.alert strong {
    font-weight: bold;
    font-size: 1.2rem;
}

/* List Group Simples */
.list-group {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.list-group-item {
    background: var(--bg-secondary);
    border: none;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item-action:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.list-group-item strong {
    font-size: 1.25rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.list-group-item small {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Utilities */
.text-muted {
    color: var(--text-muted) !important;
    font-size: 1rem;
}

.text-light {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.border-secondary {
    border-color: var(--border-color) !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-2 {
    margin-bottom: 0.75rem !important;
}

.mt-3 {
    margin-top: 1.5rem !important;
}

.mt-4 {
    margin-top: 2rem !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

/* Sidebar Utilities */
.sidebar .h-100 {
    height: 100% !important;
}

.sidebar .d-flex {
    display: flex !important;
}

.sidebar .flex-column {
    flex-direction: column !important;
}

.sidebar .flex-grow-1 {
    flex-grow: 1 !important;
}

.sidebar .mt-auto {
    margin-top: auto !important;
}

.sidebar .w-100 {
    width: 100% !important;
}

.sidebar .pt-3 {
    padding-top: 1.5rem !important;
}

.sidebar .p-2 {
    padding: 0.75rem !important;
}

.sidebar .p-3 {
    padding: 1rem !important;
}

/* Melhorias de Acessibilidade */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Gradiente de texto para logo Vegas Poker */
.vegas-logo-text {
    background: var(--vegas-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary-color); /* Fallback */
    display: block;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.5rem !important;
    padding: 0 1rem !important;
    font-weight: bold !important;
    margin-bottom: 2.5rem !important;
    text-align: center !important;
}

/* Títulos de seção do menu */
.menu-section-title {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.menu-section-title:first-child {
    margin-top: 0;
}

/* ============================================
   MOBILE-FIRST RESPONSIVE DESIGN
   ============================================ */

/* Menu Hambúrguer para Mobile */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1001;
    background: var(--primary-color);
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile First - Base para telas pequenas */
@media (max-width: 991.98px) {
    .page {
        flex-direction: column;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-overlay {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 280px;
        height: 100vh;
        max-height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar.mobile-open {
        left: 0;
    }

    .top-row {
        padding: 0.75rem 0.25rem 0.75rem 2rem !important; /* Espaço mínimo para o botão hambúrguer */
        min-height: 56px;
        gap: 0.25rem !important;
        overflow: visible !important;
        margin: 0 !important;
    }
    
    .top-row.px-4 {
        padding-left: 2rem !important;
        padding-right: 0.25rem !important;
    }

    .top-row .navbar-brand {
        font-size: 0.9rem !important;
        letter-spacing: 0.5px;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
        margin: 0;
    }

    .content {
        padding: 1rem;
        width: 100%;
    }

    .content h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .content h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .content h4, .content h5 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    /* Cards otimizados para mobile */
    .card {
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }

    .card-body {
        padding: 1.5rem;
        font-size: 1rem;
    }

    /* Botões maiores para touch */
    .btn {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .btn-sm {
        min-height: 44px;
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

/* Formulários otimizados */
.form-control {
    min-height: 48px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Campo de nome de torneio - maior para evitar cortes */
.tournament-name-input {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    font-size: 1.1rem;
    padding: 0.875rem 1.25rem;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tournament-name-input:focus {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

    .form-label {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    /* Tabelas responsivas */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-dark {
        font-size: 0.9rem;
    }

    .table-dark thead th {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .table-dark tbody td {
        padding: 1rem;
        font-size: 0.9rem;
    }

    /* Alertas */
    .alert {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    /* List group */
    .list-group-item {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    /* Sidebar menu items */
    .sidebar .list-group-item,
    .sidebar .list-group-item-action {
        padding: 1rem 1.25rem !important;
        font-size: 1rem !important;
        min-height: 48px;
    }

    /* Permitir scroll no container do menu no mobile - remover altura fixa */
    .sidebar > div.h-100 {
        height: auto !important;
    }

    /* Ajustar flex-grow-1 no mobile para permitir scroll */
    .sidebar .flex-grow-1 {
        flex-grow: 0 !important;
    }

    /* Badges */
    .badge {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 991.98px) {
    .sidebar {
        width: 240px;
    }

    .content {
        padding: 2rem;
    }

    .btn {
        width: auto;
        min-width: 200px;
    }
}

/* Desktop - Mantém layout atual */
@media (min-width: 992px) {
    .sidebar {
        position: relative;
        left: 0;
        width: 260px;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .mobile-overlay {
        display: none;
    }

    .btn {
        width: auto;
    }
}

/* Melhorias para telas muito pequenas (smartphones pequenos) */
@media (max-width: 575.98px) {
    .content {
        padding: 0.75rem;
    }

    .top-row {
        padding: 0.75rem 0.25rem 0.75rem 2rem !important;
        min-height: 56px;
        gap: 0.25rem !important;
        overflow: visible !important;
        margin: 0 !important;
    }
    
    .top-row.px-4 {
        padding-left: 2rem !important;
        padding-right: 0.25rem !important;
    }

    .top-row .navbar-brand {
        font-size: 0.85rem !important;
        letter-spacing: 0.3px;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
        margin: 0;
    }

    .card-body {
        padding: 1rem;
    }

    .content h1 {
        font-size: 1.5rem;
    }

    .content h3 {
        font-size: 1.1rem;
    }

    /* Cards em coluna única */
    .row {
        margin: 0;
    }

    .row > [class*="col-"] {
        padding: 0;
        margin-bottom: 1rem;
    }

    /* Inputs full width em mobile */
    .form-control {
        width: 100%;
    }
}

/* Orientação landscape em mobile */
@media (max-width: 991.98px) and (orientation: landscape) {
    .sidebar {
        width: 240px;
    }

    .top-row {
        min-height: 50px;
        padding: 0.5rem 1rem 0.5rem 3.5rem;
    }
}

/* Melhorias de acessibilidade e touch */
@media (hover: none) and (pointer: coarse) {
    /* Dispositivos touch */
    .btn, .list-group-item, .card {
        -webkit-tap-highlight-color: rgba(102, 51, 153, 0.3);
    }

    .btn:active {
        transform: scale(0.98);
    }
}

/* Prevenir zoom em inputs no iOS */
@supports (-webkit-touch-callout: none) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important; /* Previne zoom automático no iOS */
    }
}

/* Otimizações específicas para páginas públicas */
.tournament-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tournament-card:active {
    transform: scale(0.98);
}

.tournament-logo img {
    width: 100%;
    height: auto;
}

.tournament-info h4 {
    font-size: 1.25rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.tournament-registration {
    position: sticky;
    top: 1rem;
}

@media (max-width: 991.98px) {
    .tournament-registration {
        position: relative;
        top: 0;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border-color);
    }

    .tournament-logo {
        text-align: center;
        margin-bottom: 1rem;
    }

    .tournament-logo img {
        max-width: 80px;
        max-height: 80px;
    }

    .tournament-info h4 {
        font-size: 1.1rem;
        text-align: center;
    }
}

/* Melhorias de espaçamento em mobile */
@media (max-width: 575.98px) {
    .tournament-card .card-body {
        padding: 1rem;
    }

    .tournament-info {
        text-align: center;
    }

    .tournament-info .mb-2 {
        font-size: 0.9rem;
    }
}

/* Links de telefone otimizados para mobile */
a[href^="tel:"] {
    color: var(--primary-hover);
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

a[href^="tel:"]:hover,
a[href^="tel:"]:active {
    background: rgba(102, 51, 153, 0.2);
    color: var(--primary-color);
}

/* Cards de clubes otimizados */
.clube-card {
    transition: transform 0.2s ease;
}

.clube-card:active {
    transform: scale(0.98);
}

/* Melhorias para formulários de login */
.login-card {
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 575.98px) {
    .login-card {
        max-width: 100%;
    }
}

/* Gap utilities para flexbox */
.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

/* Flex utilities */
.flex-fill {
    flex: 1 1 auto !important;
}

/* Modal de Comanda - Fundo Branco */
.comanda-modal-card {
    background-color: #ffffff !important;
    color: #212529 !important;
}

.comanda-modal-card .card-header {
    background-color: #ffffff !important;
    color: #212529 !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.comanda-modal-card .card-body {
    background-color: #ffffff !important;
    color: #212529 !important;
}

.comanda-modal-card .card-footer {
    background-color: #ffffff !important;
    border-top: 1px solid #dee2e6 !important;
}
