/* Extracted from index.html — CSP: no inline <style> block */

html, body {
    background-color: var(--bg-color, #f5f7fb) !important;
    height: 100%;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

/* Switch Toggle CSS */
.switch input:checked + .slider {
    background-color: #4CAF50 !important;
}
.switch input:focus + .slider {
    box-shadow: 0 0 1px #4CAF50;
}
.switch input:checked + .slider:before {
    transform: translateX(16px);
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* Анимации питомцев */
@keyframes petBreathe {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
@keyframes petBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes petSlideIn {
    0% { transform: translateX(-50px) scale(0.8); opacity: 0; }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes petSlideOut {
    0% { transform: translateX(50px) scale(0.8); opacity: 0; }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}
.pet-anim-breathe { animation: petBreathe 3s infinite ease-in-out; display: inline-block; }
.pet-anim-bounce { animation: petBounce 0.5s infinite ease-in-out; display: inline-block; }
.pet-anim-slide-in { animation: petSlideIn 0.3s ease-out forwards; display: inline-block; }
.pet-anim-slide-out { animation: petSlideOut 0.3s ease-out forwards; display: inline-block; }

/* Emoji Reactions Popover */
.emoji-popover {
    position: absolute;
    background: var(--bg-panel, #ffffff);
    border-radius: 30px;
    padding: 8px 12px;
    display: flex;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.emoji-popover.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}
.emoji-option {
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.emoji-option:hover {
    transform: scale(1.2);
}
.emoji-option img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.emoji-option-more {
    background: var(--border-color, #e0e0e0);
    border-radius: 50%;
    color: var(--text-color, #333);
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
}

/* Full Emoji Picker Modal */
#fullEmojiPicker {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}
#fullEmojiPicker.active {
    display: flex;
}
.full-emoji-content {
    background: var(--bg-panel, #ffffff);
    width: 90%;
    max-width: 400px;
    height: 60vh;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.full-emoji-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}
.full-emoji-grid {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 10px;
    align-content: flex-start;
}
.full-emoji-grid .emoji-option {
    width: 40px;
    height: 40px;
}
.message-reaction {
    position: absolute;
    bottom: -10px;
    right: 10px;
    background: var(--bg-panel, #ffffff);
    border-radius: 12px;
    padding: 2px 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.message-reaction img {
    width: 16px;
    height: 16px;
}
@keyframes popIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}
