/* Стили для кнопки добавления в календарь */
.add-to-calendar-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 5px;
    color: #28a745;
    font-size: 1.6em;
    padding: 2px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    vertical-align: baseline;
    margin-bottom: -2px;
}

.add-to-calendar-btn:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}

.add-to-calendar-btn:active {
    transform: scale(0.95);
}

.add-to-calendar-btn:focus {
    outline: 2px solid #2a3142;
    outline-offset: 2px;
}

.add-to-calendar-btn:hover {
    color: #20662d;
    transform: scale(1.1);
}

/* Стили для блока шаринга */
.sharing-section {
    margin: 10px 0;
    line-height: 1.6;
}

.sharing-section a,
.sharing-section .add-to-calendar-btn {
    margin-right: 8px;
    transition: transform 0.2s ease;
}

.sharing-section a:hover,
.sharing-section .add-to-calendar-btn:hover {
    transform: scale(1.1);
}

/* Стили для уведомления о добавлении в календарь */
.calendar-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.calendar-notification.show {
    transform: translateX(0);
}

/* Стили для модального окна выбора календаря */
.calendar-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calendar-modal-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-align: center;
}

.calendar-modal h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.calendar-modal p {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 14px;
}

.calendar-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calendar-modal-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    text-decoration: none;
    display: block;
}

.calendar-modal-btn.google {
    background-color: #4285f4;
    color: white;
}

.calendar-modal-btn.google:hover {
    background-color: #3367d6;
}

.calendar-modal-btn.outlook {
    background-color: #0078d4;
    color: white;
}

.calendar-modal-btn.outlook:hover {
    background-color: #106ebe;
}

.calendar-modal-btn.download {
    background-color: #2a3142;
    color: white;
}

.calendar-modal-btn.download:hover {
    background-color: #5a5dc7;
}

.calendar-modal-btn.cancel {
    background: none;
    color: #666;
    border: 1px solid #ddd;
    margin-top: 10px;
    padding: 8px 16px;
}

.calendar-modal-btn.cancel:hover {
    background-color: #f5f5f5;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .add-to-calendar-btn {
        margin-left: 5px;
        font-size: 1.4em;
        min-width: 30px;
        min-height: 30px;
    }
    
    .calendar-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }
    
    .calendar-notification.show {
        transform: translateY(0);
    }
    
    .calendar-modal-content {
        padding: 20px;
        margin: 20px;
    }
} 