/* Stiluri combinate pentru funcționalitățile de voce și autentificare */

/* VOICE INPUT STYLES */
.voice-indicator {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-button);
    color: white;
    border-radius: 12px;
    padding: 0;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.voice-indicator.visible {
    transform: scale(1);
    opacity: 1;
}

.voice-indicator-inner {
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

.voice-wave {
    display: flex;
    align-items: center;
    height: 24px;
    margin-right: 12px;
}

.voice-bar {
    width: 4px;
    height: 100%;
    background-color: white;
    margin: 0 2px;
    border-radius: 2px;
    animation: voice-wave 1.2s infinite ease-in-out;
}

.voice-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.voice-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.voice-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.voice-bar:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes voice-wave {
    0%, 100% {
        height: 30%;
    }
    50% {
        height: 100%;
    }
}

.voice-text {
    font-size: 16px;
    font-weight: 500;
}

#voice-input-btn {
    transition: all 0.2s ease;
}

#voice-input-btn.active {
    background-color: #ff4a4a;
    color: white;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 74, 74, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 74, 74, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 74, 74, 0);
    }
}

/* AUTH STYLES */
.auth-container {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    border-radius: 6px;
}

.auth-container.logged-in {
    background-color: rgba(255, 255, 255, 0.05);
}

.user-info-container {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid var(--primary-button);
    background-size: cover;
    background-position: center;
}

.user-info {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-discriminator {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.auth-btn {
    background-color: #5865f2; /* Culoare Discord */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
    width: 100%;
    justify-content: center;
}

.auth-btn:hover {
    background-color: #4752c4;
}

.auth-btn i {
    font-size: 16px;
}

.logout-btn {
    background-color: transparent;
    color: white;
    border: none;
    padding: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.logout-btn:hover {
    opacity: 1;
}

/* Stil pentru butonul de profil */
.profile-dropdown {
    position: relative;
    width: 100%;
}

.profile-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: var(--sidebar-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    width: 100%;
    padding: 8px 0;
    margin-bottom: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 100;
}

.profile-dropdown.open .profile-menu {
    display: block;
    animation: dropdown-appear 0.2s ease;
}

@keyframes dropdown-appear {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-menu-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.profile-menu-item:hover {
    background-color: var(--sidebar-hover);
}

.profile-menu-item i {
    width: 18px;
    font-size: 15px;
    text-align: center;
}

.profile-menu-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

/* Avatars with fallback when image fails to load */
.user-avatar-fallback {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-button);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .auth-btn {
        padding: 10px;
    }
    
    .profile-menu {
        width: 200px;
        right: 0;
    }
}
