.health-check-generator {
    margin-bottom: 2rem;
}

.generator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: start;
}

.config-panel,
.output-panel {
    background: var(--card-bg, #ffffff);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.config-panel:hover,
.output-panel:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.output-panel .panel-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    flex-shrink: 0;
}

.panel-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.header-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.action-btn:active {
    transform: translateY(0);
}

.panel-content {
    padding: 24px;
}

.form-field {
    margin-bottom: 24px;
}

.form-field:last-child {
    margin-bottom: 0;
}

.field-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.label-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
}

.label-hint {
    font-size: 12px;
    color: var(--text-muted, #6b7280);
    font-weight: 400;
}

.select-input,
.text-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 10px;
    background: var(--input-bg, #ffffff);
    color: var(--text-primary, #1a1a1a);
    transition: all 0.2s ease;
}

.select-input:focus,
.text-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.select-input:hover {
    border-color: var(--border-hover, #d1d5db);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.checkbox-item:hover {
    background: var(--hover-bg, #f9fafb);
}

.checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color, #d1d5db);
    border-radius: 5px;
    background: var(--input-bg, #ffffff);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-custom {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-primary, #1a1a1a);
    user-select: none;
}

.generate-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.generate-btn:active {
    transform: translateY(0);
}

.btn-icon {
    display: flex;
    align-items: center;
}

.code-editor {
    width: 100%;
    height: 600px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--border-color, #e5e7eb);
    display: none;
}

.code-editor.active {
    display: block;
}

.code-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 600px;
    background: var(--placeholder-bg, #f9fafb);
    border: 2px dashed var(--border-color, #e5e7eb);
    border-radius: 10px;
    color: var(--text-muted, #9ca3af);
    transition: all 0.3s ease;
}

.code-placeholder.hidden {
    display: none;
}

.placeholder-icon {
    margin-bottom: 16px;
    opacity: 0.5;
}

.placeholder-text {
    font-size: 14px;
    margin: 0;
    text-align: center;
}

@media (max-width: 1024px) {
    .generator-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .code-editor,
    .code-placeholder {
        height: 500px;
    }
}

@media (max-width: 767px) {
    .health-check-generator {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }

    .generator-wrapper {
        gap: 1rem;
    }

    .panel-header {
        padding: 16px 20px;
    }

    .panel-title {
        font-size: 16px;
    }

    .header-icon {
        width: 28px;
        height: 28px;
    }

    .action-btn {
        width: 32px;
        height: 32px;
    }

    .panel-content {
        padding: 20px;
    }

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

    .code-editor,
    .code-placeholder {
        height: 400px;
    }

    .generate-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .panel-header {
        padding: 14px 16px;
        flex-wrap: wrap;
    }

    .panel-content {
        padding: 16px;
    }

    .code-editor,
    .code-placeholder {
        height: 350px;
    }

    .placeholder-icon svg {
        width: 40px;
        height: 40px;
    }
}
