:root {
    --primary-color: #0088cc;
    --secondary-color: #f0f2f5;
    --text-color: #333;
    --light-text: #777;
    --user-message-bg: #e3f2fd;
    --other-message-bg: #f1f1f1;
    --online-color: #4CAF50;
    --error-color: #f44336;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: var(--text-color);
}

.sohbet-container {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 40px);
}

.sohbet-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sohbet-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.online-count {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.online-count i {
    margin-right: 5px;
}

.sohbet-mesajlari {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: column;
}

.mesaj {
    max-width: 70%;
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
}

.mesaj.kullanici {
    align-self: flex-end;
    background-color: var(--user-message-bg);
    border-bottom-right-radius: 5px;
}

.mesaj.diger {
    align-self: flex-start;
    background-color: var(--other-message-bg);
    border-bottom-left-radius: 5px;
}

.mesaj-bilgi {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--light-text);
    margin-top: 5px;
}

.mesaj-ad {
    font-weight: 500;
    margin-bottom: 5px;
}

.mesaj-tarih {
    text-align: right;
}

.mesaj-icerik {
    line-height: 1.4;
}

.dosya-icerik {
    margin-top: 10px;
}

.dosya-link {
    display: inline-block;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 5px;
}

.dosya-link:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.sohbet-input {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background-color: white;
}

.input-actions {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.input-actions button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--light-text);
    cursor: pointer;
    margin-right: 15px;
    padding: 5px;
}

.input-actions button:hover {
    color: var(--primary-color);
}

.anonim-label {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--light-text);
    cursor: pointer;
    margin-left: auto;
}

.anonim-label input {
    margin-right: 5px;
}

.message-input-container {
    display: flex;
    align-items: center;
}

.message-input-container textarea {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    resize: none;
    height: 40px;
    max-height: 120px;
    font-family: inherit;
    outline: none;
    transition: border 0.3s;
}

.message-input-container textarea:focus {
    border-color: var(--primary-color);
}

.message-input-container button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.message-input-container button:hover {
    background-color: #0077b3;
}

.dosya-bilgi {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--light-text);
    display: none;
}

.emoji-picker {
    position: absolute;
    bottom: 80px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 10px;
    display: none;
    z-index: 1000;
    max-width: 300px;
    max-height: 200px;
    overflow-y: auto;
}

.emoji-picker.show {
    display: block;
}

.emoji-item {
    display: inline-block;
    font-size: 1.5rem;
    padding: 5px;
    cursor: pointer;
}

.emoji-item:hover {
    transform: scale(1.2);
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mesaj {
    animation: fadeIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .sohbet-container {
        margin: 0;
        height: 100vh;
        border-radius: 0;
    }
    
    .mesaj {
        max-width: 85%;
    }
}