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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #0d1117;
    color: #e6edf3;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: 650px;
    background: #161b22;
    border-radius: 14px;
    padding: 35px;
    border: 1px solid #30363d;
}

h1 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 6px;
    color: #cccccc;
}

.subtitle {
    text-align: center;
    font-size: 14px;
    color: #8b949e;
    margin-bottom: 30px;
}

.field {
    margin-bottom: 22px;
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #c9d1d9;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid #30363d;
    background: #0d1117;
    color: #e6edf3;
    font-size: 14px;
    transition: border 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #58a6ff;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 70px;
}

.checkboxes {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkbox-item input {
    accent-color: #58a6ff;
}

button.generate {
    width: 100%;
    padding: 13px;
    border-radius: 8px;
    border: none;
    background: #238636;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-top: 10px;
}

button.generate:hover {
    background: #2ea043;
}

button.generate:active {
    transform: scale(0.98);
}

.preview {
    margin-top: 30px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 18px;
}

.preview h3 {
    font-size: 13px;
    color: #58a6ff;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tree {
    font-family: monospace;
    font-size: 13px;
    white-space: pre;
    color: #c9d1d9;
}

.tree .folder {
    color: #d29922;
}

.tree .file {
    color: #58a6ff;
}

.error-msg {
    color: #f85149;
    font-size: 12px;
    display: none;
    margin-top: 4px;
}

.field.error input,
.field.error select {
    border-color: #f85149;
}

.field.error .error-msg {
    display: block;
}

.badge {
    font-size: 11px;
    background: rgba(88, 166, 255, 0.15);
    color: #58a6ff;
    padding: 2px 6px;
    border-radius: 4px;
}

.required {
    color:#f85149;
}

a {
    color: white;
}