/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Navigation */
.navbar {
    background-color: #2c3e50;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: bold;
}

.nav-links a {
    color: #ecf0f1;
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #3498db;
}

/* Container */
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Headings */
h1 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-success {
    background-color: #27ae60;
    color: #fff;
}

.btn-success:hover {
    background-color: #219a52;
}

.btn-danger {
    background-color: #e74c3c;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-warning {
    background-color: #f39c12;
    color: #fff;
}

.btn-warning:hover {
    background-color: #d68910;
}

.btn-active {
    background-color: #2c3e50;
    color: #fff;
}

.btn-active:hover {
    background-color: #1a252f;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Task controls */
.task-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    margin-top: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.data-table th {
    background-color: #34495e;
    color: #fff;
    font-weight: 500;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.clickable-row {
    color: #3498db;
    text-decoration: none;
}

.clickable-row:hover {
    text-decoration: underline;
}

.actions {
    white-space: nowrap;
}

.inline-form {
    display: inline;
}

.empty-message {
    text-align: center;
    color: #7f8c8d;
    padding: 2rem !important;
}

/* Effort level badges */
.effort {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
}

.effort-low {
    background-color: #d5f5e3;
    color: #1e8449;
}

.effort-medium {
    background-color: #fdebd0;
    color: #b9770e;
}

.effort-high {
    background-color: #fadbd8;
    color: #c0392b;
}

/* Forms */
.edit-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 500px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #7f8c8d;
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
}

/* Error message */
.error-message {
    background-color: #fadbd8;
    border: 1px solid #e74c3c;
    color: #c0392b;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.error-message a {
    color: #c0392b;
    font-weight: 500;
}

/* Home page cards */
.home-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.home-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.home-card h2 {
    color: #3498db;
    margin-bottom: 0.5rem;
}

.home-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Schedule */
.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.schedule-header h1 {
    margin-bottom: 0;
}

.schedule {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.schedule-day {
    margin-bottom: 1.5rem;
}

.schedule-day:last-child {
    margin-bottom: 0;
}

.day-heading {
    font-size: 1rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.day-separator {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.task-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.task-list li {
    padding: 0.25rem 0;
}

.task-list a {
    color: #3498db;
    text-decoration: none;
}

.task-list a:hover {
    text-decoration: underline;
}

.task-meta {
    color: #95a5a6;
    font-size: 0.85rem;
}

.no-tasks {
    color: #95a5a6;
    font-style: italic;
    margin: 0;
}

/* Overdue tasks */
.overdue-label {
    color: #e74c3c;
    font-weight: bold;
    margin-left: 0.5rem;
}

.schedule-day.overdue .day-heading {
    color: #c0392b;
}
