/* General page layout */

body {
    margin: 0;
    padding: 30px;
    font-family: Arial, sans-serif;
    background: #f5f6fa;
    color: #333;
}

/* Main content container */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Page heading */

h1 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 26px;
}

/* Calendar */

#calendar {
    min-height: 600px;
}

/* Mobile layout */

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 12px;
    }
}

/* Navigation links */

.top-links a {
    display: inline-block;
    padding: 10px 15px;
    margin-right: 8px;
    background: #2878c8;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.top-links a:hover {
    background: #1d5f9e;
}

/* Event modal */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.45);
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.modal-content h2 {
    margin-top: 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: inherit;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group input[type="checkbox"] {
    width: auto;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons button {
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
}

.save-button {
    background: #2878c8;
    color: white;
}

.cancel-button {
    background: #e5e5e5;
    color: #333;
}

.top-links {
    margin-bottom: 20px;
}