body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    text-align: center;
    margin: 0;
    padding: 0;
    font-size: 16px; 
}

h1, h3 {
    color: #333;
}

.container {
    width: 85%;
    margin: auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 12px 18px;
    margin: 12px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 15px;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

input, select {
    padding: 10px;
    margin: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 15px;
}

#calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin: 30px auto;
    max-width: 910px; 
}

.day-cell {
    border: 1px solid #ccc;
    height: 120px; 
    text-align: center;
    padding: 4px;
    font-size: 16px;
    position: relative;
    background-color: #f9f9f9;
    overflow-y: auto; 
}

.day-cell:hover {
    background-color: #e6f7ff;
}

#day-labels {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    max-width: 700px;
    margin: 15px auto;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

.event {
    background-color: #add8e6;
    border-radius: 4px;
    padding: 3px 5px;
    margin-top: 3px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event:hover {
    background-color: #87ceeb;
}

.event-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border: 1px solid #ccc;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    width: 450px;
    max-width: 90%;
}

.event.general {
    background-color: #87ceeb; /* Light blue */
}
.event.personal {
    background-color: #ffb3b3; /* Light pink/red */
}
.event.work {
    background-color: #fcd34d; /* Yellow/gold */
}
.event.school {
    background-color: #90ee90; /* Light green */
}
.event.family {
    background-color: #dda0dd; /* Plum/purple */
}
/* Add hover variations if desired */
.event.general:hover { background-color: #6bb5d4; }
.event.personal:hover { background-color: #e69999; }
.event.work:hover { background-color: #e0b300; }
.event.school:hover { background-color: #76d076; }
.event.family:hover { background-color: #ba80ba; }