/* styles.css */

/* Base Styles */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
}

h1, h2 {
    text-align: center;
}

form {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

form label {
    display: flex;
    align-items: center;
    gap: 5px;
}

button {
    padding: 5px 10px;
    cursor: pointer;
    border: none;
    background-color: #007BFF;
    color: white;
    border-radius: 4px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

/* Calendar Styles */
table.calendar {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}

table.calendar th {
    border: 1px solid #ccc;
    padding: 10px;
    background: #f2f2f2;
    text-align: center;
    font-weight: bold;
}

table.calendar td {
    vertical-align: top;
    border: 1px solid #ccc;
    height: 150px;
    padding: 5px;
    position: relative;
    overflow-y: auto;
    background-color: #fff;
    transition: background-color 0.3s, border 0.3s;
}

table.calendar td:hover {
    background-color: #fafafa;
}

.day-number {
    font-weight: bold;
    margin-bottom: 4px;
}

.event {
    padding: 2px 4px;
    margin: 2px 0;
    display: block;
    background: #f0f0f0;
    border-radius: 4px;
    transition: background 0.3s;
    cursor: pointer;
    font-size: 0.9em;
}

.event:hover {
    background: #ddd;
}

.event.selected {
    background: yellow;
}

.event.special {
    background: paleturquoise;
    color: #000;
    cursor: pointer;
}

.event.special.selected {
    background: goldenrod;
    color: #fff;
}

.reset-line {
    font-size: 0.85em;
    color: #cc3a00;
    display: block;
    text-align: center;
    margin: 2px 0;
}

.time-local {
    font-size: 0.9em;
    color: #333;
}

.time-game {
    font-size: 0.9em;
    color: #555;
    margin-left: 5px;
}

/* Highlight "today" styling */
table.calendar td.today {
    background-color: #f3c59f; /* Updated color */
    border: 2px solid #00b894; /* Optional: Changed border color for better contrast */
}

/* Event link styling */
.event-link {
    margin-left: 5px;
    font-size: 0.8em;
    color: blue;
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
}

.event-link:hover {
    text-decoration: underline;
}

/* Collapsible Weeks Styles */
.collapsible {
    display: none;
}

.collapse-button {
    padding: 5px 10px;
    cursor: pointer;
    border: none;
    background-color: #28a745;
    color: white;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.collapse-button:hover {
    background-color: #218838;
}

/* Responsive Design */
@media (max-width: 800px) {
    table.calendar th, table.calendar td {
        padding: 5px;
    }
}

@media (max-width: 600px) {
    table.calendar th, table.calendar td {
        padding: 3px;
    }
    .event {
        font-size: 0.8em;
    }
    form {
        flex-direction: column;
        align-items: flex-start;
    }
    button, .collapse-button {
        width: 100%;
    }
}
