

.calendar-container {
    margin: 0 auto;
    width: 350px;
    background-color: white;
    border-radius: 10px;
    /*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);*/
    overflow: hidden;
    padding: 1rem;
}

.date-display {
    text-align: center;
    margin-bottom: 20px;
}

.date-format {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.time-format {
    font-size: 22px;
    margin-bottom: 10px;
}

.separator {
    width: 50%;
    height: 1px;
    background-color: #ddd;
    margin: 15px auto;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.weekdays div {
    padding: 5px;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-gap: 5px;
}

.days div {
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.days div:hover {
    background-color: #f3f3f3;
    border-radius: 50%;
}

.days div.active {
    background-color: #f0f0f0;
    border-radius: 50%;
}

.days div.today {
    color: #fff;
    background-color: #333;
    border-radius: 50%;
}

.days div.selected {
    position: relative;
}

.days div.selected::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    /*border: 2px solid #ff0066;*/
    border-radius: 50%;
    z-index: 1;
}

.days div.calendar-heart {
    position: relative;
}

.days div.calendar-heart::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23ff0066" d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

.days div.empty {
    visibility: hidden;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.controls button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
}

.controls button:hover {
    background-color: #f0f0f0;
    border-radius: 5px;
}

#month-year {
    font-weight: bold;
}

.calendar-add-btn {
    margin: 15px auto 0;
    display: block;
    background: #ff0066;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}
.calendar-add-btn:hover {
    background: #d90057;
}

.twogis{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}
.twogis img{
    width: 50px;
    border-radius: 10px;
}
.telegram{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}
.telegram img{
    width: 50px;
    border-radius: 10px;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.calendar-heart {
    position: relative;
    color: #ff4d4d;
    font-weight: bold;
    animation: heartbeat 1.5s infinite;
    transform-origin: center;
}

.calendar-heart::after {
    content: '❤';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.8em;
}