/* Reset e configurações básicas */



* {



    margin: 0;



    padding: 0;



    box-sizing: border-box;



}







body {



    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;



    background: linear-gradient(135deg, #1E2832 0%, #2A3441 100%);



    color: #ffffff;



    line-height: 1.6;



    min-height: 100vh;



}







/* Container principal */



.container {



    max-width: 1800px;



    margin: 0 auto;



    padding: 0 24px;



}







/* Header */



.header {



    background: linear-gradient(135deg, #2A3441 0%, #1E2832 100%);



    border-bottom: 1px solid rgba(0, 212, 170, 0.2);



    padding: 24px 0;



    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);



}







.header-content {



    display: flex;



    justify-content: space-between;



    align-items: center;



    gap: 24px;



}







.header-title h1 {



    font-size: 2.5rem;



    font-weight: 700;



    background: linear-gradient(135deg, #00D4AA 0%, #1DD1A1 100%);



    -webkit-background-clip: text;



    -webkit-text-fill-color: transparent;



    background-clip: text;



    margin-bottom: 4px;



}







.header-title p {



    color: #94a3b8;



    font-size: 0.875rem;



}







.header-actions {



    display: flex;



    gap: 12px;



}







.header-banca {



    text-align: right;



    background: rgba(0, 212, 170, 0.1);



    padding: 16px 20px;



    border-radius: 12px;



    border: 1px solid rgba(0, 212, 170, 0.3);



}







.header-banca .valor {



    font-size: 1.8rem;



    font-weight: 700;



    color: #00D4AA;



    margin-bottom: 4px;



    text-shadow: 0 0 10px rgba(0, 212, 170, 0.3);



}







.header-banca .label {



    color: #94a3b8;



    font-size: 0.875rem;



}







/* Botões */



.btn {



    padding: 12px 20px;



    border: none;



    border-radius: 10px;



    font-size: 0.875rem;



    font-weight: 600;



    cursor: pointer;



    transition: all 0.3s ease;



    text-decoration: none;



    display: inline-flex;



    align-items: center;



    gap: 8px;



    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);



}







.btn-primary {



    background: linear-gradient(135deg, #00D4AA 0%, #1DD1A1 100%);



    color: #ffffff;



    border: 1px solid rgba(0, 212, 170, 0.3);



}







.btn-primary:hover {



    background: linear-gradient(135deg, #00B89A 0%, #00A085 100%);



    transform: translateY(-2px);



    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.3);



}







.btn-secondary {



    background: rgba(45, 45, 45, 0.8);



    color: #ffffff;



    border: 1px solid rgba(255, 255, 255, 0.1);



}







.btn-secondary:hover {



    background: rgba(64, 64, 64, 0.8);



    transform: translateY(-1px);



}







.btn-danger {



    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);



    color: #ffffff;



}







.btn-danger:hover {



    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);



    transform: translateY(-1px);



}







.btn-small {



    padding: 6px 12px;



    font-size: 0.75rem;



}







/* Main content */



.main {



    padding: 40px 0;



}







/* Grid de métricas */



.metrics-grid {



    display: grid;



    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));



    gap: 24px;



    margin-bottom: 40px;



}







/* Cards */



.card {



    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(29, 209, 161, 0.05) 100%);



    border: 1px solid rgba(0, 212, 170, 0.2);



    border-radius: 16px;



    padding: 28px;



    transition: all 0.4s ease;



    backdrop-filter: blur(10px);



    position: relative;



    overflow: hidden;



}







.card::before {



    content: '';



    position: absolute;



    top: 0;



    left: 0;



    right: 0;



    height: 3px;



    background: linear-gradient(135deg, #00D4AA 0%, #1DD1A1 100%);


}







.card:hover {



    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15) 0%, rgba(29, 209, 161, 0.1) 100%);



    transform: translateY(-4px);



    box-shadow: 0 20px 40px rgba(0, 212, 170, 0.2);



    border-color: rgba(0, 212, 170, 0.4);



}







.card-header {



    display: flex;



    justify-content: space-between;



    align-items: center;



    margin-bottom: 20px;



}







.card-title {



    font-size: 0.9rem;



    font-weight: 600;



    color: #94a3b8;



    text-transform: uppercase;



    letter-spacing: 0.5px;



}







.card-icon {



    font-size: 20px;



    opacity: 0.8;



}







.card-value {



    font-size: 2.2rem;



    font-weight: 800;



    color: #ffffff;



    margin-bottom: 12px;



    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);



}







.card-trend {



    font-size: 0.8rem;



    font-weight: 600;



    padding: 4px 8px;



    border-radius: 6px;



    display: inline-block;



}







.card-trend.positive {



    color: #00D4AA;



    background: rgba(0, 212, 170, 0.1);



}







.card-trend.negative {



    color: #ef4444;



    background: rgba(239, 68, 68, 0.1);



}







/* Grid de gráficos */



.charts-grid {



    display: grid;



    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));



    gap: 32px;



    margin-bottom: 40px;



}







.chart-container {



    height: 350px;



    position: relative;



    background: rgba(0, 0, 0, 0.2);



    border-radius: 12px;



    padding: 20px;



}







/* Tabela */



.table-container {



    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(45, 45, 45, 0.5) 100%);



    border: 1px solid rgba(0, 212, 170, 0.2);



    border-radius: 16px;



    overflow: hidden;



    backdrop-filter: blur(10px);



    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);



}







.table-header {



    padding: 28px;



    border-bottom: 1px solid rgba(0, 212, 170, 0.2);



    display: flex;



    justify-content: space-between;



    align-items: center;



    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(29, 209, 161, 0.05) 100%);



}







.table-header h3 {



    font-size: 1.25rem;



    font-weight: 700;



    color: #ffffff;



    display: flex;



    align-items: center;



    gap: 12px;



}







.table-controls {



    display: flex;



    gap: 12px;



}







.table-content {



    overflow-x: auto;



}







table {



    width: 100%;



    border-collapse: collapse;



}







th, td {



    text-align: left;



    padding: 16px 20px;



    border-bottom: 1px solid rgba(45, 45, 45, 0.5);



}







th {



    background: rgba(0, 0, 0, 0.3);



    font-weight: 600;



    color: #94a3b8;



    font-size: 0.875rem;



    text-transform: uppercase;



    letter-spacing: 0.5px;



}







td {



    color: #ffffff;



    font-size: 0.875rem;



}







tr:hover {



    background: rgba(0, 212, 170, 0.05);



}







/* Status badges */



.status-badge {



    display: inline-block;



    padding: 6px 12px;



    border-radius: 8px;



    font-size: 0.75rem;



    font-weight: 600;



    text-transform: uppercase;



    letter-spacing: 0.5px;



}







.status-green {



    background: linear-gradient(135deg, #00D4AA 0%, #1DD1A1 100%);



    color: #ffffff;



    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.3);



}







.status-meio-green {



    background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);



    color: #ffffff;



    box-shadow: 0 2px 8px rgba(132, 204, 22, 0.3);



}







.status-red {



    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);



    color: #ffffff;



    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);



}







.status-meio-red {



    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);



    color: #ffffff;



    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);



}







.status-empate {



    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);



    color: #ffffff;



}







.status-devolucao {



    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);



    color: #ffffff;



}







.status-anulada {



    background: linear-gradient(135deg, #a1a1aa 0%, #71717a 100%);



    color: #ffffff;



}







.status-pendente {



    background: linear-gradient(135deg, #ffc107 0%, #f59e0b 100%);



    color: #000000;



    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);



}







/* Valores monetários */



.valor-positivo {



    color: #00D4AA;



    font-weight: 700;



    text-shadow: 0 0 10px rgba(0, 212, 170, 0.3);



}







.valor-negativo {



    color: #ef4444;



    font-weight: 700;



    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);



}







.valor-neutro {



    color: #94a3b8;



    font-weight: 600;



}







/* Paginação */



.pagination {



    padding: 28px;



    display: flex;



    justify-content: center;



    align-items: center;



    gap: 12px;



    border-top: 1px solid rgba(0, 212, 170, 0.2);



    background: rgba(0, 0, 0, 0.2);



}







.pagination-btn {



    padding: 10px 16px;



    background: rgba(45, 45, 45, 0.8);



    color: #ffffff;



    border: 1px solid rgba(255, 255, 255, 0.1);



    border-radius: 8px;



    cursor: pointer;



    font-size: 0.875rem;



    font-weight: 500;



    transition: all 0.3s ease;



}







.pagination-btn:hover:not(:disabled) {



    background: rgba(64, 64, 64, 0.8);



    transform: translateY(-1px);



}







.pagination-btn:disabled {



    opacity: 0.5;



    cursor: not-allowed;



}







.pagination-btn.active {



    background: linear-gradient(135deg, #00D4AA 0%, #1DD1A1 100%);



    color: #ffffff;



    border-color: rgba(0, 212, 170, 0.3);



    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);



}







.pagination-info {



    color: #94a3b8;



    font-size: 0.875rem;



    margin: 0 16px;



}







/* Modais */



.modal {



    display: none;



    position: fixed;



    z-index: 1000;



    left: 0;



    top: 0;



    width: 100%;



    height: 100%;



    background-color: rgba(0, 0, 0, 0.8);



    backdrop-filter: blur(8px);



}







.modal.show {



    display: flex;



    align-items: center;



    justify-content: center;



}







.modal-content {



    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 45, 45, 0.9) 100%);



    border: 1px solid rgba(0, 212, 170, 0.2);



    border-radius: 16px;



    width: 90%;



    max-width: 800px;



    max-height: 95vh;



    overflow-y: auto;



    animation: modalSlideIn 0.4s ease;



    backdrop-filter: blur(10px);



    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);



}







@keyframes modalSlideIn {



    from {



        opacity: 0;



        transform: translateY(-50px) scale(0.9);



    }



    to {



        opacity: 1;



        transform: translateY(0) scale(1);



    }



}







.modal-header {



    padding: 28px 28px 0 28px;



    display: flex;



    justify-content: space-between;



    align-items: center;



    border-bottom: 1px solid rgba(0, 212, 170, 0.2);



    margin-bottom: 28px;



}







.modal-header h3 {



    font-size: 1.25rem;



    font-weight: 700;



    color: #ffffff;



}







.close {



    color: #94a3b8;



    font-size: 28px;



    font-weight: bold;



    cursor: pointer;



    transition: all 0.3s ease;



    border-radius: 50%;



    width: 40px;



    height: 40px;



    display: flex;



    align-items: center;



    justify-content: center;



}







.close:hover {



    color: #ffffff;



    background: rgba(239, 68, 68, 0.2);



}







.modal-body {



    padding: 0 28px 28px 28px;



}







/* Formulários */



.form-group {



    margin-bottom: 24px;



}







.form-group label {



    display: block;



    margin-bottom: 8px;



    font-weight: 600;



    color: #ffffff;



    font-size: 0.875rem;



}







.form-group input,



.form-group select,



.form-group textarea {



    width: 100%;



    padding: 14px 16px;



    background: rgba(45, 45, 45, 0.8);



    border: 1px solid rgba(255, 255, 255, 0.1);



    border-radius: 10px;



    color: #ffffff;



    font-size: 0.875rem;



    transition: all 0.3s ease;



}







.form-group input:focus,



.form-group select:focus,



.form-group textarea:focus {



    outline: none;



    border-color: #00D4AA;



    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);



    background: rgba(45, 45, 45, 0.9);



}







.form-group textarea {



    resize: vertical;



    min-height: 100px;



}







.form-actions {



    display: flex;



    gap: 12px;



    justify-content: flex-end;



    margin-top: 28px;



    padding-top: 28px;



    border-top: 1px solid rgba(0, 212, 170, 0.2);



}







/* Loading */



.loading {



    display: flex;



    justify-content: center;



    align-items: center;



    height: 200px;



    color: #94a3b8;



}







.loading-spinner {



    width: 40px;



    height: 40px;



    border: 3px solid rgba(45, 45, 45, 0.3);



    border-top: 3px solid #00D4AA;



    border-radius: 50%;



    animation: spin 1s linear infinite;



    margin-right: 16px;



}







@keyframes spin {



    0% { transform: rotate(0deg); }



    100% { transform: rotate(360deg); }



}







/* Ações da tabela */



.table-actions {



    display: flex;



    gap: 8px;



}







/* Responsividade */



@media (max-width: 768px) {



    .container {



        padding: 0 16px;



    }



    



    .header-content {



        flex-direction: column;



        gap: 20px;



        text-align: center;



    }



    



    .header-actions {



        order: 2;



    }



    



    .header-banca {



        order: 1;



    }



    



    .metrics-grid {



        grid-template-columns: 1fr;



        gap: 16px;



    }



    



    .charts-grid {



        grid-template-columns: 1fr;



    }



    



    .card {



        padding: 20px;



    }



    



    .card-value {



        font-size: 1.8rem;



    }



    



    .header-title h1 {



        font-size: 2rem;



    }



    



    .chart-container {



        height: 280px;



    }



    



    .table-header {



        flex-direction: column;



        gap: 16px;



        align-items: flex-start;



        padding: 20px;



    }



    



    .modal-content {



        width: 95%;



        margin: 20px;



    }



    



    .form-actions {



        flex-direction: column;



    }



    



    .pagination {



        flex-wrap: wrap;



        gap: 8px;



    }



    



    .pagination-info {



        width: 100%;



        text-align: center;



        margin: 12px 0;



    }



}







@media (max-width: 480px) {



    .main {



        padding: 24px 0;



    }



    



    .card {



        padding: 16px;



    }



    



    .table-header {



        padding: 16px;



    }



    



    th, td {



        padding: 12px 16px;



        font-size: 0.8rem;



    }



    



    .btn {



        padding: 8px 16px;



        font-size: 0.8rem;



    }



    



    .table-actions {



        flex-direction: column;



        gap: 6px;



    }



}







/* Animações */



.fade-in {



    animation: fadeIn 0.6s ease-in;



}







@keyframes fadeIn {



    from { 



        opacity: 0; 



        transform: translateY(30px); 



    }



    to { 



        opacity: 1; 



        transform: translateY(0); 



    }



}







/* Utilitários */



.text-center { text-align: center; }



.text-right { text-align: right; }



.mb-4 { margin-bottom: 16px; }



.mb-8 { margin-bottom: 32px; }



.flex { display: flex; }



.items-center { align-items: center; }



.gap-2 { gap: 8px; }







/* Notificações */



.notification {



    position: fixed;



    top: 24px;



    right: 24px;



    padding: 16px 24px;



    border-radius: 12px;



    color: #ffffff;



    font-weight: 600;



    z-index: 1001;



    animation: slideInRight 0.4s ease;



    backdrop-filter: blur(10px);



    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);



}







.notification.success {



    background: linear-gradient(135deg, #00D4AA 0%, #1DD1A1 100%);



    border: 1px solid rgba(0, 212, 170, 0.3);



}







.notification.error {



    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);



    border: 1px solid rgba(239, 68, 68, 0.3);



}







.notification.warning {



    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);



    border: 1px solid rgba(245, 158, 11, 0.3);



}







@keyframes slideInRight {



    from {



        opacity: 0;



        transform: translateX(100%);



    }



    to {



        opacity: 1;



        transform: translateX(0);



    }



}















.header-logo {



    height: 100px; /* Aumentado em 100% */



    margin-right: 15px;



    vertical-align: middle;



}







.header-title {



    display: flex;



    align-items: center;



}























.header-title {



    display: flex;



    align-items: center;



    gap: 15px;



}







.header-text {



    display: flex;



    flex-direction: column;



}







.header-text h1 {



    margin: 0;



    font-size: 2rem;



    font-weight: 700;



    background: linear-gradient(135deg, #00D4AA 0%, #1DD1A1 100%);



    -webkit-background-clip: text;



    -webkit-text-fill-color: transparent;



}







.header-text p {



    margin: 0;



    color: #94a3b8;



    font-size: 0.9rem;



}







/* Estilos específicos para o modal de saque */



.btn-danger {



    background: linear-gradient(135deg, #FF4C4C 0%, #dc2626 100%);



    color: #ffffff;



    border: 1px solid rgba(255, 76, 76, 0.3);



}







.btn-danger:hover {



    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);



    transform: translateY(-2px);



    box-shadow: 0 8px 25px rgba(255, 76, 76, 0.3);



}







.form-help {



    display: block;



    margin-top: 6px;



    font-size: 0.75rem;



    color: #39FF14;          /* verde neon */



    font-style: italic;



    text-shadow: 



        0 0 2px #39FF14,



        0 0 4px #39FF14,  /* brilho mais suave */



}







/* Card Total Sacado com cor diferenciada */



.card:has(#totalSacado) {



    background: linear-gradient(135deg, rgba(255, 76, 76, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);



    border: 1px solid rgba(255, 76, 76, 0.2);



}







.card:has(#totalSacado)::before {



    background: linear-gradient(90deg, #FF4C4C 0%, #dc2626 100%);



}







.card:has(#totalSacado):hover {



    background: linear-gradient(135deg, rgba(255, 76, 76, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);



    border-color: rgba(255, 76, 76, 0.4);



    box-shadow: 0 20px 40px rgba(255, 76, 76, 0.2);



}











/* Layout de duas colunas para formulário de apostas */



.form-grid {



    display: grid;



    grid-template-columns: 1fr 1fr;



    gap: 20px;



}







.form-grid .form-group {



    margin-bottom: 20px;



}







.form-group.full-width {



    grid-column: 1 / -1;



}







/* Responsividade para formulário de duas colunas */



@media (max-width: 768px) {



    .form-grid {



        grid-template-columns: 1fr;



        gap: 16px;



    }



    



    .form-group.full-width {



        grid-column: 1;



    }



}







/* Estilos para gráfico de ganhos por esporte */



.sports-chart-container {



    margin-top: 32px;



}







.sports-chart-container .card {



    height: 400px;



}







.sports-chart-container .chart-container {



    height: 320px;



}









/* Estilos para modal de limpeza */

.warning-message {

    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);

    border: 1px solid rgba(239, 68, 68, 0.3);

    border-radius: 12px;

    padding: 24px;

    margin-bottom: 24px;

    display: flex;

    gap: 16px;

    align-items: flex-start;

}



.warning-icon {

    font-size: 24px;

    flex-shrink: 0;

    margin-top: 4px;

}



.warning-text h4 {

    color: #ef4444;

    font-size: 1.1rem;

    font-weight: 700;

    margin-bottom: 12px;

}



.warning-text p {

    color: #ffffff;

    margin-bottom: 12px;

    line-height: 1.6;

}



.warning-text ul {

    color: #ffffff;

    margin: 12px 0;

    padding-left: 20px;

}



.warning-text li {

    margin-bottom: 6px;

    line-height: 1.5;

}



.warning-text strong {

    color: #ef4444;

    font-weight: 700;

}



/* ==== Toast Notification ==== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #3a3c3e;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(58, 60, 62, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    transform: translateX(400px);
    transition: all 0.4s ease;
    border: 1px solid #94a3b8;
}

.toast.show {
    transform: translateX(0);
}

.toast.hide {
    transform: translateX(400px);
}

/* Variações de toast */
.toast.success {
    background: #3a3c3e;
    border: 1px solid #94a3b8;
    box-shadow: 0 10px 30px rgba(58, 60, 62, 0.3);
}

.toast.error {
    background: #ef4444;
    border: 1px solid #dc2626;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

.toast.warning {
    background: #f59e0b;
    border: 1px solid #d97706;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.toast.info {
    background: #3b82f6;
    border: 1px solid #2563eb;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
}

/* Botão de fechar do toast */
.toast-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.toast-close:hover {
    opacity: 1;
}

/* Responsividade para toast */
@media (max-width: 768px) {
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
        max-width: none;
    }
    
    .toast.show {
        transform: translateY(0);
    }
    
    .toast.hide {
        transform: translateY(-100px);
    }
}





/* GAP FIX: espaço padrão entre gráficos */

.sports-chart-container { margin-bottom: 32px; }



/* Botão de saque em laranja */

.btn-warning {

    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); /* gradiente laranja */

    color: #ffffff;

    border: 1px solid rgba(249, 115, 22, 0.3);

}

.btn-warning:hover {

    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);

    transform: translateY(-2px);

    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3);

}



/* ===== MELHORIAS DE RESPONSIVIDADE MOBILE ===== */

/* Media queries aprimoradas para mobile */
@media (max-width: 768px) {
    /* Header responsivo */
    .header {
        padding: 16px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .header-title {
        flex-direction: column; /* Alinha logo e título em coluna */
        align-items: center; /* Centraliza horizontalmente */
        text-align: center;
        order: 1;
    }
    
    .header-logo {
        height: 120px;
        margin-right: 0; /* Remove margem direita para centralizar */
        margin-bottom: 8px; /* Espaçamento entre logo e título */
    }
    
    /* Botões do header em layout vertical */
    .header-actions {
        order: 3;
        flex-direction: column;
        gap: 8px;
    }
    
    .header-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.9rem;
        min-height: 44px; /* Touch-friendly */
    }
    
    /* Banca atual centralizada */
    .header-banca {
        order: 2;
        text-align: center;
        padding: 12px 16px;
    }
    
    .header-banca .valor {
        font-size: 1.5rem;
    }
    
    /* Grid de métricas otimizado */
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }
    
    /* Cards com padding otimizado */
    .card {
        padding: 16px;
    }
    
    .card-value {
        font-size: 1.6rem;
    }
    
    .card-title {
        font-size: 0.8rem;
    }
    
    /* Gráficos responsivos */
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .chart-container {
        height: 250px;
        padding: 12px;
    }
    
    .sports-chart-container .chart-container {
        height: 280px;
    }
    
    /* Tabela com scroll horizontal */
    .table-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 800px; /* Força scroll horizontal */
    }
    
    th, td {
        padding: 10px 12px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .table-header {
        padding: 16px;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .table-controls {
        width: 100%;
    }
    
    .table-controls .btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
    
    /* Modal responsivo */
    .modal-content {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 20px 20px 0 20px;
        margin-bottom: 20px;
    }
    
    .modal-body {
        padding: 0 20px 20px 20px;
    }
    
    /* Formulários responsivos */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .form-actions .btn {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }
    
    /* Paginação responsiva */
    .pagination {
        padding: 16px;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .pagination-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 8px 12px;
    }
    
    .pagination-info {
        width: 100%;
        text-align: center;
        margin: 8px 0;
        order: -1;
    }
}

/* Media queries para telas muito pequenas */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .main {
        padding: 20px 0;
    }
    
    .header {
        padding: 12px 0;
    }
    
    .header-title h1 {
        font-size: 1.5rem;
    }
    
    .header-logo {
        height: 50px;
    }
    
    .card {
        padding: 12px;
    }
    
    .card-value {
        font-size: 1.4rem;
    }
    
    .chart-container {
        height: 220px;
        padding: 8px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .table-actions .btn {
        width: 100%;
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    /* Notificações responsivas */
    .notification {
        top: 12px;
        right: 12px;
        left: 12px;
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .toast {
        top: 12px;
        right: 12px;
        left: 12px;
        padding: 12px 16px;
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

/* Melhorias para touch */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .close {
        min-width: 44px;
        min-height: 44px;
    }
    
    .pagination-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remover hover effects em dispositivos touch */
    .card:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(0, 212, 170, 0.2);
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Orientação landscape em mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .header-title {
        order: 1;
        flex: 1;
        text-align: left;
    }
    
    .header-banca {
        order: 2;
        flex: 0 0 auto;
    }
    
    .header-actions {
        order: 3;
        flex: 1 0 100%;
        flex-direction: row;
        gap: 8px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ajustes para acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .modal-content,
    .notification,
    .toast {
        animation: none;
    }
    
    .btn,
    .card,
    .pagination-btn {
        transition: none;
    }
}

/* Ajuste responsivo para logo (Opção B - clamp) */
@media (max-width: 768px) {
  .header-logo {
    height: clamp(80px, 18vw, 128px);
    width: auto;
    max-width: 90vw;
  }
}



/* Tablet Portrait (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .container {
        padding: 0 16px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .header-title h1 {
        font-size: 2rem;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .card, .modal-content {
        margin-bottom: 16px;
    }

    .apostas-list {
        display: block;
    }

    .aposta-item {
        margin-bottom: 16px;
    }
}





/* Ajustes adicionais para tablet retrato */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-actions {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .header-actions .btn {
        width: auto;
    }

    .header-banca {
        width: 100%;
        text-align: center;
    }

    .main-content {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        padding: 20px;
    }

    .card-header h2 {
        font-size: 1.5rem;
    }

    .card-body {
        font-size: 0.95rem;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .table-responsive table {
        width: 100%;
        min-width: 700px; /* Garante que a tabela não fique muito espremida */
    }

    .modal-content {
        width: 90%;
        margin: 10% auto;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input, .form-group select {
        padding: 10px;
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}





/* Mais ajustes para tablet retrato */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .header-title {
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: center;
    }

    .header-title .header-text {
        text-align: left;
        margin-left: 10px;
    }

    .header-banca .valor {
        font-size: 1.5rem;
    }

    .header-banca .label {
        font-size: 0.8rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 10px 15px;
    }

    .card-content .value {
        font-size: 1.8rem;
    }

    .card-content .label {
        font-size: 0.85rem;
    }

    .tab-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .tab-button {
        flex: 1 1 auto;
        max-width: 48%;
        font-size: 0.9rem;
        padding: 10px;
    }

    .data-table th, .data-table td {
        padding: 8px;
        font-size: 0.85rem;
    }

    .data-table .actions-column {
        min-width: 120px;
    }

    .data-table .action-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        margin-bottom: 5px;
    }

    .form-group input, .form-group select, .form-group textarea {
        padding: 8px;
        font-size: 0.9rem;
    }

    .form-actions {
        flex-direction: row;
        justify-content: flex-end;
        gap: 10px;
    }

    .form-actions .btn {
        width: auto;
    }
}





/* Ajustes de layout para tablet retrato */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    /* Ajustes para o header */
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    .header-title h1 {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .header-title p {
        font-size: 0.8rem;
    }

    .header-actions {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        gap: 10px;
    }

    .header-actions .btn {
        width: 100%;
        font-size: 0.9rem;
        padding: 12px;
    }

    .header-banca {
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    .header-banca .valor {
        font-size: 1.6rem;
    }

    .header-banca .label {
        font-size: 0.85rem;
    }

    /* Ajustes para o conteúdo principal */
    .main-content {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Ajustes para os cards */
    .card {
        padding: 20px;
        margin-bottom: 15px;
    }

    .card-header h2 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .card-content .value {
        font-size: 1.8rem;
    }

    .card-content .label {
        font-size: 0.85rem;
    }

    /* Ajustes para as tabelas */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Para rolagem suave em dispositivos móveis */
    }

    .data-table {
        width: 100%;
        min-width: 700px; /* Garante que a tabela não fique muito espremida */
    }

    .data-table th, .data-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }

    .data-table .actions-column {
        min-width: 100px;
    }

    .data-table .action-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    /* Ajustes para modais */
    .modal-content {
        width: 90%;
        margin: 5% auto;
        padding: 25px;
    }

    .modal-header h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .form-group input, .form-group select, .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    .form-actions {
        flex-direction: row;
        justify-content: flex-end;
        gap: 10px;
    }

    .form-actions .btn {
        width: auto;
    }

    /* Ajustes para botões de abas */
    .tab-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 20px;
    }

    .tab-button {
        flex: 1 1 auto;
        max-width: 48%;
        font-size: 0.9rem;
        padding: 10px;
    }
}





/* Ajustes para o modo tablet retrato */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    /* Ajustes gerais de espaçamento e tipografia */
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 15px;
    }

    /* Header */
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px 0;
    }

    .header-title h1 {
        font-size: 2.2rem;
        margin-bottom: 5px;
    }

    .header-title p {
        font-size: 0.85rem;
    }

    .header-actions {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        gap: 10px;
        margin-top: 15px;
    }

    .header-actions .btn {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
        font-size: 0.95rem;
        padding: 12px 15px;
    }

    .header-banca {
        width: 90%;
        margin: 15px auto 0 auto;
        padding: 18px;
    }

    .header-banca .valor {
        font-size: 1.8rem;
    }

    .header-banca .label {
        font-size: 0.9rem;
    }

    /* Main Content */
    .main-content {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Cards */
    .card {
        padding: 25px;
        margin-bottom: 20px;
    }

    .card-header h2 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .card-content .value {
        font-size: 2rem;
    }

    .card-content .label {
        font-size: 0.9rem;
    }

    /* Tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        width: 100%;
        min-width: 768px; /* Garante que a tabela não fique muito espremida */
    }

    .data-table th, .data-table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .data-table .actions-column {
        min-width: 120px;
    }

    .data-table .action-btn {
        padding: 7px 12px;
        font-size: 0.8rem;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 30px;
    }

    .modal-header h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .form-group input, .form-group select, .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }

    .form-actions .btn {
        width: auto;
    }

    /* Tab Buttons */
    .tab-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 25px;
    }

    .tab-button {
        flex: 1 1 45%; /* Duas colunas */
        max-width: 48%;
        font-size: 0.95rem;
        padding: 12px;
    }
}





/* Mobile Portrait (max-width: 767px) */
@media (max-width: 767px) and (orientation: portrait) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px;
    }

    .header-title {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 10px;
    }

    .header-title .header-text {
        text-align: center;
        margin-left: 0;
        margin-top: 5px;
    }

    .header-title h1 {
        font-size: 1.8rem;
    }

    .header-title p {
        font-size: 0.75rem;
    }

    .header-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
    }

    .header-actions .btn {
        width: 100%;
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .header-banca {
        width: 100%;
        text-align: center;
        padding: 12px;
        margin-top: 10px;
    }

    .header-banca .valor {
        font-size: 1.4rem;
    }

    .header-banca .label {
        font-size: 0.75rem;
    }

    .main-content {
        padding: 10px;
        gap: 15px;
    }

    .card {
        padding: 15px;
    }

    .card-header h2 {
        font-size: 1.2rem;
    }

    .card-content .value {
        font-size: 1.5rem;
    }

    .card-content .label {
        font-size: 0.75rem;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 600px;
    }

    .data-table th, .data-table td {
        padding: 6px 8px;
        font-size: 0.75rem;
    }

    .data-table .actions-column {
        min-width: 90px;
    }

    .data-table .action-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .modal-content {
        width: 95%;
        margin: 2% auto;
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }

    .form-group input, .form-group select, .form-group textarea {
        padding: 8px;
        font-size: 0.85rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 8px;
    }

    .form-actions .btn {
        width: 100%;
    }

    .tab-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .tab-button {
        flex: 1 1 48%;
        max-width: 49%;
        font-size: 0.8rem;
        padding: 8px;
    }
}


/* ==== Barra de rolagem moderna ==== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(34, 71, 79, 0.2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #22474F, #2f5e67);
  border-radius: 10px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #2f5e67, #22474F);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #22474F rgba(34, 71, 79, 0.2);
}