#aiquila-admin {
    max-width: 900px;
}

#aiquila-admin h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

#aiquila-admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    max-width: 800px;
    padding: 10px;
    box-sizing: border-box;
}

.form-group .hint {
    color: var(--color-text-maxcontrast);
    font-size: 0.9em;
    margin: 0;
}

.settings-hint {
    color: var(--color-text-maxcontrast);
    margin-bottom: 15px;
}

#aiquila-status {
    color: var(--color-success);
    margin-left: 10px;
}

#aiquila-test-result {
    max-width: 800px;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-background-hover);
}

#aiquila-test-result h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

#aiquila-test-output {
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    font-family: monospace;
    font-size: 0.9em;
    padding: 10px;
    background-color: var(--color-background-dark);
    border-radius: 4px;
    max-height: 400px;
    overflow-y: auto;
}

/* MCP Server Cards */

#aiquila-mcp-servers {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

#aiquila-mcp-servers h3 {
    margin-top: 0;
}

.mcp-server-card {
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-background-hover);
}

.mcp-server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mcp-status {
    font-size: 0.85em;
    padding: 2px 8px;
    border-radius: 4px;
}

.mcp-status-ok {
    background-color: var(--color-success);
    color: white;
}

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

.mcp-status-unknown {
    background-color: var(--color-text-maxcontrast);
    color: white;
}

.mcp-server-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.mcp-url {
    font-family: monospace;
    font-size: 0.9em;
    color: var(--color-text-maxcontrast);
}

.mcp-meta {
    font-size: 0.85em;
    color: var(--color-text-maxcontrast);
}

.mcp-error {
    font-size: 0.85em;
    color: var(--color-error);
}

.mcp-server-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.mcp-server-actions button {
    font-size: 0.85em;
    padding: 4px 10px;
}

.mcp-test-result {
    font-size: 0.85em;
    margin-left: 8px;
}

#mcp-server-form {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-background-hover);
}

#mcp-server-form h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

#mcp-form-status {
    margin-left: 10px;
    font-size: 0.9em;
}

#mcp-oauth-status {
    margin-left: 10px;
    font-size: 0.9em;
}

.mcp-oauth-authenticated {
    color: var(--color-success);
    font-weight: bold;
}

.mcp-oauth-expired {
    color: var(--color-warning);
    font-weight: bold;
}

.mcp-oauth-not-authenticated {
    color: var(--color-text-maxcontrast);
}

.aiquila-resources {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.aiquila-resources h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.aiquila-resources ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aiquila-resources li {
    margin: 0;
}

.aiquila-resources a {
    display: inline-block;
    padding: 8px 12px;
    background: var(--color-background-hover);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--color-main-text);
    transition: background 0.2s;
}

.aiquila-resources a:hover {
    background: var(--color-background-dark);
}
