@import url('https://fonts.cdnfonts.com/css/century-gothic');

:root {
    --primary-color: #7FB3D5;
    --secondary-color: #D4E6F1;
    --accent-color: #5499C7;
    --below-target: #F5B7B1;
    --above-target: #ABEBC6;
    --text-color: #2C3E50;
    --light-text: #5D6D7E;
    --border-radius: 10px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Century Gothic', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #F8F9F9;
}

h1 {
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 30px;
    font-weight: normal;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-title {
    margin-top: 0;
    color: var(--accent-color);
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 10px;
}

.text-area-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 15px;
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    resize: vertical;
    font-family: 'Century Gothic', sans-serif;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

label {
    color: var(--light-text);
    font-weight: bold;
}

.config-panel {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.points-config {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.points-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 180px;
}

input[type="number"] {
    padding: 12px 15px;
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    font-family: 'Century Gothic', sans-serif;
    transition: border-color 0.3s;
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.target-points {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
}

.target-points label {
    margin: 0;
    white-space: nowrap;
}

.target-points input {
    flex: 1;
}

button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
    font-family: 'Century Gothic', sans-serif;
    display: block;
    width: 100%;
    margin-top: 20px;
}

button:hover {
    background-color: var(--accent-color);
}

.results-container {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

thead th {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
    cursor: pointer;
    position: relative;
    font-weight: normal;
}

thead th:first-child {
    border-top-left-radius: 8px;
}

thead th:last-child {
    border-top-right-radius: 8px;
}

thead th:hover {
    background-color: var(--accent-color);
}

tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--secondary-color);
}

tbody td:first-child {
    font-weight:600;
    text-align: left;
}

tbody td{
    text-align: center;
}

.below-target {
    background-color: var(--below-target) !important;
}

.above-target {
    background-color: var(--above-target) !important;
}

.sort-icon::after {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: "\f0dc";
    margin-left: 8px;
    font-size: 14px;
}

.sort-asc::after {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: "\f0de";
    margin-left: 8px;
    font-size: 14px;
}

.sort-desc::after {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: "\f0dd";
    margin-left: 8px;
    font-size: 14px;
}

.color-legend {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-below {
    background-color: var(--below-target);
}

.legend-above {
    background-color: var(--above-target);
}


.view-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-container label {
    color: var(--light-text);
    cursor: pointer;
}

/* Hide detailed columns when checkbox is unchecked */
.hide-detailed .detailed-column {
    display: none;
}

@media (max-width: 768px) {
    .points-config {
        flex-direction: column;
    }
}