/* General Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    padding: 60px 0;
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Generator Section */
.tools-section {
    padding: 40px 0;
}

.generator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

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

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.directive-inputs {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 10px;
    align-items: start;
}

/* Button Styles */
.btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: #4f46e5;
    color: white;
}

.btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

.btn-primary {
    background: #4f46e5;
    color: white;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Preview Section */
.preview-section {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
}

.preview-container {
    background: #1f2937;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 200px;
}

.preview-content {
    color: #e5e7eb;
    font-family: monospace;
    white-space: pre-wrap;
    margin: 0;
    font-size: 0.9rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .generator-container {
        grid-template-columns: 1fr;
    }

    .directive-inputs {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}