* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "TASA Explorer", sans-serif;
}

body {
    background-color: var(--main-background);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.first {
    margin: 1rem 1rem 1rem 16rem;
    width: auto;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.first_left {
    width: 50%;
    display: flex;
    flex-direction: column;
    color: #fff;
    gap: 1rem;
}

.first_left_item {
    background-color: var(--col-2);
    padding: 1rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.first_left_item:hover {
    background-color: var(--col-3);
    transition: all 0.3s ease;
}

#sidebar_oid {
    word-break: break-all;
}

.first_left_item span {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.first_right {
    width: 50%;
}

/*first_right*/
.calendar_container {
    background: transparent;
    border-radius: 1rem;
    padding: 1rem;
    border: var(--col-2) 2px solid;
}

.calendar_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar_header h3 {
    color: var(--main-text);
    font-size: 1rem;
}

.calendar_header button {
    width: fit-content;
    border: none;
    margin: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar_header button:hover {
    cursor: pointer;
    background-color: transparent;
}

.calendar_header img {
    height: 1rem;
    width: auto;
}

.calendar_weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 5px;
}

.calendar_weekdays div {
    font-weight: bold;
    font-size: 0.8rem;
    color: var(--main-text);
    padding: 10px 0;
}

.calendar_days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 100px; /* This must match the JS math */
    position: relative;
    border-top: 1px solid var(--col-2);
    border-left: 1px solid var(--col-2);
}

.calendar_cell {
    border-right: 1px solid var(--col-2);
    border-bottom: 1px solid var(--col-2);
    padding: 8px;
    z-index: 1;
}

.day_number {
    color: var(--main-text);
    font-size: 0.8rem;
    font-weight: bold;
}

.event_bar {
    position: absolute;
    z-index: 10;
    height: 16px;
    background-color: #49b356;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 0 5px;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.event_bar:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 8px #49b356;
}

@media (max-width: 768px) {
    .first {
        margin: 6rem 2%;
        width: 96%;
        flex-direction: column;
    }

    .first_left {
        width: 100%;
    }

    .first_left_item h3 {
        font-size: 1rem;
    }

    .first_left_item p {
        font-size: 0.8rem;
    }

    .first_left_item span {
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .first_right {
        width: 100%;
    }
}