body {
    font-family: 'Inter', sans-serif;
}

textarea::-webkit-scrollbar {
    width: 8px;
}

textarea::-webkit-scrollbar-track {
    background: #1e293b;
}

textarea::-webkit-scrollbar-thumb {
    background-color: #3b82f6;
    border-radius: 20px;
    border: 3px solid #1e293b;
}

.speaking {
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

.loader {
    border: 4px solid #475569;
    border-top: 4px solid #38bdf8;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.tool-switcher-btn.active {
    background-color: #0ea5e9;
    color: white;
}

.aspect-ratio-btn {
    border: 2px solid #475569;
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: all 0.2s ease-in-out;
}

.aspect-ratio-btn:hover {
    border-color: #38bdf8;
}

.aspect-ratio-btn.active {
    background-color: #0ea5e9;
    color: white;
    border-color: #0ea5e9;
}

.copy-btn {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.group:hover .copy-btn {
    opacity: 1;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #1e293b;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 0.5rem;
    border: 1px solid #334155;
    margin-top: 0.5rem;
}

.profile-dropdown.open .profile-dropdown-content {
    display: block;
}