/* Утренние приветствия */
.morning-greeting {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    z-index: 10000;
    max-width: 400px;
    animation: slideInRight 0.5s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.greeting-content {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    gap: 15px;
}

.greeting-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.greeting-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
}

.greeting-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.greeting-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Праздничные поздравления */
.holiday-greeting {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    max-width: 500px;
    width: 90%;
    animation: scaleIn 0.3s ease-out;
    border: 2px solid #8BDE00;
}

.holiday-content {
    padding: 30px;
}

.holiday-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.holiday-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 20px;
    font-weight: 600;
}

.holiday-icon {
    font-size: 32px;
}

.holiday-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #718096;
    margin-left: auto;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.holiday-close:hover {
    background: #f7fafc;
}

.holiday-message {
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 25px;
}

.holiday-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Модальное окно дня рождения */
.birthday-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    padding: 20px;
}

.birthday-modal {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    animation: modalAppear 0.3s ease-out;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.birthday-header {
    background: linear-gradient(135deg, #8BDE00, #6B8E23);
    color: white;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.birthday-header h2 {
    margin: 15px 0 0 0;
    font-size: 24px;
    font-weight: 600;
}

.birthday-icon {
    font-size: 48px;
}

.birthday-content {
    padding: 30px;
}

.birthday-congrats {
    font-size: 18px;
    font-weight: 500;
    color: #2d3748;
    text-align: center;
    margin-bottom: 25px;
}

.birthday-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.birthday-input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.birthday-input:focus {
    outline: none;
    border-color: #8BDE00;
}

.privacy-notice {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #8BDE00;
}

.privacy-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
    margin: 10px 0 0 0;
}

/* Стили для обфускации с подсказкой */
.obfuscation-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.obfuscation-tooltip strong {
    color: #8BDE00;
    border-bottom: 1px dashed #8BDE00;
}

.info-icon {
    width: 14px;
    height: 14px;
    margin-left: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.obfuscation-tooltip:hover .info-icon {
    opacity: 0;
}

.tooltip-text {
    visibility: hidden;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    width: 280px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #2d3748 transparent transparent transparent;
}

.obfuscation-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.heart-icon {
    width: 16px;
    height: 16px;
    margin: 0 4px;
    vertical-align: middle;
}

.birthday-actions {
    padding: 0 30px 30px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Анимации */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes modalAppear {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .morning-greeting {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .holiday-greeting {
        width: 95%;
    }

    .birthday-modal {
        margin: 10px;
    }

    .tooltip-text {
        width: 250px;
        font-size: 12px;
    }
}