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

body {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    background: #1e1e1e;
    color: #d4d4d4;
    min-height: 100vh;
    font-size: 14px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #252526;
    border: 1px solid #3c3c3c;
    border-radius: 4px;
    overflow: hidden;
    min-height: 100vh;
}

.header {
    background: #2d2d30;
    border-bottom: 1px solid #3c3c3c;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left h1 {
    font-size: 18px;
    font-weight: 600;
    color: #cccccc;
    margin-bottom: 4px;
}

.header-left p {
    font-size: 13px;
    color: #858585;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.header-left a {
    color: #569cd6;
    text-decoration: none;
}

.reset-button {
    background: #f44747;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reset-button:hover {
    background: #e73c3c;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 80px);
}

.form-section {
    padding: 24px;
    border-right: 1px solid #3c3c3c;
    overflow-y: auto;
    background: #1e1e1e;
}

.output-section {
    padding: 24px;
    background: #252526;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #9cdcfe;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    background: #3c3c3c;
    border: 1px solid #464647;
    border-radius: 2px;
    color: #d4d4d4;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007acc;
    background: #404040;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: 'SF Mono', 'Monaco', monospace;
    line-height: 1.4;
}

.fields-section {
    margin-top: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #3c3c3c;
}

.section-header h3 {
    color: #cccccc;
    font-size: 14px;
    font-weight: 600;
}

.field-item {
    background: #2d2d30;
    border: 1px solid #3c3c3c;
    border-radius: 2px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}

.field-item:hover {
    border-color: #464647;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}

.field-description {
    grid-column: 1 / -1;
}

.type-input-group {
    position: relative;
}

.type-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2d2d30;
    border: 1px solid #464647;
    border-top: none;
    border-radius: 0 0 2px 2px;
    max-height: 150px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.type-suggestion {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #3c3c3c;
    font-size: 13px;
    color: #d4d4d4;
}

.type-suggestion:hover {
    background: #404040;
}

.type-suggestion:last-child {
    border-bottom: none;
}

.remove-field {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #f44747;
    color: white;
    border: none;
    border-radius: 2px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.remove-field:hover {
    opacity: 1;
}

.add-field {
    background: #0e639c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-field:hover {
    background: #1177bb;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #3c3c3c;
}

.output-header h3 {
    color: #cccccc;
    font-size: 14px;
    font-weight: 600;
}

.copy-button {
    background: #16825d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-button:hover {
    background: #1e9c6a;
}

.code-output {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 2px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    max-height: 70vh;
    overflow-y: auto;
    border: 1px solid #3c3c3c;
}

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

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

.code-output::-webkit-scrollbar-thumb {
    background: #464647;
    border-radius: 2px;
}

.code-output::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

/* Syntax highlighting */
.keyword { color: #c586c0; }
.string { color: #ce9178; }
.comment { color: #6a9955; }
.class-name { color: #4ec9b0; }
.import { color: #c586c0; }

.small-text {
    font-size: 11px;
    color: #858585;
    margin-top: 4px;
}

.empty-state {
    color: #858585;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        border-right: none;
        border-bottom: 1px solid #3c3c3c;
    }
    
    .field-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Focus states */
.add-field:focus,
.copy-button:focus,
.remove-field:focus,
.reset-button:focus {
    outline: 1px solid #007acc;
    outline-offset: 2px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #858585;
}