/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    background-color: #333;
    color: white;
    padding: 15px 0;
    text-align: center;
}

header nav {
    margin-top: 10px;
}

header nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
}

header nav a:hover {
    text-decoration: underline;
}

/* Form & Inputs */
form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

form select {
    max-width: 300px;
    margin-top: 10px;
}

/* Submit Button */
.submit-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #45a049;
}

.submit-btn:active {
    background-color: #3e8e41;
}

/* Table Styles for Spreadsheet View */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 16px;
}

thead th {
    background-color: #f0f0f0;
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #ccc;
    cursor: pointer;
    white-space: nowrap;
}

thead th a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

thead th a:hover {
    text-decoration: underline;
}

tbody td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

tbody tr:hover {
    background-color: #fafafa;
}

/* Pagination */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination button {
    padding: 8px 16px;
    margin: 0 5px;
    border: none;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.pagination button:hover:not(.disabled) {
    background-color: #45a049;
}

.pagination .disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Logout Button */
.logout {
    background-color: #ff4d4d;
    color: white;
    padding: 10px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.logout:hover {
    background-color: #e60000;
}

/* Optional Clean-up: Old .workout-list styles (likely deprecated) */
.workout-list {
    list-style-type: none;
    padding: 0;
}

.workout-list li {
    margin-bottom: 10px;
}

.workout-list a {
    text-decoration: none;
    font-size: 16px;
    color: #333;
}

.delete-btn {
    color: red;
    font-size: 14px;
    margin-left: 10px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        width: 95%;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
    }

    .submit-btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    table {
        font-size: 14px;
    }

    thead th, tbody td {
        padding: 8px;
    }
}
