body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #000000;
    color: #e0e0e0;
}

.container {
    max-width: 1800px; /* Wider for more content */
    margin: 20px auto;
    padding: 15px; /* Adjusted padding */
}

h1 {
    text-align: center;
    color: #e53935;
    margin-bottom: 10px;
    font-size: 1.8em;
}

p {
    text-align: center;
    color: #aaaaaa;
    margin-bottom: 20px;
}

#clear-progress {
    display: block;
    margin: 10px auto 20px auto;
    padding: 10px 20px;
    font-size: 1em;
    background-color: #b71c1c;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#clear-progress:hover {
    background-color: #d32f2f;
}

#learning-plan-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 0 15px rgba(229, 57, 53, 0.2);
    font-size: 0.95em; /* Base font size for table */
}

#learning-plan-table th,
#learning-plan-table td {
    border: 1px solid #333333;
    padding: 10px 12px; /* Adjusted padding */
    text-align: left;
    vertical-align: top; /* Align content to top */
}

#learning-plan-table thead th {
    background-color: #d32f2f;
    color: #000000;
    font-weight: bold;
    position: sticky; /* Keep header visible */
    top: 0;
    z-index: 10;
}

/* Define column widths (adjust as needed) */
#learning-plan-table th:nth-child(1), /* Wk */
#learning-plan-table td:nth-child(1) {
    width: 4%;
    text-align: center;
}
#learning-plan-table th:nth-child(2), /* Topic */
#learning-plan-table td:nth-child(2) {
    width: 26%;
    font-weight: 500; /* Slightly bolder topic */
}
#learning-plan-table th:nth-child(3), /* Links */
#learning-plan-table td:nth-child(3) {
    width: 35%;
    font-size: 0.9em; /* Smaller font for links */
}
#learning-plan-table th:nth-child(4), /* Learned */
#learning-plan-table td:nth-child(4) {
    width: 28%;
    font-size: 0.9em;
    color: #cccccc; /* Slightly dimmer learned text */
}
#learning-plan-table th:nth-child(5), /* Status */
#learning-plan-table td:nth-child(5) {
    width: 7%;
    text-align: center;
}


#learning-plan-table tbody tr:nth-child(even) {
    background-color: #111111;
}

#learning-plan-table tbody tr:hover {
    background-color: #222222;
}


/* Links column adjustments */
#learning-plan-table td:nth-child(3) a {
    display: block;
    margin-bottom: 5px;
    color: #ff5252;
    text-decoration: none;
    word-break: break-all; /* Prevent long links from breaking layout */
}
#learning-plan-table td:nth-child(3) a:hover {
    text-decoration: underline;
    color: #ff8a80;
}


/* Checkbox styling */
#learning-plan-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #e53935;
    margin-top: 5px; /* Adjust vertical alignment if needed */
}

/* Styling for completed rows */
#learning-plan-table tbody tr.completed { /* Use a class applied by JS */
    opacity: 0.65; /* Dim slightly more */
}

#learning-plan-table tbody tr.completed td {
     text-decoration: line-through;
     text-decoration-color: #ff8a80; /* Red line-through */
     color: #888888;
}

#learning-plan-table tbody tr.completed td a {
     color: #ff8a80; /* Keep links visible but maybe less bright */
     text-decoration: line-through; /* Also strike through links */
     text-decoration-color: #ff8a80;
}