/* Diagnostics Console Styles */

body {
    font-family: system-ui, Segoe UI, Arial, sans-serif;
    margin: 24px;
    max-width: 1200px;
    background: #f9fafb;
}

h1, h2, h3 {
    color: #333;
    margin-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    background: white;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card h3 {
    margin-top: 0;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.col {
    flex: 1;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

textarea, input, select {
    width: 100%;
    padding: 10px;
    font: inherit;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

button {
    padding: 10px 16px;
    margin-top: 8px;
    margin-right: 8px;
    background: #0078d4;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

button:hover {
    background: #005a9e;
}

button.secondary {
    background: #6b7280;
}

button.secondary:hover {
    background: #4b5563;
}

pre {
    white-space: pre-wrap;
    background: #f6f8fa;
    padding: 12px;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 12px;
    margin: 0;
}

.small {
    font-size: 12px;
    color: #6b7280;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 12px 0;
}

.alert.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.alert.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert.warning {
    background: #fff3cd;
    color: #92400e;
    border: 1px solid #ffc107;
}

.result-box {
    display: none;
    margin-top: 12px;
    padding: 12px;
    border-radius: 6px;
}

.config-table {
    width: 100%;
    border-collapse: collapse;
}

.config-table tr {
    border-bottom: 1px solid #e5e7eb;
}

.config-table td {
    padding: 10px 8px;
}

.config-table td:first-child {
    font-weight: bold;
    width: 250px;
}

.config-table code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.nav-links a {
    text-decoration: none;
    color: #0078d4;
    font-weight: 500;
}

.nav-links a:hover {
    text-decoration: underline;
}

.loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ddd;
    border-top: 2px solid #0078d4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.public {
    background: #d1fae5;
    color: #065f46;
}

.badge.private {
    background: #fee2e2;
    color: #991b1b;
}

#output-card {
    display: none;
}

.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
}

.tab {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
}

.tab:hover {
    color: #374151;
    background: #f9fafb;
}

.tab.active {
    color: #0078d4;
    border-bottom-color: #0078d4;
    background: none;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}
