body {
    font-family: "Tahoma", "Arial", sans-serif !important;
    background-color: #ece9d8;
    color: #000;
    padding: 20px;
    margin: 0;
    font-size: 14px;
}

.window {
    width: 90%;
    max-width: 1400px;
    margin: 40px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.window-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.title-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.table-container {
    border: 1px solid #919b9c;
    background-color: #fff;
    overflow: auto;
    max-height: 57vh;
    margin: 10px 0;
}

.xp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.xp-table th {
    background: linear-gradient(to bottom, #ece9d8, #d9d5bc);
    color: #000;
    font-weight: bold;
    padding: 8px;
    border: 1px solid #919b9c;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 15px;
    cursor: pointer;
}

.xp-table th.sorted-asc {
    background: linear-gradient(to bottom, #d1dbef, #b4c7e7);
}

.xp-table th.sorted-desc {
    background: linear-gradient(to bottom, #d1dbef, #b4c7e7);
}

.xp-table td {
    padding: 6px 8px;
    border: 1px solid #d9d5bc;
}

.xp-table tbody tr:nth-child(odd) {
    background-color: #efefef;
}

.xp-table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.xp-table tbody tr.hover,
.xp-table tbody tr:hover {
    background-color: #e5f3ff;
}

.perfect-score {
    background-color: #d4edff !important;
}

.perfect-score:hover {
    background-color: #b8e0ff !important;
}

.excellent-score {
    background-color: #d8f0e6 !important;
}

.excellent-score:hover {
    background-color: #c2e8d8 !important;
}

.great-score {
    background-color: #daf2d0 !important;
}

.great-score:hover {
    background-color: #c6eab5 !important;
}

.good-score {
    background-color: #e6f7c3 !important;
}

.good-score:hover {
    background-color: #d7f0a6 !important;
}

.above-average-score {
    background-color: #f7f4c3 !important;
}

.above-average-score:hover {
    background-color: #f0eca6 !important;
}

.average-score {
    background-color: #fbead6 !important;
}

.average-score:hover {
    background-color: #f7e0c0 !important;
}

.below-average-score {
    background-color: #fde0d0 !important;
}

.below-average-score:hover {
    background-color: #fbd0b6 !important;
}

.poor-score {
    background-color: #ffd5d5 !important;
}

.poor-score:hover {
    background-color: #ffc6c6 !important;
}

.very-poor-score {
    background-color: #ffc7c7 !important;
}

.very-poor-score:hover {
    background-color: #ffb0b0 !important;
}

.terrible-score {
    background-color: #ffb5b5 !important;
}

.terrible-score:hover {
    background-color: #ff9c9c !important;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    margin-top: 5px;
    gap: 12px;
}

.status-bar-field {
    flex: 1;
    margin: 0 2px;
    font-size: 13px;
}

.nota {
    text-align: center;
    font-size: 15px;
    font-weight: bold;
}

.tempo {
    white-space: nowrap;
}

/* Estilos para abas */
.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.tab {
    padding: 5px 15px;
    cursor: pointer;
    outline: none;
    background-color: #ece9d8;
    border: 1px solid #919b9c;
    border-radius: 0;
}

.tab.active {
    background: linear-gradient(to bottom, #d1dbef, #b4c7e7);
    border: 1px solid #6e86a7;
}

.view-container {
    display: none;
}

.active-view {
    display: block;
}

/* Estilos para filtros e pesquisa */
.filter-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f5f5f0;
    border: 1px solid #919b9c;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input {
    flex-grow: 1;
    padding: 5px 8px;
    border: 1px solid #919b9c;
    background-color: #fff;
    font-family: "Tahoma", "Arial", sans-serif;
}

.filter-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-select {
    padding: 3px 5px;
    padding-right: 30px;
    border: 1px solid #919b9c;
    background-color: #fff;
    font-family: "Tahoma", "Arial", sans-serif;
}

.clear-btn {
    align-self: flex-start;
    padding: 3px 8px;
    background: linear-gradient(to bottom, #ece9d8, #d9d5bc);
    border: 1px solid #919b9c;
    cursor: pointer;
}

.clear-btn:hover {
    background: linear-gradient(to bottom, #d1dbef, #b4c7e7);
}

/* Estilos para gráficos */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

.chart-box {
    background-color: #fff;
    border: 1px solid #919b9c;
    padding: 15px;
}

.chart-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.chart-wrapper {
    height: 250px;
    position: relative;
}

/* Responsividade */
@media (max-width: 768px) {
    .window {
        width: 95%;
        margin: 10px auto;
    }

    .xp-table {
        font-size: 13px;
    }

    .table-container {
        max-height: 60vh;
    }
}
