#aim-calculator-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #f9fafb;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    max-width: 800px;
    margin: 2em auto;
    position: relative; /* Sửa lỗi không trượt được trên mobile */
    z-index: 2; /* Sửa lỗi không trượt được trên mobile */
}

#aim-calculator-wrapper h2 {
    text-align: center;
    color: #111827;
    margin-top: 0;
    margin-bottom: 25px;
}

.aim-table {
    width: 100%;
    border-collapse: collapse;
}

.aim-table th, .aim-table td {
    border: 1px solid #d1d5db;
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

.aim-table thead {
    background-color: #f3f4f6;
}

.aim-table th {
    font-weight: 600;
    color: #374151;
}

.aim-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.aim-table input[type="number"] {
    width: 90%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: #ffe8c1; /* Làm mờ ô readonly */
}
.aim-table input[type="number"]:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

.diem-chuan-hoa-output, .diem-co-trong-so-output {
    font-family: monospace;
    font-size: 15px;
    color: #4b5563;
}

.aim-table tfoot td {
    font-weight: bold;
}

.total-label {
    text-align: right !important;
    color: #1f2937;
}

.final-result {
    font-size: 1.1em;
    background-color: #fefce8;
    color: #854d0e;
}

.final-label {
    font-size: 1.1em;
}

.final-score {
    font-size: 1.3em;
    font-weight: bold;
    color: #be123c;
    background-color: #fff1f2;
}

/* --- CSS cho thanh trượt --- */
.slider-container {
    display: flex;
    align-items: center;
    gap: 20px; /* Khoảng cách giữa thanh trượt và số */
    padding: 5px 0;
}
.slider {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #ddd;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    border-radius: 5px;
}
.slider:hover {
    opacity: 1;
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #0073aa;
    cursor: pointer;
    border-radius: 50%;
}
.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #0073aa;
    cursor: pointer;
    border-radius: 50%;
}
.slider-value {
    font-weight: bold;
    font-size: 1.2em;
    color: #0073aa;
    min-width: 20px;
    text-align: center;
}