/* ------------------------------
   PentanGPT — Global Ayarlar
--------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: #0f0f0f;
    color: #eee;
    overflow: hidden;
    height: 100vh;
}

/* ------------------------------
   Uygulama Shell
--------------------------------*/
.app-shell {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* ------------------------------
   Sol Sidebar
--------------------------------*/
.sidebar {
    width: 280px;
    background: #141414;
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
    padding: 18px;
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 20px;
}

.brand {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: #d1001f;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: 800;
    color: white;
}

.brand-text {
    margin-left: 12px;
}

.brand-title {
    font-size: 20px;
    font-weight: 700;
}

.brand-sub {
    font-size: 12px;
    opacity: 0.7;
    margin-top: -2px;
}

.btn {
    border: none;
    cursor: pointer;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
}

.btn-new-chat {
    width: 100%;
    background: #d1001f;
    color: white;
    font-weight: 600;
}

.btn-new-chat:hover {
    background: #b60019;
}

.conversation-list {
    margin-top: 10px;
}

.conv-item {
    padding: 12px;
    background: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.conv-item:hover {
    background: #222;
}

.conv-title {
    font-size: 14px;
    font-weight: 600;
}

.conv-meta {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 4px;
}

.empty {
    opacity: 0.5;
    padding: 10px;
    font-size: 14px;
}

/* ------------------------------
   Ana Chat Alanı
--------------------------------*/
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid #222;
    background: #141414;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    font-size: 18px;
    font-weight: 600;
}

/* Model Select */
.chat-controls select {
    background: #1b1b1b;
    color: #eee;
    border: 1px solid #333;
    padding: 6px 12px;
    border-radius: 8px;
}

/* ------------------------------
   Mesaj Alanı
--------------------------------*/
.chat-messages {
    flex: 1;
    padding: 20px 30px;
    overflow-y: auto;
}

.msg {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    width: fit-content;
    max-width: 50%;
    line-height: 1.5;
    font-size: 15px;
}

.msg.user {
    background: #d1001f;
    color: white;
    margin-left: auto;
}

.msg.assistant {
    background: #1a1a1a;
    color: #ddd;
    border: 1px solid #222;
}

/* Hoş geldin balonu */
.msg-welcome {
    text-align: center;
    margin: 40px auto;
    background: #181818 !important;
    border: 1px solid #222 !important;
}

/* ------------------------------
   Footer Input
--------------------------------*/
.chat-footer {
    padding: 18px 20px;
    border-top: 1px solid #222;
    background: #141414;
}

.input-wrapper {
    display: flex;
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    padding-left: 12px;
}

#msgInput {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px;
    color: #eee;
    resize: none;
    height: 46px;
}

#msgInput:focus {
    outline: none;
}

.btn-send {
    background: #d1001f;
    color: white;
    border-radius: 0;
    padding: 12px 18px;
    font-weight: 600;
}

.btn-send:hover {
    background: #b60019;
}

.chat-meta {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.6;
}

/* ------------------------------
   Mobil Düzen
--------------------------------*/
@media (max-width: 900px) {
    .sidebar {
        display: none;
    }
    .app-shell {
        flex-direction: column;
    }
    body {
        overflow: auto;
    }
    .chat-messages {
        padding: 16px;
    }
    .msg {
        max-width: 80%;
    }
}
