* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f5f5f5;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.user-info input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.chat-container {
    display: flex;
    flex-direction: column;
}

#chat-messages, .admin-chat-messages {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    height: 300px;
    overflow-y: auto;
    background: #f9f9f9;
    margin-bottom: 10px;
}

.input-area, .admin-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
    height: 60px;
}

button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: #4a6fa5;
    color: white;
}

button:hover {
    background: #3a5a80;
}

.hidden { display: none !important; }

.modal {
    position: fixed;
    top:0; left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.5);
    display:flex;
    justify-content:center;
    align-items:center;
}

.modal-content {
    background:white;
    padding:20px;
    border-radius:8px;
    width:300px;
    text-align:center;
}

/* Mesaj baloncukları */
.message {
    margin-bottom: 10px;
    max-width: 70%;
    padding: 8px 12px;
    border-radius: 15px;
    display: inline-block;
    word-wrap: break-word;
}

/* Kullanıcı mesajları */
.user-message {
    background: #e0e0e0;
    color: #333;
    text-align: left;
    float: left;
    clear: both;
}

.user-message .sender {
    font-weight: bold;
    margin-right: 5px;
}

/* Admin mesajları */
.admin-message {
    background: #d0f0c0;
    color: #333;
    text-align: right;
    float: right;
    clear: both;
}

.admin-message .admin-sender {
    font-weight: bold;
    color: red;
    margin-right: 5px;
}











