﻿/* Calendar styles */
.calendar {
    font-family: Arial, sans-serif;
    width: 350px;
    border: 1px solid #bbb;
    border-radius: 4px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    margin-bottom: 10px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #5865d6;
    color: #fff;
    padding: 10px;
    border-bottom: 1px solid #bbb;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.nav-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
}

.calendar-body {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
}

.calendar-day {
    width: 14.28%;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    transition: background-color 0.3s ease;
}

    .calendar-day:hover::before {
        content: "";
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background-color: rgba(0, 0, 0, 0.1);
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 0;
    }

    .calendar-day:hover {
        color: #5865d6;
    }

.calendar-day-header {
    position: static;
}

.calendar-day.selected {
    background-color: transparent;
}

    .calendar-day.selected::before {
        content: "";
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background-color: #5865d6;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: bold;
        font-size: 14px;
        z-index: 1;
    }

    .calendar-day.selected span {
        color: #fff;
        position: relative;
        z-index: 1;
    }

.other-month {
    color: #ccc;
}

.task-day-orange::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: orange;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    right: 5px;
}

.task-day-red::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    right: 5px;
}

.task-day-blue::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: blue;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    right: 5px;
}


/* Events styles */
.events-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.events-item {
    background: #ffffff;
    border-left: 5px solid #5865d6;
    border-radius: 4px;
    box-shadow: 1px 4px 8px rgba(0, 0, 0, 0.05);
    padding: 8px 12px;
    margin-bottom: 8px;
}

    .events-item.read {
        border-left: none;
    }

.events-group {
    background: #e9eef5;
    border-left: 2px solid #5865d6;
    border-radius: 4px;
    box-shadow: 1px 4px 8px rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    margin-bottom: 8px;
}

    .events-group.read {
        border-left: none;
    }

details summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    outline: none;
}

    details summary::-webkit-details-marker {
        display: none;
    }

.events-item--right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.events-item--left {
    display: flex;
    flex-direction: column;
}

.events-name {
    font-weight: 600;
    color: #333;
}

.events-date {
    font-size: 12px;
    color: #777;
}

.arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #5865d6;
    color: white;
    font-size: 12px;
    transition: transform 0.3s ease-in-out, background-color 0.3s;
}

    .arrow::after {
        content: '▶';
        font-size: 12px;
    }

details[open] .arrow::after {
    content: '▼';
}

details[open] .arrow {
    background-color: #5865d6;
}

.events-item--description {
    padding-top: 10px;
    font-size: 14px;
    color: #555;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.status-span {
    border-radius: 10%;
    color: white;
    border-radius: 3.01px;
    display: inline-block;
    font-weight: 400;
    line-height: 1;
    padding: 1px 5px;
    text-align: left;
}
