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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #21262d;
}

header h1 {
    color: #58a6ff;
    font-size: 2rem;
    margin-bottom: 10px;
}

header p {
    color: #8b949e;
    font-size: 1rem;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.panel {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
}

.panel h2 {
    color: #58a6ff;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.panel h3 {
    color: #8b949e;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

#schemaInput {
    width: 100%;
    height: 400px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    padding: 15px;
    resize: vertical;
    margin-bottom: 20px;
}

#schemaInput:focus {
    outline: none;
    border-color: #58a6ff;
}

.options {
    margin-top: 20px;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    color: #8b949e;
    margin-bottom: 8px;
    font-weight: 500;
}

.option-group select {
    width: 100%;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    padding: 10px;
    font-size: 14px;
}

.option-group select:focus {
    outline: none;
    border-color: #58a6ff;
}

.option-group small {
    display: block;
    color: #6e7681;
    margin-top: 5px;
    font-size: 12px;
}

.btn-primary {
    width: 100%;
    background: #238636;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #2ea043;
}

.btn-primary:active {
    background: #1f7a2f;
}

.btn-secondary {
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #30363d;
    border-color: #8b949e;
}

.btn-group {
    display: flex;
    gap: 10px;
}

.operations-list {
    max-height: 450px;
    overflow-y: auto;
}

.operations-list::-webkit-scrollbar {
    width: 8px;
}

.operations-list::-webkit-scrollbar-track {
    background: #0d1117;
    border-radius: 4px;
}

.operations-list::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

.operations-list::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

.placeholder {
    color: #6e7681;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
}

.operation-item {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
}

.operation-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.method-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
}

.method-get { background: #1f6feb; color: white; }
.method-post { background: #238636; color: white; }
.method-put { background: #9e6a03; color: white; }
.method-patch { background: #8957e5; color: white; }
.method-delete { background: #da3633; color: white; }

.operation-path {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    color: #58a6ff;
    font-size: 14px;
}

.operation-meta {
    font-size: 12px;
    color: #8b949e;
}

.operation-meta span {
    margin-right: 15px;
}

.status-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    background: #238636;
    color: white;
    font-size: 11px;
}

.output-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.output-panel {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.output-header h2 {
    color: #58a6ff;
    font-size: 1.2rem;
}

.code-output {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 15px;
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}

.code-output code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #c9d1d9;
    white-space: pre;
}

.code-output::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.code-output::-webkit-scrollbar-track {
    background: #0d1117;
}

.code-output::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

.code-output::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

/* Responsive */
@media (max-width: 1200px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    
    .output-section {
        grid-template-columns: 1fr;
    }
}

/* Success animation */
@keyframes success-flash {
    0% { background: #238636; }
    100% { background: #21262d; }
}

.btn-secondary.copied {
    animation: success-flash 0.5s;
}
