* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --light-bg: #f5f7fa;
    --dark-text: #333;
    --light-text: #777;
    --border-color: #ddd;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --card-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body {
    line-height: 1.6;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
}

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

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

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }
}

.schedule-builder, .schedule-display {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--card-shadow);
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="text"],
input[type="time"],
input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.days-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.days-container label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.days-container input {
    margin-right: 5px;
}

.time-group, .date-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
}

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

.class-card {
    background-color: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    position: relative;
}

.class-card h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.class-card p {
    margin-bottom: 5px;
    color: var(--light-text);
}

.class-card .remove-class {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.2rem;
}

.export-options {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#no-classes-message {
    font-style: italic;
    color: var(--light-text);
}

footer {
    margin-top: 50px;
    text-align: center;
    color: var(--light-text);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: var(--light-text);
    cursor: pointer;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    color: var(--light-text);
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane ol {
    padding-left: 20px;
}

.tab-pane li {
    margin-bottom: 8px;
}

.tab-pane a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Add these new styles at the end of the file */
.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary-color);
}

.footer-icon {
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease;
}

.footer-link:hover .footer-icon {
    transform: scale(1.1);
}

#skipped-dates-container {
    margin-bottom: 10px;
}

.skipped-date-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.skipped-date {
    flex: 1;
}

.remove-date-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 5px;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 15px;
}

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