body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a; /* Dark background */
    color: #f0f0f0; /* Light text */
    line-height: 1.6;
}

header {
    background-color: #800000; /* Maroon */
    color: white;
    padding: 30px 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border-bottom: 3px solid #ff0000; /* Red accent */
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* --- Navigation Buttons (Main Page) --- */
.week-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #2b2b2b; /* Dark grey panel */
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.week-navigation button {
    background-color: #cc0000; /* Darker Red Button */
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.week-navigation button:hover {
    background-color: #ff0000; /* Bright Red on Hover */
    transform: translateY(-2px);
}

/* --- Modal (Day Selection Pop-up) --- */
.modal {
    /* ... (Modal styling remains largely the same for functionality) */
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    padding-top: 60px;
}

.modal-content {
    background-color: #2b2b2b; /* Dark modal background */
    color: #f0f0f0;
    margin: 5% auto; 
    padding: 30px;
    border: 1px solid #ff0000;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    text-align: center;
}

.modal-content h2 {
    color: white;
    border-bottom: 2px solid #555;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.day-list a {
    display: block;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #383838; /* Dark grey link background */
    text-decoration: none;
    color: #ccc; /* Light grey text */
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.day-list a:hover {
    background-color: #505050;
    color: white;
}

/* Rest day links */
.day-list a.rest-day {
    background-color: #401010; /* Darker red for rest */
    color: #f0f0f0;
    cursor: default !important;
}
.day-list a.rest-day:hover {
    background-color: #551515;
}

.close-btn {
    color: #ff0000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover,
.close-btn:focus {
    color: white;
    text-decoration: none;
}

/* --- Weekly Page Content (Workout Days) --- */
.workout-section {
    background-color: #2b2b2b;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-left: 5px solid #800000; /* Maroon accent */
}

.workout-section h2 {
    border-bottom: 3px solid #ff0000;
    padding-bottom: 15px;
    color: white;
    margin-top: 0;
    font-size: 1.8em;
}

.workout-section h3 {
    color: #ccc;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.5em;
    padding-left: 10px;
    border-left: 3px solid #cc0000;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: #383838; /* Slightly lighter table background */
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #555;
}

th {
    background-color: #454545;
    color: white;
    font-weight: 700;
}

tr:hover {
    background-color: #505050;
}

/* FST-7 Styling */
.fst-7 {
    background-color: #551515; /* Dark Red FST row */
    font-weight: bold;
    color: white; 
}

.fst-7 td:nth-child(2) { 
    color: #ffaa00; /* Orange/Yellow highlight for 7 Sets */
    font-size: 1.1em;
}

.fst-7-note {
    background-color: #333333;
    border-left: 5px solid #ff0000;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 4px;
    color: #f0f0f0;
}
.fst-7-note a {
    color: #ff0000;
}

/* Mobile Responsiveness (Updated for new colors) */
@media (max-width: 768px) {
    /* ... (Media query structure remains the same for table stacking) ... */
    td:before {
        color: #ff0000; /* Label color changed */
    }
}