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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 5px;
}

.logo-brackets {
    color: #e74c3c;
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0 5px;
}

.logo-text {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.logo-gear {
    color: #f39c12;
    font-size: 1.5rem;
    margin-left: 8px;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.content > * {
    flex: 1;
    min-width: 500px;
}

.form-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-height: 80vh;
    overflow-y: auto;
}

.template-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.template-section h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-align: center;
}

.template-description {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    display: none;
}

.template-info h4 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 1.1rem;
}

.template-info p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    font-size: 0.95rem;
}

#loadTemplateButton {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
    margin-top: 15px;
}

#loadTemplateButton:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.output-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.output-header h3 {
    color: #2c3e50;
    margin: 0;
}

.output-actions {
    display: flex;
    gap: 10px;
}

.output-container {
    padding: 0;
    max-height: 70vh;
    overflow-y: auto;
}

#yamlOutput {
    margin: 0;
    padding: 25px;
    background-color: #2d3748;
    color: #e2e8f0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    border: none;
    border-radius: 0 0 8px 8px;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 200px;
}

fieldset {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

legend {
    font-weight: 600;
    color: #2c3e50;
    padding: 0 10px;
    font-size: 1.1rem;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.env-var-group {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.env-name,
.env-value {
    margin-bottom: 0;
}

.remove-env-var {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.remove-env-var:hover {
    background-color: #c0392b;
}

#addEnvVar {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

#addEnvVar:hover {
    background-color: #229954;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

#generateButton {
    background-color: #3498db;
    color: white;
}

#generateButton:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

#clearButton {
    background-color: #95a5a6;
    color: white;
}

#clearButton:hover {
    background-color: #7f8c8d;
}

#copyButton,
#downloadButton {
    background-color: #2ecc71;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
}

#copyButton:hover,
#downloadButton:hover {
    background-color: #27ae60;
}

.success-message {
    color: #27ae60;
    font-size: 14px;
    margin-top: 5px;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

@media (max-width: 1200px) {
    .content {
        flex-direction: column;
        gap: 20px;
    }
    
    .content > * {
        min-width: auto;
        width: 100%;
    }
    
    .output-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .form-section,
    .output-header,
    #yamlOutput {
        padding: 15px;
    }
    
    .env-var-group {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .output-actions {
        flex-direction: column;
        gap: 5px;
    }
}

.highlight-yaml {
    color: #e6db74;
}

.highlight-key {
    color: #66d9ef;
}

.highlight-string {
    color: #a6e22e;
}

.highlight-number {
    color: #ae81ff;
}

.highlight-boolean {
    color: #fd971f;
}

/* About Section Styles */
.about-section {
    margin-top: 60px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.about-content {
    padding: 40px;
    max-width: none;
    line-height: 1.7;
}

.about-content h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
}

.about-content h3 {
    color: #34495e;
    font-size: 1.5rem;
    margin-top: 35px;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 4px solid #3498db;
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.1) 0%, transparent 100%);
    padding: 10px 15px;
    border-radius: 0 8px 8px 0;
}

.about-content h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.about-content p {
    margin-bottom: 16px;
    color: #555;
    text-align: justify;
}

.about-content ul {
    margin-bottom: 20px;
    padding-left: 0;
}

.about-content li {
    list-style: none;
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
    color: #555;
}

.about-content li:before {
    content: "▶";
    color: #3498db;
    font-size: 12px;
    position: absolute;
    left: 10px;
    top: 2px;
}

.about-content strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Templates Grid */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.template-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.template-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
    border-color: #3498db;
}

.template-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.template-item p {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Responsive Design for About Section */
@media (max-width: 768px) {
    .about-content {
        padding: 25px 20px;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
    }
    
    .about-content h3 {
        font-size: 1.3rem;
        margin-top: 25px;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .template-item {
        padding: 15px;
    }
}