/* --- Admin Panel Stilleri --- */
#nkm-v76-admin-app .nkm-tab-content {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin-top: -1px; /* Tablarla birleştir */
}
#nkm-v76-admin-app .nkm-tab-content:not(:first-child) {
    display: none;
}
.nkm-result-box {
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
    white-space: pre-wrap; /* Satır sonlarını koru */
    font-family: monospace;
    max-height: 300px;
    overflow-y: auto;
}
.nkm-result-box.nkm-success {
    border-color: #28a745;
    color: #155724;
    background-color: #d4edda;
}
.nkm-result-box.nkm-error {
    border-color: #dc3545;
    color: #721c24;
    background-color: #f8d7da;
}
.nkm-post-type-list {
    background: #fafafa;
    border: 1px solid #ddd;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 4px;
}
#nkm-scan-progress-wrapper {
    margin-top: 15px;
}
#nkm-scan-progress-bar {
    width: 100%;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 25px;
}
#nkm-scan-progress-inner {
    width: 0%;
    height: 100%;
    background-color: #0073aa;
    border-radius: 4px;
    transition: width 0.3s ease-in-out;
    text-align: center;
    color: white;
    line-height: 25px;
}
#nkm-scan-progress-text {
    margin-top: 5px;
    font-style: italic;
    color: #555;
}


/* --- Frontend Chatbot Stilleri --- */

/* Hata #6 Çözümü: Soru işareti (?) yerine SVG ikonlu baloncuk */
.nkm-chat-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #0073aa; /* WordPress mavisi */
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    transition: transform 0.2s ease;
}
.nkm-chat-bubble:hover {
    transform: scale(1.1);
}
.nkm-chat-bubble svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

/* Chat Penceresi */
.nkm-chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    max-height: 70vh;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.nkm-chat-header {
    background: #0073aa;
    color: white;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.nkm-chat-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
}
.nkm-chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
}
.nkm-chat-message {
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 10px;
    max-width: 80%;
    line-height: 1.4;
}
.nkm-chat-message.nkm-user {
    background: #0073aa;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.nkm-chat-message.nkm-bot {
    background: #e9e9e9;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.nkm-chat-message.nkm-loading {
    background: #e9e9e9;
    color: #888;
    align-self: flex-start;
    font-style: italic;
    border-bottom-left-radius: 4px;
}

/* Hata #5 Çözümü: Gönder butonlu form */
.nkm-chat-form {
    display: flex;
    border-top: 1px solid #ddd;
    background: #fff;
}
.nkm-chat-form input[type="text"] {
    flex-grow: 1;
    border: none;
    padding: 15px;
    font-size: 14px;
    border-radius: 0;
    box-shadow: none;
    outline: none;
}
.nkm-chat-form button {
    background: #0073aa;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-right-radius: 10px;
}
.nkm-chat-form button:disabled {
    background: #ccc;
}
.nkm-chat-form button svg {
    width: 20px;
    height: 20px;
    fill: white;
}
