/**
 * MCP styles for the admin area.
 *
 * @link       https://github.com/noteflow-ai
 * @since      1.0.7
 *
 * @package    AI_Chat_Bedrock
 * @subpackage AI_Chat_Bedrock/admin/css
 */

/* Hide elements with hidden class */
.hidden {
    display: none !important;
}

/* MCP Servers table */
#ai-chat-bedrock-mcp-servers-table {
    margin-top: 15px;
    width: 100%;
    border-collapse: collapse;
}

#ai-chat-bedrock-mcp-servers-table th {
    text-align: left;
    padding: 10px;
}

#ai-chat-bedrock-mcp-servers-table td {
    padding: 10px;
    vertical-align: middle;
}

/* Server status indicators */
.ai-chat-bedrock-server-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
}

.ai-chat-bedrock-server-status.status-available {
    background-color: #d4edda;
    color: #155724;
}

.ai-chat-bedrock-server-status.status-unavailable {
    background-color: #f8d7da;
    color: #721c24;
}

/* Modal styles */
.ai-chat-bedrock-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.ai-chat-bedrock-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #ddd;
    width: 70%;
    max-width: 800px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ai-chat-bedrock-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.ai-chat-bedrock-modal-close:hover,
.ai-chat-bedrock-modal-close:focus {
    color: black;
    text-decoration: none;
}

/* Tool items in modal */
.ai-chat-bedrock-mcp-tool-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ai-chat-bedrock-mcp-tool-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ai-chat-bedrock-mcp-tool-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #23282d;
}

.ai-chat-bedrock-mcp-tool-parameters h5 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 14px;
}

.ai-chat-bedrock-mcp-tool-parameters ul {
    margin: 0;
    padding-left: 20px;
}

.ai-chat-bedrock-mcp-tool-parameters li {
    margin-bottom: 5px;
}

.ai-chat-bedrock-mcp-tool-parameters .required {
    color: #d63638;
}

/* Add server form */
.ai-chat-bedrock-mcp-add-server {
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    margin-bottom: 20px;
}

/* Section spacing */
.ai-chat-bedrock-mcp-settings h3 {
    margin-top: 30px;
}

/* Button spacing */
.ai-chat-bedrock-view-tools,
.ai-chat-bedrock-refresh-tools {
    margin-right: 5px;
}
