:root {
    --primary-color: #4a90e2;
    --secondary-color: #f5f6fa;
    --text-color: #2c3e50;
    --border-radius: 8px;
    --spacing: 20px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: var(--spacing);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.form-group-row {
    display: flex;
    gap: 20px;
}

.form-group-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

textarea, input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

textarea {
    resize: vertical;
}

button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #357abd;
}

.secondary-btn {
    background-color: #6c757d;
    width: auto;
}

.secondary-btn:hover {
    background-color: #5a6268;
}

.hidden {
    display: none;
}

#result-section {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

#schedule-display {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

th {
    background-color: var(--primary-color);
    color: white;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #666;
    font-size: 0.9em;
}

/* Markdown Styles */
#schedule-display h2 {
    color: var(--primary-color);
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

#schedule-display ul {
    padding-left: 20px;
}

#schedule-display li {
    margin-bottom: 5px;
}

/* Progress Bar Styles */
#progress-container {
    margin-top: 20px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

#progress-text {
    margin: 0;
    font-size: 14px;
    color: var(--text-color);
}
