/* Obsidian MCP Plugin Styles */

.mcp-plugin-settings {
    padding: 20px;
}

.mcp-plugin-settings h2 {
    margin-bottom: 20px;
    color: var(--text-accent);
}

.mcp-status-bar {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mcp-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-success);
}

.mcp-status-indicator.error {
    background-color: var(--text-error);
}

.mcp-status-indicator.warning {
    background-color: var(--text-warning);
}

/* Connection Status Section */
.mcp-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 10px 0;
}

.mcp-status-value.success {
    color: var(--text-success);
}

.mcp-status-value.error {
    color: var(--text-error);
}

/* Protocol Info Section */
.mcp-protocol-info {
    background-color: var(--background-secondary);
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
}

/* Config example containers */
.protocol-command-example,
.desktop-config-example {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* Code Blocks */
.mcp-code-block {
    display: block;
    padding: 10px;
    background-color: var(--background-primary);
    margin-top: 5px;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    cursor: text;
}

.mcp-config-example {
    display: block;
    padding: 10px;
    background-color: var(--background-primary);
    margin-top: 5px;
    overflow-x: auto;
    font-size: 12px;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    cursor: text;
    white-space: pre;
}

/* Action Buttons Section */
.mcp-action-buttons {
    margin: 20px 0;
}

.mcp-action-button {
    width: 100%;
    margin-bottom: 10px;
}

.mcp-error-message {
    color: var(--text-error);
    margin-top: 10px;
    padding: 10px;
    background-color: var(--background-secondary);
    border-radius: 5px;
}

/* Port Warning */
.mcp-port-warning {
    color: var(--text-warning);
    margin-top: 5px;
    font-size: 0.9em;
}

/* Apply Button */
.mcp-apply-button {
    margin-left: 10px;
}

/* Utility Classes */
.mcp-hidden {
    display: none !important;
}

/* Config Path Info */
.mcp-config-path {
    margin-top: 10px;
    font-size: 12px;
}

.mcp-config-path ul {
    font-size: 12px;
}

/* API Key Input */
.mcp-api-key-input {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    cursor: text !important;
}

/* Make disabled input more readable */
.mcp-api-key-input:disabled {
    background-color: var(--background-secondary);
    color: var(--text-normal);
    opacity: 1;
}