:root {
    --backgroundPrimary: #ffffff;
    --textPrimary: #000000;
    --dayGridWidth: 100px;
    --dayGridHeight: 60px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--backgroundPrimary);
    color: var(--textPrimary);
}

.calendar-container {
    margin: 0 auto;
    padding: 20px;  
}

.calendar-header {
    background: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: black;
}

.date-display {
    font-size: 16px;
    color: var(--textPrimary);
    font-weight: 500;
}

.calendar-controls {
    background: white;
    padding: 20px 30px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.calendar-event-button {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #bbd8db;
    color: black;
}

.calendar-add-button {
    background: #81B17C;
}

.calendar-event-button:hover {
    background: #253939;
    color: white;
    transform: translateY(-1px);
}

.calendar-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,1);
}

.calendar-time-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    min-height: 600px;
}

.calendar-grid-header {
    display: grid;
    grid-template-columns: var(--dayGridWidth);
    min-height: 100px;
    align-items: end;
    justify-content: center;
}

.calendar-time-label {
    height: var(--dayGridHeight);
    max-width: 80px;
    margin: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    color: #000000;
    border-bottom: 1px solid #538E96;
    border-right: 1px solid #538E96;
}

.calendar-body {
    position: relative;
    background: white;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 0px;
}

.calendar-day-grid {
    display: grid;
    gap: 0px;
}

.calendar-time-slot {
    position: relative;
    display: grid;
    height: var(--dayGridHeight);
    padding: 2px 8px;
    align-items: start;
    font-size: 12px;
    font-weight: 500;
    overflow: visible;
    border-bottom: 1px solid #538E96;
    border-right: 1px solid #538E96;
}


.calendar-event {
    position: relative;
    border-radius: 6px;
    border-style: solid;
    border-color: rgba(0,0,0,0.5);
    border-width: 1px 1px;
    padding: 2px;
    margin: 2px;
    font-size: 11px;
    font-weight: 500;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.2s ease;
    background: rgb(117, 183, 236);
}

.calendar-event:hover {
    transform: translate(-1px);
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 
    Makes it so that the hover on calendar-event doesn't also trigger the
    hover on the calendar-time-slot.
*/
.calendar-time-slot:not(:has(.calendar-event:hover)):hover {
    background-color: #c9d7da;
}