body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e1e1e, #121212);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    scrollbar-width: thin;
    scrollbar-color: #4a4a4a #252525;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: #252525;
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    box-sizing: border-box;
}

.chat-section {
    background: #252525;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    height: 80vh;
    overflow: hidden;
}

h1 {
    margin: 0 0 15px;
    font-size: 24px;
    color: #fff;
    text-align: center;
    font-weight: normal;
    letter-spacing: 1px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
}

#chatLog {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    border-bottom: 1px solid #333;
    scrollbar-width: thin;
    scrollbar-color: #4a4a4a #252525;
}

#chatLog::-webkit-scrollbar {
    width: 8px;
}

#chatLog::-webkit-scrollbar-track {
    background: #252525;
    border-radius: 10px;
}

#chatLog::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 10px;
}

#chatLog::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.user {
    background: #007bff;
    padding: 10px 15px;
    border-radius: 15px;
    margin: 10px 0;
    max-width: 70%;
    align-self: flex-end;
    color: #fff;
    word-wrap: break-word;
}

.ai {
    background: #28a745;
    padding: 10px 15px;
    border-radius: 15px;
    margin: 10px 0;
    max-width: 70%;
    color: #fff;
    word-wrap: break-word;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    position: relative;
}

#userInput {
    width: 100%;
    min-height: 50px;
    max-height: 150px;
    padding: 15px;
    background: #333;
    border: none;
    border-radius: 10px;
    color: #fff;
    outline: none;
    font-size: 16px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
    resize: none;
    overflow-y: auto;
    box-sizing: border-box;
}

#userInput:focus {
    background: #3a3a3a;
}

#userInput::placeholder {
    color: #888;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

#languageButton, #micButton, #muteButton, #sendButton, #stopSpeakButton {
    padding: 12px;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    width: 70px;
    transition: background 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#languageButton:hover, #micButton:hover, #muteButton:hover, #sendButton:hover {
    background: #666;
}

#muteButton.muted {
    background: #ff5555;
}

#muteButton.muted:hover {
    background: #ff7777;
}

#stopSpeakButton {
    background: #ff5555;
}

#stopSpeakButton:hover {
    background: #ff7777;
}

#micButton.active {
    background: #28a745;
}

#sendButton:disabled {
    background: #333;
    cursor: not-allowed;
}

#clearChatButton {
    background: #ff5555;
    width: 50px;
    border: none;
    padding: 5px 5px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

#clearChatButton:hover {
    background: #ff7777;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-menu {
    display: none;
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e1e1e;
    border: 1px solid #444;
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    width: 200px;
    z-index: 1000;
    scrollbar-width: thin;
    scrollbar-color: #4a4a4a #252525;
}

.language-menu::-webkit-scrollbar {
    width: 8px;
}

.language-menu::-webkit-scrollbar-track {
    background: #252525;
    border-radius: 10px;
}

.language-menu::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 10px;
}

.language-menu::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.language-menu div {
    padding: 10px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.language-menu div:hover {
    background: #333;
}

@media (max-width: 768px) {
    .input-container {
        position: fixed;
        bottom: 10px;
        left: 10px;
        right: 10px;
        margin-top: 0;
        background: #252525;
        padding: 10px;
        border-radius: 15px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        
        
    }
    .header h1 {
        margin-top: 30px; /* Daha küçük ekranlarda daha fazla kaydırma */
    }

    .chat-section {
        height: calc(100vh - 150px);
        margin-bottom: 150px;
    }

    #chatLog {
        padding-bottom: 20px;
    }

    #userInput {
        font-size: 14px;
        padding: 12px;
    }

    #languageButton, #micButton, #muteButton, #sendButton, #stopSpeakButton {
        width: 70px;
        font-size: 16px;
    }

    .language-menu {
        width: 150px;
        bottom: 50px;
    }
}