/* ======================================================= */
/* ==          STYLES FOR ADMIN SETTINGS PAGE           == */
/* ======================================================= */

/* --- Conversations Table Styles --- */
#tab-messages .inner-messages-box { 
    padding: 0; 
    display: block;
}

#chatbot-conversations-table tr.unread td {
    font-weight: bold;
}

#chatbot-conversations-table tr.unread:hover td {
    background-color: #fff8f8;
}

#tab-messages .admin-chat-message { 
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.5;
    margin: 0;
    border: none;
}

#tab-messages .admin-chat-message.user {
    background-color: #add8e6; /* Fallback color */
    background-color: var(--chatbot-user-message-bg-color, #add8e6);
    color: var(--chatbot-user-message-text-color, #000);
}

#tab-messages .admin-chat-message.bot {
    background-color: #ffc0cb; /* Fallback color */
    background-color: var(--chatbot-bot-message-bg-color, #ffc0cb);
    color: var(--chatbot-bot-message-text-color, #000);
}

#tab-messages .admin-chat-message .message-meta { 
    font-size: 0.9em; 
    margin-bottom: 8px;
    font-weight: 600;
}

#tab-messages .admin-chat-message .message-meta small { 
    font-weight: 400;
    opacity: 0.8;
}

#tab-messages .admin-chat-message .message-content {
    white-space: pre-wrap;
    font-size: 14px;
}

/* --- More Plugins Tab Styles --- */
.newcodebyte-plugins-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.plugin-card {
    flex: 1 1 350px;
    max-width: 550px; 
    background: #fff;
    border: 1px solid #c3c4c7;
    padding: 20px;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.plugin-card .plugin-icon-img {
    width: 125px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.plugin-card .plugin-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.plugin-card .plugin-info h3 {
    margin: 0 0 8px 0;
}

.plugin-card .plugin-info p {
    margin: 0;
    flex-grow: 1;
}

.plugin-card .plugin-info .plugin-links {
    margin-top: 15px;
}

/* --- API Key Field Styles --- */
.newcodebyte-password-field {
    position: relative;
}

.newcodebyte-password-field input.regular-text {
    width: 100%;
    padding-right: 40px;
    box-sizing: border-box;
}

.newcodebyte-password-field .toggle-api-key {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

.newcodebyte-password-field .toggle-api-key:hover {
    color: #0073aa;
}

/* --- Admin Action Buttons Styles --- */
#chatbot-delete-messages {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

#chatbot-delete-messages:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
    color: #ffffff !important;
}

#chatbot-export {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

#chatbot-export:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
    color: #ffffff !important;
}