/* Styling for management command execution results */

.command-result {
    margin-top: 30px;
    padding: 20px;
    border-radius: 4px;
    border: 2px solid #ddd;
    background-color: #f9f9f9;
}

.command-result.success {
    background-color: #d4edda;
    border-color: #28a745;
}

.command-result.error {
    background-color: #f8d7da;
    border-color: #dc3545;
}

.command-result h2 {
    margin-top: 0;
    font-size: 18px;
    color: #333;
}

.command-result.success h2 {
    color: #155724;
}

.command-result.error h2 {
    color: #721c24;
}

.command-result .duration {
    font-size: 14px;
    font-weight: normal;
    color: #666;
}

.command-result .output-section {
    margin-top: 15px;
}

.command-result h3 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.command-result pre {
    background-color: #f4f4f4;
    padding: 12px;
    border-radius: 3px;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid #ddd;
    margin: 0;
}

.command-result .stdout {
    background-color: #f8f9fa;
    border-left: 3px solid #28a745;
}

.command-result .stderr {
    background-color: #fff3cd;
    border-left: 3px solid #ffc107;
    color: #856404;
}

.command-result .error-message {
    margin-top: 15px;
    padding: 12px;
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
    font-weight: bold;
    border-radius: 3px;
}

/* Form improvements */
.submit-row .cancel-link {
    margin-left: 10px;
    padding: 10px 15px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

.submit-row .cancel-link:hover {
    background-color: #5a6268;
}

/* BaseCommand options spoiler */
details.base-command-options {
    margin-top: 10px;
}

details.base-command-options summary {
    cursor: pointer;
    padding: 10px;
    user-select: none;
    color: #666;
    font-size: 0.8125rem;
}

details.base-command-options summary:hover {
    color: #417690;
}

details.base-command-options summary .help {
    font-weight: normal;
    color: #999;
}

details.base-command-options[open] summary {
    border-bottom: 1px solid var(--hairline-color, #ddd);
    margin-bottom: 0;
}
