/* Base Custom Styles */
:root {
    --emoji-hover-bg: #fdf8f6;
    --emoji-hover-border: #f2e8e5;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Glassmorphism Header */
.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dark .glass-header {
    background: rgba(17, 24, 39, 0.85); /* gray-900 with opacity */
}

/* Custom Scrollbar for better UI */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 8px;
}

.dark ::-webkit-scrollbar-track {
    background: #374151; /* gray-700 */
}
 
::-webkit-scrollbar-thumb {
    background: #c1c1c1; 
    border-radius: 8px;
    border: 2px solid #f1f1f1;
}

.dark ::-webkit-scrollbar-thumb {
    background: #6b7280; /* gray-500 */
    border-color: #374151;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8; 
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #9ca3af; /* gray-400 */
}

/* Emoji Button Styles & Animations */
.emoji-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background-color: transparent;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.emoji-btn:hover {
    background-color: var(--emoji-hover-bg);
    border-color: var(--emoji-hover-border);
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 4px 12px rgba(163, 112, 90, 0.1);
    z-index: 10;
}

.dark .emoji-btn:hover {
    background-color: #374151; /* gray-700 */
    border-color: #4b5563; /* gray-600 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.emoji-btn:active {
    transform: scale(0.95);
}

/* Animation for the copy toast */
@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-1rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast-show {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hide scrollbar for textarea but allow scrolling */
textarea {
    scrollbar-width: thin;
}
