* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f1117;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.container { max-width: 700px; width: 100%; }

h1 { font-size: 1.8rem; margin-bottom: 0.3rem; }
.subtitle { color: #888; margin-bottom: 1rem; font-size: 0.95rem; }
.hint { color: #666; font-weight: normal; font-size: 0.8rem; }

.notice {
    background: #1a2a1a;
    border: 1px solid #2a5a2a;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #7aff7a;
}

.form-group { margin-bottom: 1rem; }

label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #aaa;
}

.input-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #666;
}

.input-hint code {
    background: #1a1d27;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.78rem;
    color: #9ab;
}

input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: #1a1d27;
    border: 1px solid #2a2d3a;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

input:focus { border-color: #5b8df9; }

.model-input-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.model-input-row input { flex: 1; }

.btn-remove {
    padding: 0.5rem 0.8rem;
    background: #3a1a1a;
    border: 1px solid #5a2a2a;
    border-radius: 8px;
    color: #ff7a7a;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-remove:hover { background: #5a2a2a; }

.btn-add-model {
    padding: 0.5rem 1rem;
    background: #1a2a3a;
    border: 1px solid #2a4a6a;
    border-radius: 8px;
    color: #7ab8ff;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.3rem;
}

.btn-add-model:hover { background: #2a4a6a; }

.buttons {
    display: flex;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

button {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#btnTest { background: #5b8df9; color: white; }
#btnTest:hover { background: #4a7ce8; }
#btnTest:disabled { background: #3a3d4a; cursor: not-allowed; }

.secondary { background: #2a2d3a; color: #aaa; }
.secondary:hover { background: #3a3d4a; }

.status {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.status.loading { display: block; background: #1a2a3a; border: 1px solid #2a4a6a; color: #7ab8ff; }
.status.error { display: block; background: #2a1a1a; border: 1px solid #6a2a2a; color: #ff7a7a; }
.status.success { display: block; background: #1a2a1a; border: 1px solid #2a6a2a; color: #7aff7a; }

.results { margin-top: 1rem; }

.format-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0.2rem;
}

.badge-openai { background: #1a3a2a; color: #4ade80; }
.badge-anthropic { background: #3a2a1a; color: #fbbf24; }

.model-card {
    background: #1a1d27;
    border: 1px solid #2a2d3a;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.8rem;
}

.model-card.success { border-left: 4px solid #4ade80; }
.model-card.error { border-left: 4px solid #ef4444; }

.model-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.3rem; }
.model-meta { font-size: 0.8rem; color: #888; margin-bottom: 0.5rem; }

.model-response {
    background: #0f1117;
    padding: 0.6rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #aaa;
    word-break: break-all;
}

.model-error { color: #ff7a7a; font-size: 0.85rem; }
