/* --- GENERAL LAYOUT --- */
body {
    background-color: #f5f5f7;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    color: #222;
    margin: 40px;
}
.header1{
    margin: 0;
    line-height: 1;
}

header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#currentDate{
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    color: rgb(61, 61, 61);
    margin: 0;
}

#dailyTable, #weeklyTable, #statsTable {
    border-collapse: collapse;
    margin-bottom: 25px;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: 1px solid black;
}
#dailyTable{
    width: 100%;
}
#statsTable{

}
table, td, th {
    border: 1px solid black;
}
th {
    background-color: #2c2f33;
    color: #ffffff;
    padding: 12px;
    font-weight: 600;
    font-size: 15px;
}

td {
    padding: 12px;
    border-bottom: 1px solid #e2e2e2;
}

tr:last-child td {
    border-bottom: 1px solid black;
}

/* Center numeric columns */
td.points,
td.status,
td.task {
    text-align: center;

}
th.task,
td.task {
    width:20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Hover row highlight */
tbody tr:hover {
    background-color: #f0f0f0;
}
.description{

    text-align: left;
}
/* --- FOOTER ROW (TOTALS) --- */
tfoot th,
tfoot td {
    border-top: 1px solid black !important;
    border-bottom: 1px solid black !important;
    background-color: #fafafa;
    font-weight: 600;
    border-top: 2px solid #ddd;
    padding: 12px;
    color: #2c2f33;
}
tfoot{
    border: 1px solid black;
}
#dailyTotalsRow, #daysTotalRow, .day{
    text-align: center;
    color: #2c2f33;
}


.taskbuttons{ /* pushes it to the right */
    gap: 0.5rem;
}
.taskbuttons label{
    display: block;
    font-weight: 100;
    margin-bottom: 4px;
    font-size:10px;
}
label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}



#dailyCompletion {
    width: 100%;
    height: 20px;
    appearance: none;
    margin: 10px;
}

#dailyCompletion::-webkit-progress-bar {
    background-color: #e2e2e2;
    border-radius: 4px;
}

#dailyCompletion::-webkit-progress-value {
    background-color: #4caf50;
    border-radius: 4px;
}
.inputField:last-child{
    margin-bottom: 8px;
}
.task i{
    visibility:hidden;
    height:20px;
    width:20px;
}
.task:hover i{
    visibility:visible;
    cursor:pointer;
}
#overallTotals{
    text-align: center;
}
.tableNames{
    font-size: 32px;
    font-weight: bold;
}
#weeklyTable{
    width:auto;
    min-width: 600px;
}