/* Number Grid */
.number-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.number-cell {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.filtro-1-container {
    border: 1px solid gray;
    padding: 5px;
    border-radius: 5px;
}

.number-cell:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border: 1px solid green;
}

.number-cell.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.number-value {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Weight indicator (advanced mode only) */
.weight-indicator {
    position: absolute;
    bottom: -2px;
    right: -1px;
    width: 16px;
    height: 14px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    background: var(--weight-50);
    color: var(--text-color);
    transition: var(--transition);
}

.number-cell[data-weight="100"] .weight-indicator {
    background: var(--weight-fix);
}

.number-cell[data-weight="90"] .weight-indicator {
    background: var(--weight-90);
}

.number-cell[data-weight="80"] .weight-indicator {
    background: var(--weight-80);
}

.number-cell[data-weight="70"] .weight-indicator {
    background: var(--weight-70);
}

.number-cell[data-weight="60"] .weight-indicator {
    background: var(--weight-60);
}

.number-cell[data-weight="50"] .weight-indicator {
    background: var(--weight-50);
}

.number-cell[data-weight="40"] .weight-indicator {
    background: var(--weight-40);
}

.number-cell[data-weight="30"] .weight-indicator {
    background: var(--weight-30);
}

.number-cell[data-weight="20"] .weight-indicator {
    background: var(--weight-20);
    color: white;
}

.number-cell[data-weight="10"] .weight-indicator {
    background: var(--weight-10);
    color: white;
}

.number-cell[data-weight="0"] {
    opacity: 0.3;
    cursor: not-allowed;
    border: 1px solid #555555;
}

.number-cell[data-weight="0"] .weight-indicator {
    background: var(--weight-exclude);
    color: white;
}

/* Weight Legend */
.weight-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 8px;
    font-size: 0.85rem;
    border-left: 2px solid red;
    border-right: 2px solid var(--weight-fix);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.weight-fix { background: var(--weight-fix); }
.weight-high { background: var(--weight-90); }
.weight-medium { background: var(--weight-50); }
.weight-low { background: var(--weight-20); }
.weight-exclude { background: var(--weight-exclude); }

/* Weight Selector Modal */
.weight-selector {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 24px;
    z-index: 9998;
    min-width: 300px;
}

.weight-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.weight-selector-header h3 {
    color: var(--primary-color);
}

.close-modal {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.weight-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.weight-option {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
}

.weight-option:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.weight-option.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.weight-option[data-value="100"] { background: var(--weight-fix); }
.weight-option[data-value="90"] { background: var(--weight-90); }
.weight-option[data-value="80"] { background: var(--weight-80); }
.weight-option[data-value="70"] { background: var(--weight-70); }
.weight-option[data-value="60"] { background: var(--weight-60); }
.weight-option[data-value="50"] { background: var(--weight-50); }
.weight-option[data-value="40"] { background: var(--weight-40); }
.weight-option[data-value="30"] { background: var(--weight-30); }
.weight-option[data-value="20"] { background: var(--weight-20); color: white; }
.weight-option[data-value="10"] { background: var(--weight-10); color: white; }
.weight-option[data-value="0"] { background: var(--weight-exclude); color: white; }

.weight-option[data-value="0"]:hover { 
    background: var(--weight-exclude); 
    color: white;
}

/* Filters Panel */
.filters-panel {
    display: grid;
    gap: 5px;
    margin-top: 0px;
}

.filter-section {
    background: var(--bg-color);
    padding: 16px;
    border-radius: 8px;
}

.filter-section-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.filter-grid {
    gap: 45px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    min-width: 75px;
    max-width: 100px
}

.filter-item label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-light);
    text-align: center;
}

.filter-input {
    padding: 8px 4px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Range Filter (advanced mode) */
.filter-range {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-range input {
    flex: 1;
}

.filter-range-separator {
    color: var(--text-light);
    font-weight: bold;
}

/* Simple mode filter (single value) */
.filter-simple {
    display: flex;
    gap: 8px;
}

.filter-simple input {
    flex: 1;
}

/* Statistics Panel */
.statistics-panel {
    margin-bottom: 20px;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.stat-item {
    background: var(--bg-color);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Results Container */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.results-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-color);
    padding: 4px;
    border-radius: 8px;
}

.view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
}

.view-btn .icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Result Card View */
.results-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.result-card {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 10px;
    transition: var(--transition);
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    box-shadow: rgb(11 177 0 / 63%) 0px 1px 2px, rgb(0 255 8 / 45%) 0px 2px 6px
}

.result-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.result-number {
    font-weight: bold;
    color: var(--primary-color);
}

.result-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--primary-color);
    color: white;
}

.btn-icon .icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-bottom: 12px;
}

.result-number-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #979797;
}

.result-number-cell.selected {
    background: var(--primary-color);
    color: white;
}

.result-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.analysis-item {
    text-align: center;
    font-size: 0.85rem;
}

.analysis-label {
    color: var(--text-light);
    font-size: 0.75rem;
}

.analysis-value {
    font-weight: bold;
    color: var(--text-color);
}

/* Result Table View */
.results-table {
    overflow-x: auto;
}

.results-table table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th,
.results-table td {
    padding: 2px 2px !important;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.results-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.results-table tbody tr:hover {
    background: var(--bg-color);
}

.results-table .numbers-cell {
    font-family: "Courier New", monospace;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    padding: 0 12px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Checker Panel */
.checker-config {
    margin-bottom: 16px;
}

.contest-range {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
}

/* Scores Display */
.scores-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    padding: 16px;
    background: var(--bg-color);
    border-radius: 8px;
    margin-top: 16px;
}

.score-item {
    text-align: center;
    padding: 8px;
    background: white;
    border-radius: 6px;
    width: 100%;
}

.score-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.score-value {
    font-size: 1.2rem;
    font-weight: bold;
}

.score-value.hits-11 { color: #17a2b8; }
.score-value.hits-12 { color: #ffc107; }
.score-value.hits-13 { color: #fd7e14; }
.score-value.hits-14 { color: #dc3545; }
.score-value.hits-15 { color: #28a745; }

.scores-summary-content {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 5px;
    width: 100%;
    flex-wrap: nowrap;
    align-items: stretch;
    align-content: center;
}

.btn-reset-section {
    background: #00daff;
    color: #000000;
    padding: 2px;
    border-radius: 6px;
}

.filter-section-header {
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    align-items: baseline;
    gap: 9px;
}

.filter-control.mini {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.filter-control {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.filter-btn-decrease {
    padding: 5px;
}

.filter-btn-increase {
    padding: 5px;
}

.filter-dual-slider {
    display: flex;
    flex-direction: column-reverse;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa, #dadada);
    padding: 2px;
    border-radius: 3px;
    margin-top: 5px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}


.filter-range-slider.min-slider {
    width: 100%;
}

.filter-range-slider.max-slider {
    width: 100%;
}






/* components.css - ADICIONAR AO FINAL DO ARQUIVO */

/* Filter Management Modal */
.filter-management-modal,
.quick-presets-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-management-modal .modal-content,
.quick-presets-modal .modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    position: relative;
    padding: 10px;
}

.modal-header {
    padding: 20px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 12px 12px 0 0;
    margin-bottom: 5px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close-modal {
    background: #a7348b;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-align: center;
    width: 40%;
}

.close-modal:hover {
    color: white;
    background: #cf009d;
}

.modal-body {
    padding: 10px;
    margin-top: 0px;
    border: 1px solid #ededed;
    border-radius: 5px;
    margin-bottom: 10px;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: var(--bg-color);
    border-radius: 0 0 12px 12px;
    padding: 10px;
}

/* Preset Groups */
.preset-groups {
    margin-bottom: 24px;
}

.preset-groups h4 {
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 1rem;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-preset-group {
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-preset-group:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(167, 52, 139, 0.3);
}

/* Filter Checkboxes */
.filter-checkboxes {
    margin-top: 20px;
}

.filter-checkboxes h4 {
    margin-bottom: 16px;
    color: var(--text-color);
    font-size: 1rem;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.filter-checkbox-label:hover {
    background: #e8f4f8;
    border-color: var(--primary-color);
}

.filter-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.filter-checkbox-label span {
    font-weight: 500;
    color: var(--text-color);
}

/* Quick Presets Cards */
.quick-preset-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.preset-card {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: var(--transition);
}

.preset-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.preset-card h4 {
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.preset-preview {
    margin: 16px 0;
    padding: 12px;
    background: white;
    border-radius: 8px;
}

.preset-values {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.preset-values span {
    padding: 4px 8px;
    background: var(--bg-color);
    border-radius: 4px;
}

.apply-preset {
    width: 100%;
    margin-top: 12px;
}


.filters-actions {
    display: flex;
    gap: 8px;
}

.btn-manage-filters,
.btn-quick-presets {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-manage-filters:hover,
.btn-quick-presets:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(167, 52, 139, 0.3);
}

/* Collapsible Containers */
.filtro-container {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    overflow: hidden;
}

.filtros-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.filtros-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-toggle-filtros {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-toggle-filtros:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.btn-toggle-filtros i {
    transition: transform 0.3s ease;
}

.filtro-content {
    padding: 10px;
    transition: all 0.3s ease;
    background: linear-gradient(359deg, #f5f5ff, #ffffff);
}

/* No Filters Message */
.no-filters-message {
    text-align: center;
    padding: 32px;
    color: var(--text-light);
    background: var(--bg-color);
    border-radius: 8px;
    margin: 16px 0;
}

.no-filters-message p {
    margin: 0;
    font-size: 0.95rem;
}

/* Quick Config Panel (modo avançado) */
.quick-config-panel {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.quick-config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.quick-config-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary-color);
}

.quick-config-content {
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-management-modal .modal-content,
    .quick-presets-modal .modal-content {
        max-width: 95%;
    }
    
    .preset-buttons {
        flex-direction: column;
    }
    
    .btn-preset-group {
        width: 100%;
    }
    
    .quick-preset-cards {
        grid-template-columns: 1fr;
    }
    
    .filters-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-manage-filters,
    .btn-quick-presets {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: auto;
    }
    
    .filtros-header {
        padding: 12px;
    }
    
    .filtros-header h3 {
        font-size: 0.95rem;
    }
}







/* components.css - ADICIONAR */

.quick-preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.btn-quick-preset {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-quick-preset:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(167, 52, 139, 0.3);
}

.btn-quick-preset i {
    font-size: 1rem;
}

.quick-config-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(167, 52, 139, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.quick-config-info i {
    color: var(--primary-color);
}




.btn-quick-preset.applied {
    background: var(--secondary-color) !important;
    color: white !important;
    border-color: var(--secondary-color) !important;
}

.btn-quick-preset.applied i {
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}











/* components.css - ADICIONAR */

/* Checker Panel */
.checker-panel {
    margin-bottom: 20px;
}

.checker-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.checker-header h3 {
    margin: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.checker-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checker-quick-actions {
    display: flex;
    gap: 10px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.btn-check-quick {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 10px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
}

.btn-check-quick i {
    font-size: 1.5rem;
}

.btn-check-quick:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(167, 52, 139, 0.3);
}

.btn-check-quick.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-dark);
}

/* Advanced Options */
.checker-advanced {
    text-align: center;
}

.btn-toggle-advanced {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-toggle-advanced:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Advanced Panel */
.checker-advanced-panel {
    padding: 20px;
    background: var(--bg-color);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.checker-mode-selector {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.checker-mode-selector label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.checker-mode-selector label:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
}

.checker-mode-selector input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.checker-mode-selector input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

/* Range and Specific Inputs */
.checker-range-inputs {
    display: flex;
    gap: 16px;
}

.checker-range-inputs .form-group,
.checker-specific-input .form-group {
    flex: 1;
}

.checker-range-inputs input,
.checker-specific-input input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.checker-range-inputs input:focus,
.checker-specific-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Action Button */
.checker-action {
    text-align: center;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    min-width: 250px;
}

/* Status */
.checker-status {
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checker-status.info {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #1976d2;
}

.checker-status.success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}

.checker-status.error {
    background: #ffebee;
    border-left: 4px solid #f44336;
    color: #c62828;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* Scores Summary Wrapper */
.scores-summary-wrapper {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    border-radius: 12px;
    border: 2px solid var(--primary-color);
}

.scores-summary-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.scores-summary-header h4 {
    margin: 0 0 8px 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.scores-summary-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.scores-summary-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.scores-summary-info i {
    color: var(--primary-color);
}

.score-total {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white !important;
    border-radius: 8px;
    padding: 8px !important;
}

.score-total .score-label,
.score-total .score-value {
    color: white !important;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .checker-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checker-range-inputs {
        flex-direction: column;
    }
    
    .btn-large {
        min-width: 100%;
        padding: 14px 24px;
    }
}

@media (max-width: 480px) {
.checker-quick-actions {
    display: flex;
    gap: 10px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
}
    
    .btn-check-quick {
        padding: 12px 10px;
    }
    
    .btn-check-quick i {
        font-size: 1.2rem;
    }
}



/* components.css - ADICIONAR AO FINAL */

/* ========================================
   FILTROS E ORDENAÇÃO - CARDS
======================================== */

.results-filters-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-color);
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h4 {
    margin: 0 0 12px 0;
    color: var(--primary-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-filter-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.btn-score-filter {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-score-filter:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
    transform: translateY(-2px);
}

.btn-score-filter.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(167, 52, 139, 0.3);
}

.sort-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sort-select {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:hover,
.sort-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-sort-order {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-sort-order:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.btn-sort-order i {
    font-size: 1.2rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-results i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

.no-results p {
    font-size: 1.1rem;
    margin: 0;
}

/* ========================================
   CONTROLES DA TABELA
======================================== */

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
    border: 2px solid var(--primary-color);
    border-bottom: none;
    margin-bottom: 0;
}

.btn-table-settings {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-table-settings:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(167, 52, 139, 0.3);
}

.table-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.table-info i {
    color: var(--primary-color);
}

/* ========================================
   TABELA - ESTILOS APRIMORADOS
======================================== */

.results-table {
    overflow-x: auto;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-color);
    border-top: none;
}

.results-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 800px;
}

.results-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 0.9rem;
    padding: 14px 10px;
    text-align: center;
    white-space: nowrap;
    user-select: none;
}

.results-table th.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 24px;
    transition: var(--transition);
}

.results-table th.sortable:hover {
    background: var(--primary-dark);
}

.results-table th.sortable::after {
    content: '\f0dc';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
    font-size: 0.8rem;
}

.results-table th.sorted-asc::after {
    content: '\f0de';
    opacity: 1;
}

.results-table th.sorted-desc::after {
    content: '\f0dd';
    opacity: 1;
}

.results-table th.score-header {
    background: linear-gradient(135deg, #4d9500, #3a7000);
}

.results-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.results-table tbody tr {
    transition: var(--transition);
}

.results-table tbody tr:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

/* Células específicas */
.cell-number {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

.numbers-cell {
    font-family: "Courier New", monospace;
    font-weight: 600;
    padding: 2px !important;
    text-align: center !important;
}

.number-badge {
    display: inline-block;
    background: #a7348b;
    color: white;
    padding: 0.3rem 0.23rem;
    border-radius: 5px;
    margin: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    /* min-width: 32px; */
    text-align: center;
    box-shadow: 0 2px 4px rgba(167, 52, 139, 0.2);
}

.score-cell {
    font-weight: 600;
    color: #4d9500;
    font-size: 1rem;
}

.score-total-cell {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white !important;
    font-weight: 700;
    font-size: 1.1rem;
}

.actions-cell {
    padding: 8px !important;
}

.no-results-cell {
    padding: 60px 20px !important;
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ========================================
   MODAL DE CONFIGURAÇÃO DE COLUNAS
======================================== */

.column-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.column-settings-modal .modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
}

.column-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.column-group h4 {
    margin: 0 0 12px 0;
    color: var(--primary-color);
    font-size: 1rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.column-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: var(--bg-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.column-checkbox-label:hover {
    background: #e8f4f8;
    border-color: var(--primary-color);
}

.column-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.column-checkbox-label span {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* ========================================
   RESPONSIVO - FILTROS E TABELA
======================================== */

@media (max-width: 768px) {
    .score-filter-buttons {
        grid-template-columns: repeat(3, 1fr);
    }

    .sort-buttons {
        flex-direction: column;
    }

    .sort-select,
    .btn-sort-order {
        width: 100%;
    }

    .table-controls {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .btn-table-settings {
        width: 100%;
        justify-content: center;
    }

    .table-info {
        justify-content: center;
    }

    .results-table {
        font-size: 0.85rem;
    }

    .results-table th,
    .results-table td {
        padding: 8px 6px;
    }

    .number-badge {
        padding: 3px 6px;
        margin: 1px;
        font-size: 0.75rem;
        min-width: 28px;
    }

    .column-groups {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .score-filter-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn-score-filter {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .filter-section h4 {
        font-size: 0.9rem;
    }

    .results-table {
        font-size: 0.8rem;
    }

    .results-table th {
        font-size: 0.75rem;
        padding: 10px 4px;
    }

    .results-table td {
        padding: 8px 4px;
    }

    .number-badge {
        font-size: 0.7rem;
        padding: 2px 4px;
        min-width: 24px;
    }

    .cell-number {
        font-size: 0.9rem;
    }

    .score-cell {
        font-size: 0.85rem;
    }

    .score-total-cell {
        font-size: 0.95rem;
    }
}

/* ========================================
   ANIMAÇÕES
======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-filters-panel {
    animation: fadeIn 0.3s ease;
}

.result-card {
    animation: fadeIn 0.3s ease;
}

.results-table tbody tr {
    animation: fadeIn 0.2s ease;
}

/* ========================================
   ESTADOS DE CARREGAMENTO
======================================== */

.results-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.results-loading i {
    font-size: 3rem;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   MELHORIAS VISUAIS ADICIONAIS
======================================== */

/* Highlight ao ordenar */
.results-table th.sorted-asc,
.results-table th.sorted-desc {
    background: var(--primary-dark);
}

/* Zebra striping para tabela */
.results-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.results-table tbody tr:nth-child(even):hover {
    background: #f0f0f0;
}

/* Badge destaque para números ímpares */
.number-badge:nth-child(odd) {
    background: #a7348b;
}

/* Badge destaque para números pares */
.number-badge:nth-child(even) {
    background: #a7348b;
}

.results-table th[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

/* Scrollbar customizada para tabela */
.results-table::-webkit-scrollbar {
    height: 10px;
}

.results-table::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 12px 12px;
}

.results-table::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.results-table::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}


/* components.css - ADICIONAR */

/* Barra de informações de filtros */
.filters-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    flex-wrap: wrap;
    gap: 12px;
}

.filters-header-bar h3 {
    margin: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-count {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-clear-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 2px solid #dc3545;
    background: white;
    color: #dc3545;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-clear-filters:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
}

/* Barra de informações de paginação */
.pagination-info-bar {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 16px 0;
    text-align: center;
    border: 1px solid var(--border-color);
}

.pagination-text {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

/* No Results - Melhorado */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-results i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results h3 {
    margin: 0 0 12px 0;
    color: var(--text-color);
    font-size: 1.3rem;
}

.no-results p {
    font-size: 1rem;
    margin: 0 0 24px 0;
    color: var(--text-light);
}

.btn-back-all {
    margin-top: 16px;
}

/* Table Controls - Melhorado */
.table-controls-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.table-count {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Botão de ordenação desabilitado */
.btn-sort-order:not(.active) {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-sort-order:not(.active):hover {
    background: white;
    color: inherit;
    border-color: var(--border-color);
    transform: none;
}

/* No Results Cell (tabela) */
.no-results-cell {
    padding: 40px 20px !important;
}

.no-results-cell .no-results {
    padding: 20px;
}

.no-results-cell .no-results i {
    font-size: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .filters-header-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters-header-bar h3 {
        justify-content: center;
    }
    
    .filter-count,
    .btn-clear-filters {
        width: 100%;
        justify-content: center;
    }
    
    .table-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .table-controls-left {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .btn-table-settings,
    .table-count {
        width: 100%;
        justify-content: center;
    }
    
    .pagination-info-bar {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .no-results {
        padding: 40px 16px;
    }
    
    .no-results i {
        font-size: 3rem;
    }
    
    .no-results h3 {
        font-size: 1.1rem;
    }
    
    .no-results p {
        font-size: 0.9rem;
    }
    
    .filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    flex-direction: column;
}

}

    
.btn-reset-section:hover {
    scale: 1.2;
    background: yellow;
}

.filter-range-container {
    display: flex;
    flex-direction: column-reverse;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e6e6e6);
    padding: 4px;
    border-radius: 3px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}

.btn-toggle-advanced-pontuados {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.div-btn-todos-pontuados {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px, rgba(9, 30, 66, 0.13) 0px 0px 1px 1px;
    gap: 10px;
    background: #ffffff;
}


.btn-toggle-advanced-pontuados:hover {
    padding: 12px 16px;
    border: 2px solid #00ff14;
    background: #40c100;
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    scale: 1.05;
}

.checker-pontuados {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}



.score-filter-buttons-container {
  display: none;
  margin-top: 10px;
  margin-bottom: 10px;
}

.score-filter-buttons-container.show {
  display: block;
  margin-bottom: 15px;
}







/* Dezena sorteada mas não está no palpite - cinza clarinho */
.result-number-cell.drawn-only {
    background: linear-gradient(135deg, #afafaf 0%, #c9c9c9 100%) !important;
    color: #000000 !important;
    font-weight: 500 !important;
    border: 1px solid #7b7b7b !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    opacity: 0.7;
    position: relative;
}

/* Ícone sutil indicando que foi sorteada */
.result-number-cell.drawn-only::before {
    content: "x";
    position: absolute;
    top: 1px;
    right: 3px;
    font-size: 8px;
    color: #fb0000;
    font-weight: bold;
}

/* Hover nas dezenas sorteadas */
.result-number-cell.drawn-only:hover {
  opacity: 1;
  background: linear-gradient(135deg, #d1d5db 0%, #b8bdc5 100%) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Dezena premiada - destaque verde com animação */
.result-number-cell.matched {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 0 0 0px #10b981, 0 1px 3px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.05);
    animation: matchPulse 0.6s ease-out;
    position: relative;
    z-index: 2;
}

/* Tooltip para dezena premiada */
.result-number-cell.matched::after {
  content: "✓";
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 10px;
  font-weight: bold;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

@keyframes matchPulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(1.05);
    box-shadow: 
      0 0 0 2px #10b981,
      0 4px 12px rgba(16, 185, 129, 0.4);
  }
}

/* Hover na dezena premiada */
.result-number-cell.matched:hover {
  transform: scale(1.08) !important;
  box-shadow: 
    0 0 0 3px #10b981,
    0 6px 16px rgba(16, 185, 129, 0.5) !important;
}


/* Controles de destaque de filtros */
.filter-highlight-control {
    margin-top: 8px;
    padding: 6px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.highlight-checkbox-label:hover {
    color: #823e9f;
}

.highlight-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #f6da01;
}

.highlight-label {
    display: flex;
    align-items: center;
    gap: 4px;
}

.highlight-label i {
    font-size: 0.9rem;
}

/* Células destacadas no volante */
.number-cell.highlighted {
    position: relative;
    animation: pulseHighlight 2s ease-in-out infinite;
    border: 4px solid;
}

.number-cell.highlighted[data-highlight-filters="dynamic"] {
  pointer-events: none !important;
  cursor: default !important; /* opcional */
}

@keyframes pulseHighlight {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Efeito visual suave nas bordas destacadas */
.number-cell.highlighted::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 8px;
    opacity: 0.3;
    pointer-events: none;
    animation: rotateBorder 3s linear infinite;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Tooltip para mostrar filtros ativos */
.number-cell[data-highlight-filters]:hover::after {
    content: attr(data-highlight-filters);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .filter-highlight-control {
        margin-top: 6px;
    }
    
    .highlight-checkbox-label {
        font-size: 0.8rem;
    }
}



/* Badge de relaxação */
.relaxation-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.relaxation-badge.disabled {
    background: #ff5252;
    color: white;
}

.relaxation-badge.level-20 {
    background: #ffd54f;
    color: #333;
}

.relaxation-badge.level-50 {
    background: #ffb74d;
    color: white;
}

.relaxation-badge.level-100 {
    background: #ff7043;
    color: white;
}

/* Animação suave ao mudar filtros */
.filter-item {
    transition: all 0.3s ease;
}

.filter-item.relaxed {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
}


/* Filters Header Actions */
.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
    padding-top: 10px;
    border-radius: 10px;
    padding-left: 5px;
    padding-right: 5px;
}


#btnDisableDynamicFilters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid red;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    background: red;
    color: white;
}

#btnEnableDynamicFilters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px !important;
    border: none;
    border-radius: 5px !important;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    background: #006b00;
    color: white;
}

.modal-content.modal-compact {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 10001;
    position: fixed;
    top: 60px;
    padding: 10px
}


.filter-range-slider {
    width: 100%;
}

.filter-slider {
    flex-direction: column-reverse;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    max-width: 100px;
    background: linear-gradient(135deg, #f8f9fa, #dadada);
    padding: 2px;
    border-radius: 3px;
    margin-top: 5px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}


.export-modal .modal-footer {
    padding: 10px 20px;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
    border-top: 1px solid #e9ecef;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    align-items: stretch;
    justify-content: center;
    padding-top: 5px;
}